Two questions to begin:
1) I would like to customise subform WHERE clause so only records matching a date range are retrieved (rather than everything matching the PK). In Pro the SQL is on the Subform tab, but can't find it in Forte.
2) In Pro I used nuLoadEdit() to position the cursor at the first empty row (new record) of the subform. How do I do this in Forte?
Neil.
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Migration issues - Pro to Forte
-
- nuBuilder Team
- Posts: 4307
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 448 times
- Contact:
Re: Migration issues - Pro to Forte
Hi,
1) Click the 3 dots, then Form Properties and modify the SQL in the Tab Browse
2) JavaScript under the Custom Code Tab of your Form:
1) Click the 3 dots, then Form Properties and modify the SQL in the Tab Browse
2) JavaScript under the Custom Code Tab of your Form:
Code: Select all
if(nuFormType() == 'edit'){
// Your code here...
}
You do not have the required permissions to view the files attached to this post.
-
- nuBuilder Team
- Posts: 4307
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 448 times
- Contact:
Re: Migration issues - Pro to Forte
vario wrote: to position the cursor at the first empty row (new record) of the subform. How do I do this in Forte?
Code: Select all
function setSubformCellFocus(subform, id, row) {
if (row === undefined) {
var r = nuSubformObject(subform).rows.length - 1;
} else {
var r = row;
}
$('#' + subform + nuPad3(r) + id).focus();
}
if(nuFormType() == 'edit'){
// Replace accform with the Subform ID and slf_zzzzsys_form_idcode with the Object Id
setSubformCellFocus('accform', 'slf_zzzzsys_form_idcode');
}
-
- Posts: 153
- Joined: Mon Dec 05, 2011 12:23 pm
- Location: Newton Abbot, UK
- Has thanked: 2 times
- Been thanked: 1 time
Re: Migration issues - Pro to Forte
Thanks for the reply.
One problem - there is no Browse tab on the subform. I have directly modified sfo_browse_sql in zzzzsys_form which so far seems to work but a user-friendly way would be good!
One problem - there is no Browse tab on the subform. I have directly modified sfo_browse_sql in zzzzsys_form which so far seems to work but a user-friendly way would be good!
-
- nuBuilder Team
- Posts: 4307
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 448 times
- Contact:
Re: Migration issues - Pro to Forte
It shouldn't be like that, it's a bug.
The workaround is to set the form type to "Edit". Then the Browse Tab becomes visible and the SQL can be edited. Afterwards, the Form Type can be changed back to Subform.
The workaround is to set the form type to "Edit". Then the Browse Tab becomes visible and the SQL can be edited. Afterwards, the Form Type can be changed back to Subform.
-
- nuBuilder Team
- Posts: 4307
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 448 times
- Contact: