Question
Create Work OOTB - Pega Hybrid App offline mode
Can anyone please let me know how to pass parameters to create work OOTB functionality which is a supported control in offline mode. I have tried all the below Java script options but none of them seem to work. Thanks in advance to anyone willing to help.
function createNewWork$<ClassName>(){
alert("Test Value");
console.log("unsched");
var prop1 = pega.u.ClientCache.find('D_DisplayCaseInfo').get('DeliveryOption').getValue();
alert(prop1);
/ pega.u.ClientCache.find('pyWorkPage').get('Address').get('State').setvalue(prop1);
/ var prop5 = pega.u.ClientCache.find('pyWorkPage').get('Address');
// prop5.put("State", prop1);
/ alert(prop5);
// pega.ui.ClientCache.find("pyWorkPage").put("pyNote",prop1);
//pega.u.ClientCache.find('pyWorkPage').get('Customer').get('Name').put(prop1);
var pgName = pega.u.ClientCache.find('pyWorkPage.Customer');
pgName.put("Name", prop1);
}
***Updated by moderator: Lochan to update platform capability***
Hi Pinak,
In the example above, I assume that you get alerts for "Test Value" and the prop1 value?
I suspect that pyWorkPage.Customer page property does not exist and that the last line is throwing a null pointer exception. Can you make sure pyDefault data transform is setting at least one property within the Customer page property. Then force a full sync and try again?
Another thought is that your example above would work as a data transform as a pre process on your first assignment shape. This may be more maintainable as it would be in the model.
I hope this helps.
- James