Color Control

Overview:  

Color control is a new addition that has been introduced in the VIENNA framework. User can select the Color by clicking on Color control. Selected color value form the control saved in the data base in form of  hexadecimal string. 

 

Pre-requisites for Color Control:   

  • Vienna Advantage Framework 5.3.0.0 

  • Vienna Advantage Base File 2.2.0.0 

 

To add this control new Data type is introduced called "Color". User need to follow the same steps as one follow to use existing Data Types at Column Tab of Database schema window like ( text, table etc.). 

 

Steps to Create Color Control : 

Step 1 

  • Login with System Administrator role. Open the Database schema window.  

  • Select the table/view from header tab in which table, user want to create a color control column then Move to the "column" tab and create a new Column.  

  • Enter the Name and DB Column Name. In my example I am entering name as "Color" but you should create column name with you module prefix. 

  • Select Color in the Reference column.  Save the record, click on the Synchronize Column button and click on Okay button, a column by the name of Color will be created. 

Step 2  

  • Go to "Screen Configuration" window afterwards. 

  • Select a target Screen from the header tab. 

  • Select the Tab record which is linked with the target table in which we added  Color column. 

  • Move to the "Field" tab of the selected Tab. 

  • Click on new record button Enter the Name. In my example I am entering name as "Color".  

  • Select "Color_Color" from the Column dropdown. (The column that was created in the above mentioned step). 

  • Save the Record.  

View Color Control 

Now after done all above changes, when user will open the target screen/tab he/she will see the Color control on the tab as shown in below screen.

As user select on color column, system will open color control and user can select specific color by drag the pointer as shown in the below screen.  

Now after selecting the color from color pop up, selected color will display on the color field as shown in below screen and selected color value form the control saved in the data base in form of  hexadecimal string.