I have a class mapped with an external table. I am trying to set the pxobjclass from my activity. But it is getting overridden with a null value during obj-save. Need help in showing a way to set the pxobjclass
***Updated by moderator: Lochan to update platform capability***
Thank you for your quick response. I am attaching the activity screenshot. Ideally i am doing a property-set to set the other fields and then i am doing an Obj-Save. In between these two steps, i tried:
3.Obj-Open and then Property-Set-Special( Read some article in PDN that obj-open should be done before we set the pxobjclass)
But none of the above trials worked. Actually till the step before the Obj-Save, the value is getting set but after obj-save, it is throwing a warning and value is again nullified. tracer screenshot is also attached. Please check!!!
Posted: 5 years ago
Posted: 18 Sep 2018 4:24 EDT
Marc Lasserre (MarcLasserre_GCS)
Technical Account Manager
Sorry for not being clear. My class is pointing to external table. So, it has only the columns i need(4 columns here). But for some other requirement i need pxobjclass also as one of the columns. I added it by updating the table through SQL update query. So, when saving the data in UI to this table, for pxobjclass i am trying to set the value through activity/DT. But it is not getting set and facing issues as attached before.
Hope my explanation helps!!
HI, We had a similar issue at my site and we used two different approaches (in two different applications), both of which worked;
We added pxObjClass to the external table. Not ideal, but it satisfied PRPC's requirement for it.
We used RDB-Save method (and the other RDB ones) to directly save the data without needing pxObjClass at all. It meant we had to customise more OOTB code but as we were comfortable doing that it wasn't much of an issue.