|
| [WB21]Wrongs with table data |
| Iniciado por guest, 28,jul. 2016 00:01 - 4 respuestas |
| |
| | | |
|
| |
| Publicado el 28,julio 2016 - 00:01 |
Hi everyone. I am Nick a pleasure to meeting you
I need help please.
I have a page with a popup page, this popup have a table in ajax mode filled by programming but, when I need get the value from a selected row. the debugger show me that i dont have information in the table...but actually in the browser i can watch it.
in fact, when I insert a debug sentence (for example Table_Table..Occurrence) the Occurrence value return 0.
You know why this happens?
Thanks in advance. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 28,julio 2016 - 00:18 |
Hi Nick,
In webdev, browser side and server side are VERY diferent. So for each part of your description, you need to tell us WHERE things are done...
By example: "...a table in ajax mode filled by programming IN SERVER CODE INIT OF THE PAGE..." By example: "...for example Table_Table..Occurrence IN BROWSER CODE CLICK ON BUTTON XX"
If we don't know that, it will be very hard to have an idea of what's happening As a general rule, the browser side does not know what the server side is doing and the server side doesn't know what the browser side is doing, EXCEPT FOR THE EXPLICIT COMMUNICATION between the 2 (submit button, displaypage, etc)
Best regards |
| |
| |
| | | |
|
| | |
| |
| Publicado el 28,julio 2016 - 00:27 |
Hi Fabrice... thanks for your help
Im filling the table in a server code in a button (clic event, server) inside of the popup page, I use the popupdisplay sentence and then I use executeprocess(popuppage.BTN_Button,trtclic)
the synthax:
//ServerCode Clic event
IF NOT gbValidate THEN Save() ELSE ExecuteProcess(LAYOUT_Area_CONTENT.CELL_Data.BTN_FillTable,trtClick) ExecuteProcess(POPUP_Duplicates.BTN_Refresh,trtClick) //this event fill the table END |
| |
| |
| | | |
|
| | |
| |
| Publicado el 28,julio 2016 - 08:23 |
Hi Nick,
What do you get in the AJAX server event "Row Selection" of your table when you click a row. You should be entering this event. If you place this in your code:
Trace(CurrentSubscript())
you should get the index of the selected row in the trace window.
If this is correct, then you can continue to use:
nIndex is int = CurrentSubscript() TABLE_MYTable[nIndex].MyColomn
To get data from the column
Hope you get it working, I use AJAX tables in popup's all the time, and there working great !
Danny |
| |
| |
| | | |
|
| | |
| |
| Publicado el 28,julio 2016 - 19:31 |
Thanks Danny and Fabrice.
Finally I solved...
I forgot to save the variable in the AWPcontext...
now, runs great.
best regards |
| |
| |
| | | |
|
| | | | |
| | |
|