Hi Steven,
I want to use the "Form To Launch via Browse" to open form. It stops to work on new versions of nuBuilder.
This is a picture of another system that I am using an old version of nuBuilder and the
"detalhes" button opens the
"Cooperados" form correctly with variable "#medico#" on RecordID:
old-version-the-button-is-working.png
I'm using JavaScript to the button works on new version, but it is a workaround.
---
On the actual version of nubuilder, I tried to use "#venda_id#" to open "frmVenda" form, but the variable "#venda_id#" is not replaced with query result value (number 7). This is the subform:
new-version-is-not-working.png
---
To work on new version I must to disable the "Form To Launch via Browse" and find the Record Id (r=7) using getElementById on the "ver" button:
recnum-7.gif
getElementById-name+1.png
The "
openForm('14fcd2c1fbdd61',document.getElementById(this.name.substring(0,this.name.length-1)).value)" will find the correct record id.
If I use the same name on button object, the subform not show correctly. So, I used
subform_NVenda0000venda_id2 (name.length+1) to find the value of
subform_NVenda0000venda_id (name.length-1).
The best and simple way to open a form is use the "Form To Launch via Browse" button attribute. Have it some chance to #variable# back to be replaced with sql result on subform?
Thanks,
Evandro
You do not have the required permissions to view the files attached to this post.