Guys:
How can I have an xBrowse with a column that the user can mark / unmark records that he/she has selected ? I need to do this without adding a field to the database. Thank you.
Guys:
How can I have an xBrowse with a column that the user can mark / unmark records that he/she has selected ? I need to do this without adding a field to the database. Thank you.
oBrw:Marked := { ||AScan( oBrw:aSelected, { |n| n == oBrw:BookMark } ) > 0 }
oBrw:Marked:SetCheck() // if display is expected as checkbox :nMarqueeStyle := MARQSTYLE_HIGHLROWMSNageswaragunupudi:
Thank you for your help. Is oBrw:marked a xBrowse data and SetCheck() a method ? Can you provide a small example because I can't find documentation on marked and SetCheck() ?
Is this solution working for you?
There is no xbrowse data "Marked".
There is a feature of xbrowe to add new columns with much ease.
oBrw:<ColName> := bCodeBlock creates and adds a new column with the codeblock and <colname> as the header.
By writing oBrw:Marked := { || .... }, we added a new column with header "Marked" whose value is ascertained by the codeblock we provided. This is a short cut to ADD COLUMN method,
By writing oBrw:Marked:SetCheck() we called the method SetCheck() for the column named "Marked" of the browse.
Rao:
Thanks, how can I filter an xBrowse so I can include records matching a criteria ?
Rao:
Where I can find all the data & methods that xBrowse supports ? It seems that the manual does not show all options. FiveWin 10.06