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 OperationsHow You Can Remove or Add the Control ButtonWhen you create a table field in OpenROAD Workbench, a control buttoncontaining the table field's operations menu is automatically associated withthe table field. You can use the Property Inspector to remove the controlbutton by setting the HasControlButton attribute to FALSE. You can also setthe HasControlButton attribute in your 4GL code:field(tablefield).HasControlButton = FALSE;Alternatively, you can set the table field's ControlButton attribute to NULL:field(tablefield).ControlButton = NULL;If a table field does not currently contain a control button and you want to addone, you must specify an existing object of the ControlButton class. The syntaxis:field(tablefield).ControlButton = control_button;Note: If you remove the default control button from a table field and thendecide later to add a control button containing the default operations, youmust point to a control button that contains these operations.How You Can Enable and Disable User Modifications to Table Field DataYou can modify data by doing the following:• Updating existing data in a table field row• Inserting new rows before existing rows• Deleting rows• Appending rows to the end of the table fieldThe following sections describe these operations in more detail.How You Can Update Existing Data in a Table Field RowThe CurBias attribute of a field in the table field determines whether a user candirectly edit that field. A field can be edited if its CurBias is FB_CHANGEABLE.The CurBias of the field is determined by the CurMode of the frame and thebiases of the table field, column fields, and protofield fields.You can use the Property Inspector to initialize the biases for each column of atable field and for the table field itself. By default, when you create a tablefield, the bias is FB_CHANGEABLE for each frame mode except FM_READ. Thedefault bias for the FM_READ mode is FB_LANDABLE.Working with Arrays, Table Fields, and Collections 241

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

Saved successfully!

Ooh no, something went wrong!