Question
Tata Consultancy Services
IN
Last activity: 25 Feb 2019 2:48 EST
Update PageList Property Value for Some Cases in clipboard
Hi
I have to update pagelist property value in clipboard for some cases in prod where property value is A, have to replace the value in clipboard to B
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
FR
Hello,
Can you run an activity on Production? I guess you could create your activity in DEV and move it to Prod to execute it.
Bits In Glass India Pvt Ltd
IN
Hi Krishna,
First you have to check for the existing value of the property as A, then we can use the property value to B looping over in activity.
Hope this will work.
Thanks.
Tata Consultancy Services
IN
Could you please explain breifly:
I have written steps like:
OBJ-browse to fetch all cases, but have to fetch cases only where Sample.pxResults.X='A' and then have to replace the same Sample.pxResults.X='B'
-
Pallavi Lengde
Bits In Glass India Pvt Ltd
IN
Hi Krishna,
Thanks for the description.While you do the Obj-Browse, you can add the filter condition of that particular column of the work table. Like suppose consider, you want to change the work objects any column value from A to B.
Do a Obj-Browse with the filter condition of "A" on work table. Then you will get the list of work objects and looping over that list, you can update the value to "B" and save to database.
Hope this will help you. If any additional information needed, please let me know.
Thanks.
Tata Consultancy Services
IN
Hi Ayan,
I have done the same steps, but not able to achieve the result:
Step 1: I have fetched the records using browse result is: TempPageWork.pxResults(1).CaseID=S-123 etc...
Step 2: Looped TempPageWork.pxResults and made property-set like pyWorkpage.pxResults(1).Sample="B"
TempPageWork and pyWorkPage both are different classes
Query: While looping the TempPageWork, how it will update the property in pyworkpage without opening the cases.
Pls Help
Thanks
Bits In Glass India Pvt Ltd
IN
Hi Krishna,
Please follow the steps -
1) Filter out those cases using Obj-browse or report definition applying your criteria. So, after execution, you will get the case id in a page list.
2)Now looping over that page list, store the case id in local variable.
3)Now do Obj-Open on work class on TempWorkPage(which will the work class) using the case id which you store on local variable. Also, applying the lock as you are going to update the data for cases.
4) Then do the property set on TempWorkPage which you want to set in the desired property.
5)Simple do Obj-Save on TempWorkPage.
Hope you understand the details. If not, please let me know. I will share the thing in activity.
Thanks.
Updated: 20 Feb 2019 2:58 EST
Blue Rose Technologies
BE
Hi Krishna,
DO Obj-browse with valid conditions to fetch records and then update those cases property to value B if value is A.