Hi all,
I have an UX component with embedded grid. The embedded grid is a list of invoices and the also has properties 'has checkbox select column' turn on.
The idea is when I input a value in 'received amount' textbox (OnBlur Event), it will breaks the value into the embedded grid until the 'received amount' = 0. Then the checkbox of those rows will checked.
My problem is, I can't find how to use the correct syntax to get {grid.name} and function to check/uncheck the checkbox value for that embedded grid.
It only works if I use standard javascript and use static element ID e.g :
Everytime we re-publish the component, it will generate a different name so it's not working properly.
I have tried
and
but it doesn't works.
The {dialog.EmbeddedGrid_ALIAS} is working perfectly if we want to execute grid function like getValue,setValue,and others but it can't give me the right name.
Is there any built in function like .getValue('__ROWCHECKBOX'), because with the .getValue() function we can only access the 'real fields' ? thank you.Image 3.png
I have an UX component with embedded grid. The embedded grid is a list of invoices and the also has properties 'has checkbox select column' turn on.
The idea is when I input a value in 'received amount' textbox (OnBlur Event), it will breaks the value into the embedded grid until the 'received amount' = 0. Then the checkbox of those rows will checked.
My problem is, I can't find how to use the correct syntax to get {grid.name} and function to check/uncheck the checkbox value for that embedded grid.
It only works if I use standard javascript and use static element ID e.g :
Code:
document.getElementById("TBI_SALES_RECE_181653WUZQ_SALES_RECEIPT_OPEN_TRANSACTION_LIST.V.R"+i+".__ROWCHECKBOX").checked = false;
Everytime we re-publish the component, it will generate a different name so it's not working properly.
I have tried
Code:
document.getElementById("{dialog.EmbeddedGrid_ALIAS}.V.R"+i+".__ROWCHECKBOX").checked = false;
Code:
var co = {dialog.object}.getChildObject('ALIAS'); document.getElementById(co+".V.R"+i+".__ROWCHECKBOX").checked = false;
The {dialog.EmbeddedGrid_ALIAS} is working perfectly if we want to execute grid function like getValue,setValue,and others but it can't give me the right name.
Is there any built in function like .getValue('__ROWCHECKBOX'), because with the .getValue() function we can only access the 'real fields' ? thank you.Image 3.png
Comment