I have an instance where I'm opening up a non smartclient UI in a new window, and it needs to fire back a value at a dynamic form text field.
Once outside the smartclient object it seems hard to get back into it, or place values back in the object. There is some fundamental thing I'm missing here.
Here is my dynamic form object.
This form is assigned to a section.
I simply need to put a value in the formfield ID: "itembordercolor",
I have tried every variation of
borderssection.items.itembordercolor.setVal(theval) imaginable.
I've tried getting the fields as an object and getting to it that way.. No luck.
I've tried getting to it via the dynamic forms ID as in
bordersform.items.itembordercolor.setVal(theval)
I get an errors like this
bordersform.items.itembordercolor is undefined
I've tried leaving items out of the path. If I simply do an alert
alert(borderssection.items);
I do see an object there.
[RadioGroupItem ID:isc_RadioGroupItem_0 name:borders],[SliderItem ID:isc_SliderItem_3 name:borderwidth],[TextItem ID:itembordercolor name:bordercolor]
What am I doing wrong.
Once outside the smartclient object it seems hard to get back into it, or place values back in the object. There is some fundamental thing I'm missing here.
Here is my dynamic form object.
Code:
var borderssection = isc.DynamicForm.create({ ID:"bordersform", name:'bordersform', width: 190, autodraw:false, visibility:"hidden", fields: [ { name: "borders", title: "Borders", required: true, width:100, colSpan: 2, titleOrientation:"top", type: "radioGroup", valueMap: { "true" : "Yes", "false" : "No" } }, { name: "borderwidth", title: "Border in px", colSpan: 2, editorType: "slider", changed:"", height:5, minValue: 0, maxValue: 10, numValues: 19, width: 120, titleOrientation: "left" }, { ID: "itembordercolor", name: "bordercolor", title: "Border Color", colSpan: 2, click:"getColor(this.ID)", cellStyle:"colorBlock", editorType: "text", width: 50, titleOrientation: "left" } ], values: { rating: 100 }, })
Code:
{title: "Borders", expanded: false, canCollapse: true, ID:'borderstuff', items: [borderssection]},
I have tried every variation of
borderssection.items.itembordercolor.setVal(theval) imaginable.
I've tried getting the fields as an object and getting to it that way.. No luck.
I've tried getting to it via the dynamic forms ID as in
bordersform.items.itembordercolor.setVal(theval)
I get an errors like this
bordersform.items.itembordercolor is undefined
I've tried leaving items out of the path. If I simply do an alert
alert(borderssection.items);
I do see an object there.
[RadioGroupItem ID:isc_RadioGroupItem_0 name:borders],[SliderItem ID:isc_SliderItem_3 name:borderwidth],[TextItem ID:itembordercolor name:bordercolor]
What am I doing wrong.
Comment