10.07.2015 Views

Programming Guide - Actian

Programming Guide - Actian

Programming Guide - Actian

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Table Field OperationsBiases can be dynamically changed in OpenROAD by using the CurBias,UpdateBias, QueryBias, ReadBias, User1Bias, User2Bias, User3Bias, or AllBiasattributes of FormField objects. For more information about biases and framemodes, see Creating Dynamic Frames (see page 363).You can disable updates to the whole frame by setting CurMode to FM_READ.You can disable updates to the entire table field by setting the table field's biasto be a bias other than FB_CHANGEABLE. Or you could keep the table field'sbias as FB_CHANGEABLE, and restrict a particular column by setting its bias toa bias other than FB_CHANGEABLE. For more information about CurBias, seethe Language Reference <strong>Guide</strong> online help.How You Can Insert New Rows Before Existing RowsThe user can insert rows before existing rows by using the Insert BeforeCurrent Row menu item of the table field's control button.Enabling or disabling Inserts can be done by enabling or disabling this menuitem from OpenROAD. You can use the Option Menu Editor to determine thename of an item in the control button menu. To open the Option Menu Editorfrom the Frame Editor, select the control button and then click Edit,OptionMenu. For example, if the table field's control button is namedtblfld_controlbutton, the following code can be used to disable the menu:field(tblfld_controlbutton.insertbefore).CurBias = MB_DISABLED;The following table shows the menu text and menu button names for the tablefield control button:Menu TextInsert Before Current RowDelete Current RowDelete All RowsCopy TableMenu ButtoninsertbeforedeletecurrentdeleteallcopytableTo enable the menu, use bias MB_ENABLED instead of MB_DISABLED. Toremove this item from the menu, use bias MB_INVISIBLE.By default, the insertbefore menu item is enabled only in FM_UPDATE andFM_QUERY modes, and disabled in FM_READ, FM_USER1, FM_USER2, andFM_USER3 modes.242 <strong>Programming</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!