I need to Hide Text Box's for which I have given the Same epbinding

Hi,

We have created 4 text Box and given Same Ep Binding means I want to Store different data in one field and based on my Drop dowm selection i want to Hide the Text Box.

For Example :

I have created a UD form and in Key1 I am storing Screen Type Part Entry,Receipt Entry etc and I have Created a Text Box on Form to store PartNum and PackSlip in Table but both Text Box have same Binding so when I select Parte Entry Screen type I want to hide Text Box PackSlip

The only ‘standard’ (non-code) method that I am aware of for doing this requires setting up an additional data view for the second scenario but that would result in its own compromises.

You can control the “properties” of a component if you use the “Id”… you don’t NEED to use the Ep Binding.

So, if you have (2) Text Boxes, both bound to the same binding… use the component Id’s in an event to update their “hidden” property.

I set up an example:
Combo Box with two choices (Part or Receipt)

(2) textboxes with ID’s of TextBox1 & TextBox2

I then set up the event:

Trigger: DataTable > Column Changed > My Combo’s dataview > My Combo’s column

Condition: If my combobox’s value === ‘Part’

1st Property Set… TextBox1: hidden = false

2nd Property Set… TextBox2: hidden = true

If the condition is FALSE… and the user chooses “Receipt”

Then my property sets are reversed:
TextBox1 hidden = true
Textbox2 hidden = false

Results:

Both visible at the start:

If I choose “Part” in the combobox (Textbox2 is hidden):

If I choose “Receipt” in the combobox (Textbox1 is hidden):

6 Likes

Hi I want when I select Value from Grid and If it Navigate to main Page Hide the Text box based on Value which is in different text Box.

Example :

when I click on Key1 and if the Key is Part Entry than Show only Part Number Text Box

@dcamlin showed you how to hide based on the value of another textbox. What have you tried?

PS - Is there a reason you need 4 text boxes rather than simply changing the labelText property on a single textbox?

Hi,

Its not necessary to have a four text Box If I can Change the Lable Text property on single textbox it would be helpfull

You can set the labelText property of your textbox with a switch action and property-set actions.

2 Likes

Hi,

Could you please provide full steps and also I want to handle this when I onclick Grid column and when it navigates to main page than hide lables

Hi,

No.

2 Likes

I Have Created a Event On-Grid Clik and used condition widget where it check if Key2 field has Part Entry,receipt Entry , Customer Ship Entry and Job Receiot to Inventory Entry and added a Property set Widget after condition
example
if the I click on Key1 field on Grid and its screen Type is Part Entry than I have set Property set of txtPartNum hidden false and for other the hidden is true same goes to other conditions.