Adding Translate value Through panel to translate table



How to add translate values dynamically from panel to translate field.

In the  Above panel State and City fields are related, when user  select  any state its respective cities will be listed in City drop down list box, Here state is a Translate Field and City is a prompt Table edit field which refers to Region_tbl  Record (State, City are two key fields in this region table)
Scenario: If required state is not listed in the translate field we need to add a state dynamically…
whenever user check on” Other than State listed above” check box The circled fields will be visible else they are in hide mode,
The Values what user entered here shall be dynamically added to the above State And City field once user press save button, so that user can go back and uncheck the check box and entered his required State and city from the drop down list.


Implementation Steps:
Step 1: Create Emp_tbl Record

Step 2: Create one Work Record include 4 fields so that user can enter values which are not available in the ‘state’ translate field,Work record fields are(one check box,Stateshort name ,Longname and City)
   
Step 3: Now Include All fields from Empl_tbl and Work record fields in to a panel.and arrange them as required or as shown above.
Step 4:    Implement Peoplecode in following events, in work record.
                             

Is_check(FieldChange event):     
                                                   
Is_check(FieldDefault event):          
                                                    

City(FieldChange event):
            

Step 5:    Implement Peoplecode in following events, in Emp record.
 


IS_STATE(RowInit Event):


IS_STATE(FieldEdit Event):


Practical View

Here we don’t find Nepal state in State translate field…so user need to add Nepal State and Its Respective city, so check the “Other than state listed above” box following fields will be visible and then enter valid data and click on Save button,Now user can uncheck the Check box and can find Nepal state and its Cites in city Field.



 




No comments:

Post a Comment