Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #6935 > unrolled thread

Problem with bBrowser and celledit

Started byKrystian <softb@softb.pl>
First post2014-06-07 06:09 -0700
Last post2014-06-10 09:29 -0400
Articles 4 — 3 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  Problem with bBrowser and celledit Krystian <softb@softb.pl> - 2014-06-07 06:09 -0700
    Re: Problem with bBrowser and celledit "Jamal" <someone@example.com> - 2014-06-07 12:31 -0400
    Re: Problem with bBrowser and celledit Krystian Besler <krystian.besler@gmail.com> - 2014-06-09 10:56 -0700
      Re: Problem with bBrowser and celledit "Jamal" <someone@example.com> - 2014-06-10 09:29 -0400

#6935 — Problem with bBrowser and celledit

FromKrystian <softb@softb.pl>
Date2014-06-07 06:09 -0700
SubjectProblem with bBrowser and celledit
Message-ID<7b33862f-5533-4fb1-bd2d-eeb860d0e5e4@googlegroups.com>
Hi all,

May somebody help me to understand why I can not update the field in bb; 
here is an example from postinit :

suf_dt := Right(DToS(dt1), 4)
pole := 'ZM_'+suf_dt

// this solution works - actualize field of a data base
//oCol := bDataColumn{SELF:oDCB_Browser, SELF:rcp_dane, pole, #field}

// this solution does not work
oCol := bDataColumn{SELF:oDCB_Browser, SELF:rcp_dane, {|Server, suf| _Pisz_zmiane(Server, suf)}, #Expression, suf_dt}

oCol:ViewValueAs := #ComboBox
oCol:ValueTransformList := xtab_combo
oCol:AutoEdit := #Excel
// 		oCol:EditStartFlags := BESF_PERMANENT
oCol:Editable := TRUE

SELF:oDCB_Browser:AddColumn(oCol)
SELF:oDCB_Browser:OpenColumn(oCol, n)
SELF:oDCB_Browser:ColumnList[n]:Caption := Transform(suf_cap, '@R 99-99')+crlf+xTab_skd[DoW(dt1)]
SELF:oDCB_Browser:ColumnList[n]:Width := 65
SELF:oDCB_Browser:ColumnList[n]:HyperLabel := HyperLabel{String2Symbol(pole), pole}

function _pisz_zmiane combines values of two fields from the same record.

In a CellEdit method in the commit mode, I see for a short moment that the browser is updated with the new value choosed from a combo box (I use InfoBox), but finally the field in bb has the previous, old item. I do not know, which another method, apart from celledit, modifies the content of the bb. 

2.
Why, if I switch on the besf_permanent flag, an error appears after closing the window - bb tries to actualize the closed database ?

Thanks for any suggestions
Krystian

[toc] | [next] | [standalone]


#6936

From"Jamal" <someone@example.com>
Date2014-06-07 12:31 -0400
Message-ID<lmveo5$7la$1@speranza.aioe.org>
In reply to#6935
Krystian,

>> I do not know, which another method, apart from celledit, modifies the 
>> content of the bb.  <<

IF oCellEditEvent:EditMode == BEDIT_COMMIT
    oCellEditEvent:Control:Refresh()    // bBrowser
ENDIF

Jamal

"Krystian"  wrote in message 
news:7b33862f-5533-4fb1-bd2d-eeb860d0e5e4@googlegroups.com...

Hi all,

May somebody help me to understand why I can not update the field in bb;
here is an example from postinit :

suf_dt := Right(DToS(dt1), 4)
pole := 'ZM_'+suf_dt

// this solution works - actualize field of a data base
//oCol := bDataColumn{SELF:oDCB_Browser, SELF:rcp_dane, pole, #field}

// this solution does not work
oCol := bDataColumn{SELF:oDCB_Browser, SELF:rcp_dane, {|Server, suf| 
_Pisz_zmiane(Server, suf)}, #Expression, suf_dt}

oCol:ViewValueAs := #ComboBox
oCol:ValueTransformList := xtab_combo
oCol:AutoEdit := #Excel
// oCol:EditStartFlags := BESF_PERMANENT
oCol:Editable := TRUE

SELF:oDCB_Browser:AddColumn(oCol)
SELF:oDCB_Browser:OpenColumn(oCol, n)
SELF:oDCB_Browser:ColumnList[n]:Caption := Transform(suf_cap, '@R 
99-99')+crlf+xTab_skd[DoW(dt1)]
SELF:oDCB_Browser:ColumnList[n]:Width := 65
SELF:oDCB_Browser:ColumnList[n]:HyperLabel := 
HyperLabel{String2Symbol(pole), pole}

function _pisz_zmiane combines values of two fields from the same record.

In a CellEdit method in the commit mode, I see for a short moment that the 
browser is updated with the new value choosed from a combo box (I use 
InfoBox), but finally the field in bb has the previous, old item. I do not 
know, which another method, apart from celledit, modifies the content of the 
bb.

2.
Why, if I switch on the besf_permanent flag, an error appears after closing 
the window - bb tries to actualize the closed database ?

Thanks for any suggestions
Krystian 

[toc] | [prev] | [next] | [standalone]


#6940

FromKrystian Besler <krystian.besler@gmail.com>
Date2014-06-09 10:56 -0700
Message-ID<18084cfc-d1b9-4c19-ac9c-3842c75d58b8@googlegroups.com>
In reply to#6935
W dniu sobota, 7 czerwca 2014 15:09:27 UTC+2 użytkownik Krystian napisał:
> Hi all,
> 
> 
> 
> May somebody help me to understand why I can not update the field in bb; 
> 
> here is an example from postinit :
> 
> 
> 
> suf_dt := Right(DToS(dt1), 4)
> 
> pole := 'ZM_'+suf_dt
> 
> 
> 
> // this solution works - actualize field of a data base
> 
> //oCol := bDataColumn{SELF:oDCB_Browser, SELF:rcp_dane, pole, #field}
> 
> 
> 
> // this solution does not work
> 
> oCol := bDataColumn{SELF:oDCB_Browser, SELF:rcp_dane, {|Server, suf| _Pisz_zmiane(Server, suf)}, #Expression, suf_dt}
> 
> 
> 
> oCol:ViewValueAs := #ComboBox
> 
> oCol:ValueTransformList := xtab_combo
> 
> oCol:AutoEdit := #Excel
> 
> // 		oCol:EditStartFlags := BESF_PERMANENT
> 
> oCol:Editable := TRUE
> 
> 
> 
> SELF:oDCB_Browser:AddColumn(oCol)
> 
> SELF:oDCB_Browser:OpenColumn(oCol, n)
> 
> SELF:oDCB_Browser:ColumnList[n]:Caption := Transform(suf_cap, '@R 99-99')+crlf+xTab_skd[DoW(dt1)]
> 
> SELF:oDCB_Browser:ColumnList[n]:Width := 65
> 
> SELF:oDCB_Browser:ColumnList[n]:HyperLabel := HyperLabel{String2Symbol(pole), pole}
> 
> 
> 
> function _pisz_zmiane combines values of two fields from the same record.
> 
> 
> 
> In a CellEdit method in the commit mode, I see for a short moment that the browser is updated with the new value choosed from a combo box (I use InfoBox), but finally the field in bb has the previous, old item. I do not know, which another method, apart from celledit, modifies the content of the bb. 
> 
> 
> 
> 2.
> 
> Why, if I switch on the besf_permanent flag, an error appears after closing the window - bb tries to actualize the closed database ?
> 
> 
> 
> Thanks for any suggestions
> 
> Krystian

Hi Jamal,

Than you for your suggestion, but it is pity - it does not work. Program still hangs on the exit from that window - and what is strange for me : with the error message "Work area not in use" in bedit_end mode.
But it is not important - I do not understand and do not need the functionality of flag besf_permanent and I switched it off.
For me, the key problem is described in point 1, because it decreases the functionality of the browser/module.

Any helpful suggestion are welcome
Krystian

[toc] | [prev] | [next] | [standalone]


#6944

From"Jamal" <someone@example.com>
Date2014-06-10 09:29 -0400
Message-ID<ln7183$ht2$1@speranza.aioe.org>
In reply to#6940
With issues like these, I suggest you email a full sample that produces the 
issue to Joachim or post a link here.

Jamal

"Krystian Besler"  wrote in message 
news:18084cfc-d1b9-4c19-ac9c-3842c75d58b8@googlegroups.com...

W dniu sobota, 7 czerwca 2014 15:09:27 UTC+2 użytkownik Krystian napisał:
> Hi all,
>
>
>
> May somebody help me to understand why I can not update the field in bb;
>
> here is an example from postinit :
>
>
>
> suf_dt := Right(DToS(dt1), 4)
>
> pole := 'ZM_'+suf_dt
>
>
>
> // this solution works - actualize field of a data base
>
> //oCol := bDataColumn{SELF:oDCB_Browser, SELF:rcp_dane, pole, #field}
>
>
>
> // this solution does not work
>
> oCol := bDataColumn{SELF:oDCB_Browser, SELF:rcp_dane, {|Server, suf| 
> _Pisz_zmiane(Server, suf)}, #Expression, suf_dt}
>
>
>
> oCol:ViewValueAs := #ComboBox
>
> oCol:ValueTransformList := xtab_combo
>
> oCol:AutoEdit := #Excel
>
> // oCol:EditStartFlags := BESF_PERMANENT
>
> oCol:Editable := TRUE
>
>
>
> SELF:oDCB_Browser:AddColumn(oCol)
>
> SELF:oDCB_Browser:OpenColumn(oCol, n)
>
> SELF:oDCB_Browser:ColumnList[n]:Caption := Transform(suf_cap, '@R 
> 99-99')+crlf+xTab_skd[DoW(dt1)]
>
> SELF:oDCB_Browser:ColumnList[n]:Width := 65
>
> SELF:oDCB_Browser:ColumnList[n]:HyperLabel := 
> HyperLabel{String2Symbol(pole), pole}
>
>
>
> function _pisz_zmiane combines values of two fields from the same record.
>
>
>
> In a CellEdit method in the commit mode, I see for a short moment that the 
> browser is updated with the new value choosed from a combo box (I use 
> InfoBox), but finally the field in bb has the previous, old item. I do not 
> know, which another method, apart from celledit, modifies the content of 
> the bb.
>
>
>
> 2.
>
> Why, if I switch on the besf_permanent flag, an error appears after 
> closing the window - bb tries to actualize the closed database ?
>
>
>
> Thanks for any suggestions
>
> Krystian

Hi Jamal,

Than you for your suggestion, but it is pity - it does not work. Program 
still hangs on the exit from that window - and what is strange for me : with 
the error message "Work area not in use" in bedit_end mode.
But it is not important - I do not understand and do not need the 
functionality of flag besf_permanent and I switched it off.
For me, the key problem is described in point 1, because it decreases the 
functionality of the browser/module.

Any helpful suggestion are welcome
Krystian 

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web