Question
Linked Property -can it be used with a page as reference
Scenario:
There is Case and a subcase. Case is opened in one session of browser(with Operator X) ,subcase is opened in other session of the browser(with Operator Y).
Both sessions are not closed. Now in subcase there is a button- clicking on which subcase and its parent case are resolved.
Situation:
From one session(Operator Y) button is clicked- accordingly the parent case and subcase gets resolved. Now from other session(Operator X) there is a button which should check the pystatus for the current open case from DB (as changes are not reflected in this session)
To handle this I am using Linked property(property name lnk) - Linked property is created in Data-admin-operator-ID class and it refers the work class with pyID as key.
For button in parent case-I defined OpertorID as Data-admin-operator-ID and I am using condition if OpratorID.lnk.pyStatusWork = resolved
will this work OpratorID.lnk.pyStatusWork where lnk is a linked property and generally it is used as .lnk.pyStatusWork
If we give page context to linked property will it work...after testing above implementation I am not able to see lnk in linkedproperty of Clipboard but instead in OperatoID page with lnk as property in it.
If we give page context to linked property will it work?
" Now from other session(Operator X) there is a button which should check the pystatus for the current open case from DB (as changes are not reflected in this session)"
Have you thought of implementing some alternate approach like refreshing the case ? Refresh will help you to get the correct status of the case without even using any linked property etc.
If, for any reason, you are not willing to use this refresh approach, then for your button click requirment also probably does not required a linked property.
The moment you resolve both the cases, unless you have a lock hold on the parent case, all data in database gets updated immediately ( irrespective of whether you have a session open or not )
Since the moment you click the button it will call an activity ( I assume ) which will try to fetch the current status from data base, it should ideally reflect the latest status .
Let me know whether any of these two approaches will help or not.