The object represents a data form.
Availability The object is available only in specific execution contexts, or is created by a function provided by other objects Pre-initialized in New data form, Data form opened, Pre-save of data form, Counter number acquisition for a data form, Post-save of data form, Pre-move of data form to recycle bin, Post-move of data form to recycle bin, Pre-deletion of data form, Post-deletion of data form, Data form restored from recycle bin, Pre-print of data form, Post-print of data form, Action on data form, Button on data form, Action on data form print, Data form closed, Value being edited on data form, Value changed on data form, Pre-archiving of data form, Post-archiving of data form
newcustomer = program.newdataview("customer","")
newcustomer.setvalue("name","Davide")
newcustomer.setvalue("surname","Sbreviglieri")
newcustomer.save()
actionenable
Description Enables or disables the actions button on the form Value Type boolean Format boolean = dataview.actionenable Type Property Systems Windows, Web, Android, IOS, Mac OS
backcolorvalue
Description Sets the background color of a specific field on the form Value Type Format dataview.backcolorvalue(fieldname, color) Type Method Systems Windows, Web, Android, IOS, Mac OS
Parameter Value Type Description fieldname string The name of the field to which to apply the color color integer The color in integer format to be applied to the field
Examples
dataview.backcolorvalue("name",-65536)
captionsave
Description Changes the label of the save button Value Type Format dataview.captionsave(value) Type Method Systems Windows, Web, Android, IOS, Mac OS
Parameter Value Type Description value string The value to be displayed as a label on the save button
Examples
dataview.captionsave("Save now!")
captionvalue
Description Modifies the label of a specific field on the form Value Type Format dataview.captionvalue(fieldname, value) Type Method Systems Windows, Web, Android, IOS, Mac OS
Parameter Value Type Description fieldname string The name of the field to which the label is to be modified value string The value of the label to be set
Examples
dataview.captionvalue("name","Change name customer")
createdocument
Description Creates a document type object Value Type document Format document = dataview.createdocument(gguidprinter) Type Method Systems Windows, Web, Android, IOS, Mac OS
Parameter Value Type Description gguidprinter string The unique identifier of the print that will be used to create the document
Examples
print = dataview.createdocument("YYY-YYY")
disableediting
Description Completely disables editing of all fields and additional tables in the form Value Type Format dataview.disableediting() Type Method Systems Windows, Web, Android, IOS, Mac OS
Examples
dataview.disableediting()
enablevalue
Description Enables or disables editing a value by bypassing user permission checks Value Type Format dataview.enablevalue(fieldname, enabled) Type Method Systems Windows, Web, Android, IOS, Mac OS
Parameter Value Type Description fieldname string The name of the field to activate or deactivate enabled boolean The value that sets whether the field is enabled or not
Examples
dataview.enablevalue("name",true)
forecolorvalue
Description Sets the text color value for a specific field on the form Value Type Format dataview.forecolorvalue(fieldname, color) Type Method Systems Windows, Web, Android, IOS, Mac OS
Parameter Value Type Description fieldname string The name of the field to which to apply the text color color integer The color in integer format to be applied to the field
Examples
dataview.forecolorvalue("name",-65536)
getatable
Description Retrieves an additional table present in the form Value Type tableview Format tableview = dataview.getatable(tablename) Type Method Systems Windows, Web, Android, IOS, Mac OS
Parameter Value Type Description tablename string The name of the table to retrieve among those in the form
Examples
rows = dataview.getatable("orders_rows")
getvalue
Description Retrieves the value of a field present or hidden on the form Value Type object Format object = dataview.getvalue(fieldname) Type Method Systems Windows, Web, Android, IOS, Mac OS Notes If a column name that does not exist is entered, the method returns an empty string
Parameter Value Type Description fieldname string The name of the field from which to retrieve the value
Examples
value = dataview.getvalue("name")
gguid
Description The unique identifier of the record currently loaded in the form Value Type string Format string = dataview.gguid() Type Method Systems Windows, Web, Android, IOS, Mac OS
Examples
id = dataview.gguid()
hideallocator
Description Hides the tab with the value splitter calculation table, if value splitters have been set Value Type Format dataview.hideallocator() Type Method Systems Windows, Web, Android, IOS, Mac OS
hideatable
Description Hides or shows a specific additional table in the form Value Type Format dataview.hideatable(tablename, visible) Type Method Systems Windows, Web, Android, IOS, Mac OS
Parameter Value Type Description tablename string The name of the additional table to display or hide visible boolean Whether the additional table should be hidden or shown
hidetabs
Description Hides or shows the tab bar of the form Value Type Format dataview.hidetabs(visible) Type Method Systems Windows, Web, Android, IOS, Mac OS
Parameter Value Type Description visible boolean Whether the tab bar should be shown or not
hideuserselector
Description Hides the user selection list associated with the currently loaded record in the form Value Type Format dataview.hideuserselector() Type Method Systems Windows, Web, Android, IOS, Mac OS
isnew
Description Indicates whether the record currently loaded in the form is new (and therefore not yet saved) or not Value Type boolean Format boolean = dataview.isnew() Type Method Systems Windows, Web, Android, IOS, Mac OS
listatable
Description Retrieves the list of names of all additional tables present on the form Value Type list<string> Format list<string> = dataview.listatable() Type Method Systems Windows, Web, Android, IOS, Mac OS
modatt
Description Indicates whether the form has been modified and not yet saved or not Value Type boolean Format boolean = dataview.modatt() Type Method Systems Windows, Web, Android, IOS, Mac OS
newnotification
Description Creates a new notification Value Type notification Format notification = dataview.newnotification() Type Method Systems Windows, Web, Android, IOS, Mac OS
readbarcode
Description On mobile devices, opens the camera to scan a barcode and return its value Value Type string Format string = dataview.readbarcode() Type Method Systems Android, IOS
readmultiphoto
Description Opens the camera on mobile devices, or multiple file selection on the desktop version, to load several images into a table at once Value Type Format dataview.readmultiphoto(tableview, fieldname) Type Method Systems Android, IOS Notes A new row of the additional table is created for each photo taken or selected
Parameter Value Type Description tableview tableview The table containing the image field to use fieldname string The name of the image field that will receive the photo taken or selected
readphoto
Description On mobile devices, opens the camera to take a photo and save it within an image field Value Type Format dataview.readphoto(fieldname) Type Method Systems Android, IOS
Parameter Value Type Description fieldname string The name of the image field that will receive the taken photo
save
Description Saves the form Value Type boolean Format boolean = dataview.save() Type Method Systems Windows, Web, Android, IOS, Mac OS
saveenable
Description Activates or deactivates the save button on the form Value Type boolean Format boolean = dataview.saveenable Type Property Systems Windows, Web, Android, IOS, Mac OS
setvalue
Description Sets the value of a field that is present or hidden on the form Value Type Format dataview.setvalue(fieldname, value) Type Method Systems Windows, Web, Android, IOS, Mac OS
Parameter Value Type Description fieldname string The name of the field to which the value will be applied value object The value that will be saved inside the field
showconfirm
Description Displays a confirmation message Value Type Format dataview.showconfirm(message) Type Method Systems Windows, Web, Android, IOS, Mac OS
Parameter Value Type Description message string The message to display
showerror
Description Displays an error message Value Type Format dataview.showerror(message) Type Method Systems Windows, Web, Android, IOS, Mac OS
Parameter Value Type Description message string The message to display
showwarning
Description Displays an alert message Value Type Format dataview.showwarning(message) Type Method Systems Windows, Web, Android, IOS, Mac OS
Parameter Value Type Description message string The message to display
switchdataview
Description Closes the current form to open another one Value Type Format dataview.switchdataview(tablename, gguidrecord) Type Method Systems Windows, Web, Android, IOS, Mac OS
Parameter Value Type Description tablename string The name of the table of the form to open gguidrecord string The unique identifier of the record to load in the new form
tablename
Description Retrieves the name of the table of the form Value Type string Format string = dataview.tablename() Type Method Systems Windows, Web, Android, IOS, Mac OS
update
Description Forces the recalculation of all calculation expressions present in the additional tables and on the form Value Type boolean Format boolean = dataview.update() Type Method Systems Windows, Web, Android, IOS, Mac OS