Hi Vikky,
Steven Shull has given the best possible solution. So, I believe you should try and use that solution for your use case.
I would shed some light on the use of retrieve script scenario you have mentioned. You can do a retrieve list on the non-persistent attribute but there is no need of using script of doing so in your mentioned scenario. Simple domain application can be used to achieve whatever you are trying to do( Steven has already explained how).
Retrieve Scripts should be used if you really have a complex scenario where you want to use 2 different domains in the same field based on condition. So, unless you have real difficult situation which would have been possible only by java class then you can think of using a autoscript.
One scenario I can think of is: Based on the calculation of priority you might have to display values from 2 different domains. So, you would need to do the priority calculation in the script and then based on the output using if else clause you can set a domainid for the field. Also, please do check if you are using the write lookup xml.
Hope this helps.
Thanks,
Biplab
------------------------------
Biplab Choudhury
Tata Consultancy Services
------------------------------
Original Message:
Sent: 05-23-2020 23:28
From: vikky k
Subject: Automation Script with NON PERSISTENT Object
Can automation script Retrieve List event be used on a NON- Persistent field.
I am trying to filter out the values that are displayed on the POCHANGESTATUS.STATUS field conditionally and I cant get it to work. So i just had a very simple logic in my script as below:
domainid="POSTATUS"
listWhere = "orgid is not null"
Nothing shows up on the drop down menu on the change status dialog in the PO application.
I am not sure if anything is wrong with the code or is it more like an issue with the event not able to work with the non persistent field?
Has anyone had a similar issue before ?
Any input is greatly appreciated.
Thank You.
#Customizations
------------------------------
Vikky
Idyllic Solutions
------------------------------