DCTABPAGE with database

This forum is for eXpress++ general support.
Post Reply
Message
Author
JanK
Posts: 5
Joined: Thu Apr 08, 2010 9:51 am

DCTABPAGE with database

#1 Post by JanK »

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
Attachments
PRG_EXE.RAR
(121.12 KiB) Downloaded 902 times

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DCTABPAGE with database

#2 Post by rdonnay »

I need more information.

I don't see anything in your source code that refers to "detail".
The eXpress train is coming - and it has more cars.

JanK
Posts: 5
Joined: Thu Apr 08, 2010 9:51 am

Re: DCTABPAGE with database

#3 Post by JanK »

Sorry, I added bad files.

Best Regards,
Jan
Attachments
PRG_EXE.RAR
(55.91 KiB) Downloaded 931 times

JanK
Posts: 5
Joined: Thu Apr 08, 2010 9:51 am

Re: DCTABPAGE with database

#4 Post by JanK »

Sorry.

Solution of this problem is for me very important. Help me.

Jan (Jean)

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DCTABPAGE with database

#5 Post by rdonnay »

Working with CRT windows and GUI windows can be very tricky.

Can you explain why you need this?
The eXpress train is coming - and it has more cars.

JanK
Posts: 5
Joined: Thu Apr 08, 2010 9:51 am

Re: DCTABPAGE with database

#6 Post by JanK »

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
(55.91 KiB) Downloaded 923 times

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DCTABPAGE with database

#7 Post by rdonnay »

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?
The eXpress train is coming - and it has more cars.

JanK
Posts: 5
Joined: Thu Apr 08, 2010 9:51 am

Re: DCTABPAGE with database

#8 Post by JanK »

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)
Attachments
PRG_EXE.RAR
(6.79 KiB) Downloaded 971 times

Cliff Wiernik
Posts: 605
Joined: Thu Jan 28, 2010 9:11 pm
Location: Steven Point, Wisconsin USA
Contact:

Re: DCTABPAGE with database

#9 Post by Cliff Wiernik »

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.

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DCTABPAGE with database

#10 Post by rdonnay »

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.

Post Reply