Discussion

Obj-open & obj-open-open-handle

Hi, both methods will return sigle instance from the database?What is the difference between with these two methods?

could anybody explain with sample scenareo.....please

 

 

 

Thanks in advance  

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Comments

Keep up to date on this post and subscribe to comments

May 16, 2013 - 4:30am

Obj Open will be used if you know Primary key of the class ,But if we know ins key of the instanceat that time you will go for Open by handle

May 24, 2013 - 3:56pm

OBJ-OPEN and OBJ-OPEN-BY-HANDLE methods does the same thing, fetching the object instance from pegarules database and copying it to clipborad pages. The difference comes when we consider the "handle" to open it. If we are aware of the pzInskey , we will use obj-handle. And if know the key/s of  class, say pyID, we will use obj-open.

November 21, 2014 - 6:34am

One more question what is the difference between the

We have ob-open and obj-refresh-unlock, these two methods.We have RELEASE ON COMMIT option.

please tell me the above methods Release on commit.

December 27, 2014 - 10:35am

For Obj-Open, we open the work object using the key/s i.e. the step page used can be empty and after the step, the results will be saved onto the step page. However for obj-refresh-and-lock we can't have the step page empty as we are trying to acquire the lock of that instance.

Release on Commit is optional. Using the obj-open method and if we check the "Lock" checkbox true in such cases it is recommended to use the Release On Commit checkbox i.e the lock will be released whenever the Commit happens (generally handled by PRPC) and in case you decide to keep the ROC checkbox unchecked, then even after the commit the lock will be held. In such cases you have to use Page-Unlock method to explicitly release the lock.

June 25, 2015 - 9:11am

Both the methods returns single instance from database, Obj-Open can be used if you don't know the insHandle. If you have InsHandle it is better to use Obj-OpenBy-Handle

April 20, 2016 - 8:17am

we need to provide key values in obj-open. 

Is it possible that this key value combination will give more than one record and possible to have multiple records return on obj-open ?

 

 

May 20, 2016 - 9:00am

Key value combinations will be unique and so Obj-Open will never return more than one record.

On the other hand, Obj-Browse will accept non key properties and fetches more than one record.

December 17, 2016 - 9:16am

obj hadle used specific inz hadle key.  but obje open you can used any primary key to open.