adding objs on the fly to a javascript form

Peter van Rooij petervanrooij29 at upcmail.nl
Tue May 15 07:33:32 EDT 2012


Hello all,

I am trying, notationally, to add objects on the fly to a javascriptclient-form.
On the form there is a paged-pane, called ppLeft.
I am trying to add a button control to this pane, which only has 1 pane, on which the object should be placed

This is my code:

Set reference lRef to $cinst.$objs.ppLeft		; a reference to the paged-pane
Do lRef.$objs.$add(1,kComponent,"jsButton","Button Control",5,5,30,30) Returns lObjRef     ; lObjRef is NULL

This is the notation to add an object to a pane:
;; $add(iPanenumber,type[,cComponentLibrary,cComponentControl],iTop,iLeft,iHeight,iWidth) adds a new object to the tabbed/paged pane and returns an item reference to it

So, why doesn't this work?
What am I missing?

Any help would be greatly appreciated.

Peter


More information about the omnisdev-en mailing list