I have with function problem DCTABPAGE to in section chosen element "detail" be seen in section "Kontrahenci". In section "Detail" first record sees always from database "kontra" why.
Best Regards
Jan
DCTABPAGE with database
DCTABPAGE with database
- Attachments
-
- PRG_EXE.RAR
- (121.12 KiB) Downloaded 901 times
Re: DCTABPAGE with database
I need more information.
I don't see anything in your source code that refers to "detail".
I don't see anything in your source code that refers to "detail".
The eXpress train is coming - and it has more cars.
Re: DCTABPAGE with database
Sorry, I added bad files.
Best Regards,
Jan
Best Regards,
Jan
- Attachments
-
- PRG_EXE.RAR
- (55.91 KiB) Downloaded 931 times
Re: DCTABPAGE with database
Sorry.
Solution of this problem is for me very important. Help me.
Jan (Jean)
Solution of this problem is for me very important. Help me.
Jan (Jean)
Re: DCTABPAGE with database
Working with CRT windows and GUI windows can be very tricky.
Can you explain why you need this?
Can you explain why you need this?
The eXpress train is coming - and it has more cars.
Re: DCTABPAGE with database
I use two times DCTABPAGE. In first DCTABPAGE display object DCBROWSE ('Kontrahenci') , in second display the details of record chosen in object DCBROWSE ('Detail'). Unfortunately in 'Detail' always displayed details of first record of database, not details it chosen record from object DCBROWSE.
Why?
Best Regards
Jan (Jean)
Why?
Best Regards
Jan (Jean)
- Attachments
-
- PRG_EXE.RAR
- (55.91 KiB) Downloaded 923 times
Re: DCTABPAGE with database
You didn't answer my question. I need to understand why you must have an XbpCrt object on the 2nd tabpage.
Nobody ever writes Xbase++ programs this way because it is so tricky.
You can't just send a refresh event to a CRT window because it runs like a DOS window.
It would have to run in its own thread.
Why don't you use eXpress++ DC* commands to do what you want?
Nobody ever writes Xbase++ programs this way because it is so tricky.
You can't just send a refresh event to a CRT window because it runs like a DOS window.
It would have to run in its own thread.
Why don't you use eXpress++ DC* commands to do what you want?
The eXpress train is coming - and it has more cars.
Re: DCTABPAGE with database
In this example I do not it use CRT windows only Expres ++ DC.
Problem exists still.
Description of problem:
I use two times DCTABPAGE. In first DCTABPAGE display object DCBROWSE ('Kontrahenci') , in second display the details of record chosen in object DCBROWSE ('Detail'). Unfortunately in 'Detail' always displayed details of first record of database, not details it chosen record from object DCBROWSE.
Why?
Best Regards
Jan (Jean)
Problem exists still.
Description of problem:
I use two times DCTABPAGE. In first DCTABPAGE display object DCBROWSE ('Kontrahenci') , in second display the details of record chosen in object DCBROWSE ('Detail'). Unfortunately in 'Detail' always displayed details of first record of database, not details it chosen record from object DCBROWSE.
Why?
Best Regards
Jan (Jean)
- Attachments
-
- PRG_EXE.RAR
- (6.79 KiB) Downloaded 971 times
-
- Posts: 605
- Joined: Thu Jan 28, 2010 9:11 pm
- Location: Steven Point, Wisconsin USA
- Contact:
Re: DCTABPAGE with database
I do this all the time. I set the ITEMSELECTED AND ITEMMARKED commands of the DCBROWSE to do something. For ITEMSELECTED, I say to process the hotkey to select 2nd tabpage. The DCTABPAGE for the 2nd browse has a GOTFOCUS clause that states, if moving from tabpage1, set tabpagenumber to 2, scatter the current record, then do a dcgetrefresh. The selection of the record in the browse does not automatically update the variables on the 2nd page. You have to tell the variables to update and then refresh the screen.
Cliff.
Cliff.
Re: DCTABPAGE with database
If you could eliminate the need to have a CRT window on that tabpage, then I can help you with this.
The eXpress train is coming - and it has more cars.