Hi Jesse,

Always good to hear that people are having fun using our stuff ;-)
There is no doc available, but the source code is delivered with the product. Look under javascript/JUICE inside the IDMProv.war.
The javascript libraries do have quite a bit of javadoc - or javascriptdoc - within them.

Your problem is that you are referencing the fieldname as a variable, it should be a string.
Try using "fvGetNames" instead of fvGetNames for the parameter value of JUICE.UICtrlUtil.getControl()

Note : there is one thing to keep in mind when calling these low level SDK methods - as opposed to the form script API, i.e. all form, field and IDVault methods - : the method signatures and method names might change in futur versions of the product.


>>> Le 20/06/2007 à 23:47, Jesse Smith<novacoast.jesse@gmail.com> a écrit dans le message <1ghei.120$on5.47@prv-forum2.provo.novell.com> :

Thanks for your reply Rudy, this is perfect.

I'm actually getting a "ReferenceError: fvGetNames is not defined," where
fvGetNames is the name of my field (first param in the getControl
function. Tried it onload / onchange, after and before the field prints
to screen. Any ideas? I'll keep at it...

Is there an API (even dev would be fine) of the JUICE system? I'm
googling for it but not finding anything.

Thanks a bunch Rudy, I'm having lots of fun with this tool!

Rudy Duym wrote:

> Hi Jesse,

> It is possible to use the HTML control to do this, however there is a form

script function that allows you to a add a text button or imagebutton to the
right of an existing form field.
> Use JUICE.UICtrlUtil.addButton(/*JUICE.BaseControl*/ ctrl, name, txt, alt,

onClickScript, w, h).
> Example of script that you can put in a field event:
> var ctrl = JUICE.UICtrlUtil.getControl(field.getName());
> var btn = JUICE.UICtrlUtil.addButton(ctrl, "mybtn", "A", "tooltip",

"javascript:alert("clicked A");");
> Example of an in line anonymous function :
> var ctrl = JUICE.UICtrlUtil.getControl(field.getName());
> var btn1 = JUICE.UICtrlUtil.addButton(ctrl, "mybtn1", "B", "tooltip",

function() { alert("clicked B"); } );

> Try this out, if you still want to do this with the HTML control you can

paste over the code from the result of a call to JUICE.UICtrlUtil.addButton()

> thanks,
> Rudy

>>>> Le 20/06/2007 à 17:53, Jesse Smith<novacoast.jesse@gmail.com> a écrit

dans le message <L3cei.5044$%54.553@prv-forum2.provo.novell.com> :

> Hello team,

> I would like to spawn an action (update list) based on a user event. I
> have been using the 'onChange' of a checkbox, but this is a bit
> misleading. Ideally, an html button labeled 'Update List' would be best.

> My understanding is that I could reverse-engineer the source of the
> workflow page, and create an HTML button using the HTML Control Type. I
> could setup this button to call one of the Javascript functions to update
> the list.

> Before I start this, I was wondering if anyone has any advice on this
> topic, or perhaps and hints on the naming of field, functions, etc.

> Thanks,
> Jesse