Information générale
Catégorie:
The Mere Mortals Framework
Titre:
Secondary BizObj view manipulation.
Hello everybody,
There is a cBizObjForm with CListObj on it along with two BizObj. On this form Init() I am calling secondary BizObj method that suppose to select it's InitialAlias (remote view),fix some data in it and the Append fixed data to the Primary BizObj InitialAlias.
The problem I've experienced was I couldn't select secondary BizObj InitialAlias (I need to get a COUNT). I've tried This.Requery() first (thought it will select it automatically), then THIS.SelectAlias() before Requery(), nothing worked meaning the selected view was Primary BizObj InitialALias. I did make it work by using CREATEOBJECT('CSelect','v_ViewName'). Just wondering is there a better way to do that?
Another quick question. Can I use a view name as a variable in the CREATEOBJECT('CSelect','ViewName')? I've tried CREATEOBJECT('CSelect',EVAL(lcViewName))and
CREATEOBJECT('CSelect',&lcViewName). Didn't work until I used actual view name. I am using EVAL,TRANSFORM and '&' a lot lately and would like to know what and where to use.
Thank you
Igor
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement