Save Combo Box Text Field and Value Field

In application studio I have a combo box with EPBinding: Transview.myRev. It is populated by a BAQ that shows the revisions for a part number (filtered from a previous text box). This works well. I have the TextField set as PartRev_RevShortDesc and the Value Field set as PartRev_RevisionNum. This saves my rev in the transview.myRev bound field.

I also want to save the rev short description at the same time. So I have tried several approaches that do not work.
I have tried using the onBlur event on the combobox to set Transview.myRevDesc to the text fields of the combo box. I tried using row-update on Transview.myRevDesc, and setting the expression to these values (none worked):

  • this.getText()
  • row[“PartRev_RevShortDesc”]
  • this.Text
  • this.SelectedRow[“PartRev_RevShortDesc”]
  • myRev.TextField
  • [myRev.TextField]

I don’t really need to see the text value in a separate field, I just want to store it along with the rev. Is my approach feasible? Should I take another path?

EDIT: I’m thinking I could do this with a function. I’d much rather use a simple approach like I have here, if it’s possible.

Thanks for your time!
Nate

1 Like

What about the EpBinding Text Column?


image
Bind it to wherever you want to save that value. I’m not sure how well it works with actual saved data - my example uses a dynamic column that only exists while the page is active…

2 Likes

interesting. i wonder what dataview that’s in. :thinking: sysVariables maybe?

It stuck it in the same dataview as the main EpBinding. In this case, in the Part dataview

1 Like

I was wondering about that field. I’m not sure exactly how to use it. I’d expect to set the EpBinding to Transview.myRevDesc. But that didn’t work on its own. I still have an event in place to update Transview.myRevDesc onBlur of the combo box. But my row-update is not generating a valid value with the expression. So I removed that event entirely. And That seems to have done it! Now my Transview field has the correct data. Perfect! Thanks!

2 Likes