8.1 to 9.01 Design Studio Issue

 5 Replies
 0 Subscribed to this topic
 12 Subscribed to this forum
Sort:
Author
Messages
Robert Spurr
Veteran Member
Posts: 130
Veteran Member
New Poster
New Poster
Congrats on posting!
I'm currently migrating forms & pages from 8.1 to 9.01 and ran into an issue I don't understand.  I have a Portal page with a DME call that passes variables from the DME to a custom form (attached formlet) and forces a refresh,  In 8.1 this is working without issue but in 9.01 the form acts like no variables were passed before the refresh.  I went as far as rebuilding the entire thing in 9.01 but with no success. 

Note:  I've verified the DME values with alerts so I know I'm receiving the correct values I'm trying to pass.

Can anyone offer some guidance as to why this routine doesn't work?

function crmfgnumbertestmulti_OnRowClick()
{
 var objForm = page.objects["CR11.1_CUSTOM"]; 

 var oDME = page.objects["crmfgnumbertestmulti"];
 
 var rowRecordAry = oDME.getRowRecord();
 var oField = rowRecordAry[0];
 var fieldValue = oField.value;
 
 page.setElementValue("CNP-BHCS-KEY",fieldValue);
 
 var oField = rowRecordAry[1];
 var fieldValue = oField.value;
 
 page.setElementValue("CNP-CONTRACT-REF",fieldValue);
 
 var oField = rowRecordAry[5];
 var fieldValue = oField.value;
 
 page.setElementValue("PT-CNP-LINE-NBR",fieldValue);

 var oField = rowRecordAry[2];
 var fieldValue = oField.value;
 
 page.setElementValue("PT-CNP-MFG-NBR",fieldValue);
 
 objForm.refresh();
 //alert(fieldValue);
 return true; 
}

Thanks
Robert

David Williams
Veteran Member
Posts: 1127
Veteran Member
New Poster
New Poster
Congrats on posting!
Did you map the Element variables to the form fields with Data Mapping on the Portal Page?
David Williams
Robert Spurr
Veteran Member
Posts: 130
Veteran Member
New Poster
New Poster
Congrats on posting!
Yes. I even deleted remapped just to be safe.
David Williams
Veteran Member
Posts: 1127
Veteran Member
New Poster
New Poster
Congrats on posting!
Try this to force the formlet to refresh

// var objForm = page.objects["GM65.2_EFFORT_CERT"]
// objForm.refresh(page.dataSource)
David Williams
Robert Spurr
Veteran Member
Posts: 130
Veteran Member
New Poster
New Poster
Congrats on posting!
Thanks but I've already tried that and it had no effect
Robert Spurr
Veteran Member
Posts: 130
Veteran Member
New Poster
New Poster
Congrats on posting!
Just and update. The problem was the programmer changed the prefix to the table and I didn't catch it because another form using the same table worked just fine. My fault but thanks for the help.