↧
Re: Not saving current tabpage when using grids
↧
From: | Serge Grichmanoff |
To: | Serge Grichmanoff |
Background
- I have a page with 5 tabs in it.
- Each tab has a grid.
- Each grid has a cell with a HREF in it: Basically I am calling a function in that webpage form so I can pull some values for some text boxes for me to edit.
Problem
- Suppose I click and go to the second tab. I then click on the grid, which has the HREF, the text box does get populated properly, but, the page when it re-renders itself doesn't go back to the tab it was on. Always goes back to the first tab; not at all the expected action.
Attempted Solutions
- I have tried to use PreserveProperty of the tab; but that doesn't work.
What I really need, is a way to click on the link I have, allow that click to populate a series of text boxes on the form, while preserving the state of the form: that is letting me be in the text box I want to edit, and, staying on the tab in question.
I think I saw a post where this can be done in JQuery; but I honestly have no clue where to but the JQuery code or the script code to make that happen. Frankly I wouldn't even know what to put in the jQuery for that matter...
Is it possible for instance, to have a VFP function (like that when we fire a click event on a button) that executes to populate the text boxes; and thereby maintaining the current state of the form....
Does anyone have some suggestions?
Desperately thanking everyone!
Serge