S
|
Steve Seymour 11/14/2019 |
Hi, Can anyone help me out On a list_page each row has a field named main_ID Now I want to add a code-snippet on each row doing something with that record based on the value main_ID question How do I obtain the value of main_ID programaticly in the code-snippet without adding a button that I need to click thanks fot thinking
|
J
|
jacques author 11/14/2019 |
Thank you, When I put this in JavaScript OPnload how do I call the value in the pgp-code snippet each record? var myvariable = row.getFieldValue("main_ID"); |
N
|
Nir Frumer 11/14/2019 |
|
J
|
jacques author 11/14/2019 |
hi you don't say what you are trying to do, If your operation is on a field level - you can do it through the field'd custom display Otherwise use the list page: Before record processed hope it helps,
|
![]() |
Sergey Kornilov admin 11/14/2019 |
The best approach is to use 'View as' Custom instead of the code snippet. This way you handle both display part and easy access to record values. |
S
|
Steve Seymour 11/17/2019 |
In the php-codesnippet I want to do some different actions with the value of main_ID (check on a other table, check on other field valies, etc) and echo the result on that same row. I can do it with a home-made function through the custom display but I thought there is purhaps a much more easy way to do it.
|