How can I change my billboard image in interface?

Certified Associate Developer

I have been trying to change my billboard image of interface, I have uploaded a image in my folder but dont know how to use that in my interface billboard.. can anyone please explain?

thank you

  Discussion posts and replies are publicly visible

Parents
  •  a!billboardLayout(
                backgroundMedia: a!documentImage(
                  document: cons!WR_NITIN
                ),
                backgroundColor: "#f0f0f0",
                overlay: a!barOverlay(
                  contents: {
                    a!richTextDisplayField(
                      labelPosition: "COLLAPSED",
                      value: {
                        "TEVA`S   Hotel"
                      }
                    )
                  }
                )
              )

    Hello Rahul, you can see the code I have sent,

    In these first you have to create a document from new objects and then there is a checkbox click on it than it creates a constant automatically and then inherit that constant in your billboard layout.

  • 0
    Certified Associate Developer
    in reply to nitinn0007

    Hello Nitin, It is showing error 

    Could not display interface. Please check definition and inputs. Interface Definition: Expression evaluation error at function a!billboardLayout [line 8]: A billboard layout has an invalid value for "backgroundMedia". "backgroundMedia" must be null or a document image, web image, or web video. Received: BillboardLayout.

    What I have written in expression:

    a!billboardLayout(
    backgroundMedia: a!documentImage(
    document: cons!ET_WHAT_IS_A_TIMESHEET
    ),
    backgroundColor: "#f0f0f0",
    overlay: a!barOverlay(
    contents: {
    a!richTextDisplayField(
    labelPosition: "COLLAPSED",
    value: {
    "TimeSheet Submission"
    }
    )
    }
    )
    )

    (I have created the constant referenced it to my image)

Reply
  • 0
    Certified Associate Developer
    in reply to nitinn0007

    Hello Nitin, It is showing error 

    Could not display interface. Please check definition and inputs. Interface Definition: Expression evaluation error at function a!billboardLayout [line 8]: A billboard layout has an invalid value for "backgroundMedia". "backgroundMedia" must be null or a document image, web image, or web video. Received: BillboardLayout.

    What I have written in expression:

    a!billboardLayout(
    backgroundMedia: a!documentImage(
    document: cons!ET_WHAT_IS_A_TIMESHEET
    ),
    backgroundColor: "#f0f0f0",
    overlay: a!barOverlay(
    contents: {
    a!richTextDisplayField(
    labelPosition: "COLLAPSED",
    value: {
    "TimeSheet Submission"
    }
    )
    }
    )
    )

    (I have created the constant referenced it to my image)

Children