Page 1 of 1

to Mr. Rao

PostPosted: Thu Dec 22, 2011 6:13 pm
by ukservice
Mr. Nao,

I have two questions about xBrowse. I would appreciate your help please.

Regarding viewtopic.php?f=3&t=23113

http://imageshack.us/photo/my-images/19 ... great.png/

Is it possible to exclude spaces, as the picture?.



Also, in
Code: Select all  Expand view
oBrw:aCols[ 1 ]:nEditType   := EDIT_GET_BUTTON


Is it possible in the button to indicate a Bmp as BUTTONBMP?.


Thanks a lot.

Re: to Mr. Nao

PostPosted: Fri Dec 23, 2011 6:53 am
by hua
Don't you mean Mr Rao? :)

Re: to Mr. Nao

PostPosted: Fri Dec 23, 2011 1:43 pm
by nageswaragunupudi
Is it possible to exclude spaces, as the picture?.




If this is a character field, use Trim(<fieldname>) while defining xbrowse.
Example:

Code: Select all  Expand view

oBrw:aCols[n]:bEditValue := { |x| If( x == nil, Trim(<fieldname>), ( <fieldname> := x, Trim(x) ) }
 

I do not know why you want this behavior. Users will not be able to enter longer value than the trimmed value shown in the browse.

Re: to Mr. Nao

PostPosted: Fri Dec 23, 2011 1:47 pm
by nageswaragunupudi
Is it possible in the button to indicate a Bmp as BUTTONBMP?.

Please use oCol:nBtnBmp for this purpose

Re: to Mr. Nao

PostPosted: Fri Dec 23, 2011 5:17 pm
by ukservice
Thank you very much.

Also, one last thing.

I do double click to edit a field or just press enter.

To save changes, I should press enter too. Also, is it possible to save changes when clicking in another cell?.

Thanks.

Re: to Mr. Nao

PostPosted: Fri Dec 23, 2011 11:33 pm
by FranciscoA
Hi, Mr. Nao.
I also am interested in exposing ukservice.
Is it possible save changes on EDIT_GET without pressing ENTER and clicking another cell or the header's column?

Thanks

Re: to Mr. Nao

PostPosted: Mon Dec 26, 2011 6:51 am
by RAMESHBABU
Hi Mr.ukservice and Mr.FranciscoA

Don't you mean Mr Rao?


Mr.hua already pointed out that error in addressing Mr.Rao as Mr.Nao.

Inspite of Mr.Hua's pointing, Mr.ukservice did not mind to rectify the error:(
and kept on asking for Mr.Rao's help.

It is very sad that Mr.FranciscoA is also on the same path of Mr.ukservice :o

Let us respect our Seniors, at least by calling them with their own names.

Mr.ukservice and Mr.FranciscoA

I hope you don't think bad of my comment.

Regards,

- Ramesh Babu P

Re: to Mr. Rao

PostPosted: Mon Dec 26, 2011 10:38 am
by ukservice
Sorry, I thought if was Nao as others call him too.

Sorry again and thanks for your help and interest.