Skip to main content
olalekana0448
May 31, 2021
Question

CALLING Record Data within gridLayout?

  • May 31, 2021
  • 8 replies
  • 1 view

Anyone willing to help with calling record data and using Record Action within gridLayout component. This I can implement using gridField, but I have to use editable gridLayout. Thank you in advance

    8 replies

    stefanhelzle0001
    Brainy
    May 31, 2021

    Did you try to follow one of the grid layout recipes? I think the only "trick" is that you will need to use queryRecordType() to store the data in a local.

    olalekana0448
    May 31, 2021

    Thanks, Stefan, I am trying that now. I ran into some errors , maybe u can also help "Could not display interface. Please check definition and inputs. Interface Definition: Expression evaluation error at function a!integerField [line 146]: Could not cast from Record Field to Number (Integer). Details: CastInvalidCould not cast from Record Field to Number (Integer). Details: CastInvalid".

    Thanks once again

    stefanhelzle0001
    Brainy
    June 1, 2021

    Check your other post. You tried to pass the field itself into the integerField but not its value. Check Appian docs for how to access the value of a given record item.

    Participating Frequently
    May 31, 2021

    a!queryRecordType() Function returns map which is similar to datasubset. The result can be used on gridlayout the same way you may use the datasubset.

    Record actions can one of the column(s), sample below:

    Please note that the a!recordActionField() is like any other field (a!textField, a!linkField) and can be a field directly on the gridLayout and cannot be inside a!linkfield etc.

    olalekana0448
    May 31, 2021

    Thanks a lot, Shyam, I will try that out. I am grateful