Page 1 of 1

Editing a cell in dcbrowse

Posted: Tue Oct 07, 2014 6:31 am
by obelix
Hi everybody
I want to edit a cell, using @ 3,2 DCBROWSE oBrowse DATA cAlias SIZE wcol,wrow FONT feldfont ;
ITEMSELECTED {||dblclickvorein(),oBrowse:RefreshAll()} EDIT xbeK_CTRL_E MODE DCGUI_BROWSE_EDITDOWN Clicking into the cell I can change the content but after leaving the cell with ENTER , the old content will be restored and the
next cell down will be edited. I think the code MODE DCGUI_BROWSE_EDITDOWN isn't correct.

I want to start editing with CTRL_E and finish it by using ENTER or something else and the changed content should be saved.
I prefer to change the content directly instead of using DCHOTKEY xbeK_CTRL_E ACTION ....

Re: Editing a cell in dcbrowse

Posted: Mon Nov 10, 2014 3:02 am
by obelix
Hi Roger,
what's wrong with my code?

Code: Select all

cAlias=alias()
   //ITEMSELECTED {||dblclickvorein(),oBrowse:RefreshAll()} ;
   //EDIT xbeK_CTRL_E MODE DCGUI_BROWSE_EDITEXIT ;
@ 3,2 DCBROWSE oBrowse DATA cAlias SIZE wcol,wrow FONT feldfont ;
   EDIT xbeBRW_ItemSelected MODE DCGUI_BROWSE_EDITACROSSDOWN ;
   DELETE xbeK_DEL ;
   INSERT xbeK_INS ;
   PRESENTATION DC_BrowPres()
even if I use the code of FUNCTION XSample_10in XDEMO for CELL-EDITING in a BROWSE, I can change the content, but when I exit with ENTER,
the changed content will not be saved.
the code behind the slashes is the call I would prefer for editing.