GeoMedia Smart Client community discussion board is where you can create, contribute and share information and knowledge in regards to configuring as well as working with GeoMedia Smart Client.
Find your answers, share your knowledge and help build a strong GeoMedia Smart Client community.

The problem is:1) if i am trying to add new object using simpleModalform i can not send ID for new parentObject (so user have to pass it manually) and i can not save this object because the error about missing domainObject is thrown2) if i am trying to add new object using trigger that is creating new parent ID object and storing it's ID in session and then IG.navigate or redirect the session object is the same as the last one.

Re: Refreshing session key trigger.

it's quite difficult to analyze what you need, but in general what you have to do is to store the primary key in the session as [TABLENAME].[PKNAME] (please check if you are always using or not the schema identifier). So basically if your objects are in the same table just replacing the value in the session will do the work. If you are working on different tables you have also to change the active feature, because in the session you will have stored 2 primary key information, for both tables.

Also please check the triggers AddKarta and GetCurrentKartaId because it seems you are generating new different values in both of them.

Re: Refreshing session key trigger.

Thank you for your help, it helped us indeed. Do you know of any avaible 'tutorials' for this kind of work like creating new objectcs, passing arguments to another windows etc? I was reading API documentation from top to bottom but information like "IG.setActiveFeature(activeFeature) Sets the active feature in Smart Client. The active feature may be set using the name or the ID of the feature" is a bit laconic for a newbie like me.