TextBox won't show in TransView until a value is entered

Wondering if anyone knows how to get around this.

If you create a Combo and tie it to TransView, when you check the table in DevTools, you see that it is an entry in the table.

If you create a TextBox and tie it to TransView, it does not show up in the table until you enter a value in the TextBox. This means that anything referencing that field does not fire (like a Row Rule) because it is not in the table.

Hoping there is an easy solution.

I usually add an event that fires after form_onload … or when the textbox in question is created … in that event is just a row-update setting the value to ''
That way, it has a value, but the value is nothing…
Similarly, I use 0 for a numeric box

4 Likes

I was really hoping to not have to do that, but it seems like the only option.

1 Like

Add the column in transview dataview first. While you don’t have to, this should appease the validation gods.

1 Like

The validation gods are not appeased. They are still angry and hiding the field.

2 Likes

So, I tried creating a brand new layer and immediately entering the column in TransView, and it still did not work.

I also tried entering an on the fly dataview in the EpBinding and that also does not work.

Ok, now I am just a big old whining baby, but this is so stupid! You can’t use any of the tools because the field is not bound to an actual field. So, you put in a space and now there will be an extra space in the field when a user enters something.

Angry Inside Out GIF by Disney Pixar

You don’t have to do a space though, right? You can just do “”. Double quotes.

2 Likes

TransView before:

No TransView.Test showing.

Row Update (after form_onload):
image

TransView after:

Doesn’t need to have a space… just a row update to kick it in the ass and get it into the DataView.

1 Like

Row Rule takes effect. no other prompting needed.

image

Yeah, I put in two single quotes with nothing between … it sort of looks like there’s a space there, because code-text is monospaced (every character has the same width)
‘’
''

1 Like

Ok, did some more testing, and the Row Rule will not change a field FROM disabled TO open. That is one of my problems. Another problem is that I had the Personalizable unchecked for those text boxes.

So, I tried and tried to get this to work, and it would not. Finally realized that the event I was using it after did not fire. It was Slider-Open, and no matter what I did, it would not fire the next event. So I moved it in front of Slider-Open and :+1:

2 Likes

I found that if I add fields to TransView I have to save the application then exit application studio completely then go back in to see it. After that it is fine and I can use it in events and functions.

Now I can bind to it a text box even set it with an event using results from a function but the row rules can not see any of the TransView fields so I cannot put a data rule on it.

  • I can initialize it with an event

  • I can update it with an event using a function to change the value - I thought this would be the hard part.

  • I can verify its changed as I can see it in the text box

  • But the data rule wizard does not show any of the TransView fields?

  • If I manually type the field name in it disappears

And of course I can see the fields in the data view itself.

What am I missing?


1 Like