Fetch details in Interface from database

I am trying to fetch details in Interface for displaying purpose from database. I don't know where am missing something. If someone can help. I have called the CDT as RI. 

a!textField(
label: "Address",
labelPosition: "JUSTIFIED",
value: ri!CompanyInformation.Address,
saveInto: {},
refreshAfter: "UNFOCUS",
readonly: true,
validations: {}
),
a!textField(
label: "Website",
labelPosition: "JUSTIFIED",
value: ri!CompanyInformation.Website,
saveInto: {},
refreshAfter: "UNFOCUS",
readonly: true,
validations: {}

Note: I have data in database.

  Discussion posts and replies are publicly visible

Parents
  • In your RI you have mapped a CDT so you need to i=enter values into RI to show the values on form 

    else you can use expression rule to fetch the data from DB and use that rule into interface and call that in a local variable and then print it 

    example:-

    load(

    local!data: rule!name if the expression rule

    a!textField(
    label: "Address",
    labelPosition: "JUSTIFIED",
    value: localdata.Address,
    saveInto: localdata.Address,,
    refreshAfter: "UNFOCUS",
    readonly: true,
    validations: {}
    ),

    )

    try this 

Reply
  • In your RI you have mapped a CDT so you need to i=enter values into RI to show the values on form 

    else you can use expression rule to fetch the data from DB and use that rule into interface and call that in a local variable and then print it 

    example:-

    load(

    local!data: rule!name if the expression rule

    a!textField(
    label: "Address",
    labelPosition: "JUSTIFIED",
    value: localdata.Address,
    saveInto: localdata.Address,,
    refreshAfter: "UNFOCUS",
    readonly: true,
    validations: {}
    ),

    )

    try this 

Children