<baseform>

web form

JavaScript: baseform

Extends View

The <baseform> tag allows you to create a web form. The data represented by components that are enclosed in the form tag can be sent to the server using the <submit> tag. Each form component, such as <checkbox>, <combobox> or <radiogroup> must have a name. The data is submitted as name-value pairs, using the name and value of the component.

baseform provides no layout for its contents. If you want a simple automatic form layout use the <form> tag.

See Also:
Attributes
Name Usage Type (Tag) Type (JS) Default Category
changed Tag & JS expression any false setter
 

Boolean to determine whether the baseformitem was changed. Default is false.


formdata Tag & JS expression any   setter
 

Holds a reference to each datacomponent contained within the form.



Attributes inherited from Node

class, classroot, cloneManager, datapath, id, ignoreAttribute, ignoreplacement, immediateparent, initstage, name, nodeLevel, onconstruct, oninit, parent, placement, subnodes

Attributes inherited from View

aaactive, aadescription, aaname, aasilent, aatabindex, align, bgcolor, clickable, clickregion, clip, cursor, defaultplacement, fgcolor, focusable, focustrap, font, fontsize, fontstyle, frame, framesloadratio, hassetheight, hassetwidth, height, layout, loadratio, mask, onblur, onclick, ondata, ondblclick, onfocus, onkeydown, onkeyup, onmousedown, onmouseout, onmouseover, onmouseup, onselect, opacity, options, pixellock, play, resource, resourceheight, resourcewidth, rotation, selectiontype, showhandcursor, source, stretches, subviews, totalframes, unstretchedheight, unstretchedwidth, valign, visible, width, x, xoffset, y, yoffset


Methods

addFormItem()
baseform.addFormItem(item)
Parameters
Name Type Desc
item None


commit()
baseform.commit()

Commits baseform's baseformitem values and sets baseform and baseformitems to changed=false.



rollback()
baseform.rollback()

Rollback baseform's baseformitem values and sets baseform and baseformitems to changed=false.



setChanged()
baseform.setChanged(changed, skipformdata)

Setter to to set baseform's status to changed. Baseformitems should set baseform's changed to true when its values change and set baseform's changed to false when its values are rollback or committed.

Parameters
Name Type Desc
changed Boolean true if changed, else false.
skipformdata Boolean if true, set formdata changed values, else don't.


Methods inherited from LzNode

animate, applyConstraint, applyData, childOf, completeInstantiation, createChildren, dataBindAttribute, destroy, determinePlacement, getAttribute, getOption, getUID, lookupSourceLocator, searchImmediateSubnodes, searchSubnodes, setAttribute, setDatapath, setID, setName, setOption

Methods inherited from LzView

addProxyPolicy, addSubview, bringToFront, construct, containsPt, getAttributeRelative, getBounds, getColor, getColorTransform, getContextMenu, getCurrentTime, getDepthList, getHeight, getID3, getMouse, getPan, getTotalTime, getVolume, getWidth, init, measureHeight, measureWidth, play, releaseLayouts, removeProxyPolicy, searchParents, searchSubviews, seek, sendBehind, sendInFrontOf, sendToBack, setAAActive, setAADescription, setAAName, setAASilent, setAATabIndex, setAlign, setAttributeRelative, setBGColor, setClickable, setColor, setColorTransform, setContextMenu, setCursor, setHeight, setLayout, setOpacity, setPan, setPlay, setResource, setResourceNumber, setRotation, setShowHandCursor, setSource, setValign, setVisible, setVolume, setWidth, setX, setY, shouldYieldFocus, stop, stretchResource, unload, updateResourceSize


Events
Name Description
onchanged None

Events inherited from LzNode

onconstruct, ondata, oninit

Events inherited from LzView

onaddsubresource, onaddsubview, onblur, onclick, ondblclick, onerror, onfocus, onframe, onheight, onlastframe, onload, onmousedown, onmousedragin, onmousedragout, onmouseout, onmouseover, onmouseup, onmouseupoutside, onopacity, onplay, onremovesubview, onstop, ontimeout, onwidth, onx, ony