29
Views
9
Comments
TableRecords passing blank value for screen action

Hello,


I am currently working with a TableRecords widget. The widget is using a local list variable to populate. That list gets its data from a server action in the preparation and is also updated in another refresh action.


The issue I am having is occurring when trying to trigger a screen action from a link in each row of the table. I am attempting to pass the current record as a parameter to this action, but no matter what I do it is passed with each property as a null value. I have also attempted to pass the current row number, which is also null.

I have also tried referencing the current row with specifically passing it as a parameter. That does not work either as the TableRecords shows that it has a list with 50 items in it, but each one is missing all the data.

This happens with both submit and ajax submit methods. Is there a reason that this would be happening? I would upload the OML but I am unable to share the code that I am working on.

David Welsh wrote:

Hello,


I am currently working with a TableRecords widget. The widget is using a local list variable to populate. That list gets its data from a server action in the preparation and is also updated in another refresh action.


The issue I am having is occurring when trying to trigger a screen action from a link in each row of the table. I am attempting to pass the current record as a parameter to this action, but no matter what I do it is passed with each property as a null value. I have also attempted to pass the current row number, which is also null.

I have also tried referencing the current row with specifically passing it as a parameter. That does not work either as the TableRecords shows that it has a list with 50 items in it, but each one is missing all the data.

This happens with both submit and ajax submit methods. Is there a reason that this would be happening? I would upload the OML but I am unable to share the code that I am working on.

Hi David,


The data that is showing on the table records is a copy of what you are getting on the preparation. So you want to pass the current record of the table, not the preparation.

It should be something like: <YourTableName>.List.Current.<SourceTable>.AttributeYouWantToPass


I attached a picture of an example to make myself clear.


Hope it helped, if not keep asking and I will try to help :)

Clarisse


PassTableInput.PNG

mvp_badge
MVP
Rank: #129

Hi,


Could you please check whether you are referring to the correct list in table records?

If possible, Please share a snap so that we can help you easily.


Thanks

Hello David,


could you plz also post screenshot of property of table and column expression? You shall hide the letters in expression for abstraction.


Sanjay

Rank: #51947

Hi Sanjay,


Here is the screenshot of the table records properties. It is bound to a local list. I have Changed the name for the purpose of the screenshot.



mvp_badge
MVP
Rank: #129

Hi,


Could you please check data source I mean aggregate from where you are getting list data.

If you are using join just verify the aggregate with test values and see data in the entity.


Or share a snap of data source(Aggregate)


Thanks