topic stringlengths 1 63 | text stringlengths 1 577k ⌀ |
|---|---|
xBrowse: Avoid long numbers converted to scientific notation | Hi,
I have a col with long numbers, e.g. 119200075708
After exporting to excel from xbrowser, it ends up as 1.192E+11
How to prevent that from happening?
[img:3kriwdo8]https://i.postimg.cc/FKwqJRjw/xbrowse.png[/img:3kriwdo8]
TIA
p.s. I just noticed all the numbers in "Inv Num." column ar... |
xBrowse: Avoid long numbers converted to scientific notation | Is this a browse from Array or DBF?
For now, please do this.
Have a function like this
[code=fw:31yeqrn8]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> myexcel<span style="color: #000000;">(</span> oBrw <span style="color: #000000;">)</span><br />&... |
xBrowse: Avoid long numbers converted to scientific notation | [quote="nageswaragunupudi":2z3nw1gk]Is this a browse from Array or DBF?[/quote:2z3nw1gk]
From an array which gets its contents from a csv file
[quote:2z3nw1gk]
For now, please do this.
Have a function like this
[code=fw:2z3nw1gk]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C80... |
xBrowse: Change :cFilterFld when user click on header | Hi,
My xbrowse has autosort. How can I automatically change :cFilterFld based on which col header user clicks?
TIA |
xBrowse: Colores diferentes para fila y celda seleccionadas | ¿Es posible que la celda seleccionada tenga colores diferentes a los de la fila seleccionada? ¿Cómo?Gracias por adelantado. |
xBrowse: Colores diferentes para fila y celda seleccionadas | Hola Cesar, es importante que nos menciones que Browse utilizas, si es el twbrowse, es facil, pero si me gustaria que nos platicaras..Saludos |
xBrowse: Colores diferentes para fila y celda seleccionadas | Hola, Luis.En el asunto lo puse: xbrowse.Gracias |
xBrowse: Colores diferentes para fila y celda seleccionadas | César,En FWH\samples\testXbrw3.prg tienes un ejemplo:[code:3i3hr9zc]
@ 0,0 XBROWSE oBrw ;
COLUMNS "State", "City", "First", "Married", "HireDate", "Age", "Salary", "Last" ;
JUSTIFY .f., AL_CENTER, .t. ;
OF ownd ;
ALIAS cAlias AUTOSORT FASTEDIT FOOTERS LINES CELL
... |
xBrowse: HEADERLBUTTONUP | Gracias Francisco por tu respuesta a mi pregunta anterior, funcionó.
Me ha surgido otro problema con el xBrowse, al presionar el título de una columna ejecuto una función, pero aleatoriamente me tira este error..
soy yo o la clase ?
Puede que los números de lineas no corresponda a la de la clase original.. agregamos u... |
xBrowse: HEADERLBUTTONUP | You might have assigned a codeblock action to header button click.
In that case you need include the following lines at the end of the action
----------
[code=fw:3d2i7cqa]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">oBrw</span... |
xBrowse: HEADERLBUTTONUP | gracias y saludos
Silvina |
xBrowse: HEADERLBUTTONUP | Gracias Francisco por tu respuesta a mi pregunta anterior, funcionó.
Me ha surgido otro problema con el xBrowse, al presionar el título de una columna ejecuto una función, pero aleatoriamente me tira este error..
soy yo o la clase ?
Puede que los números de lineas no corresponda a la de la clase original.. agregamos u... |
xBrowse: How to detect when value in a SetCheck col changed? | Hi all,
How to detect when a value in a SetCheck col is changed or toggled? I tried with oBrw:bChange and oCol:bEditValid with no success.
Marquee style is set to MARQSTYLE_DOTEDCELL and am browsing an array.
I'm using FWH11.8.
TIA |
xBrowse: How to detect when value in a SetCheck col changed? | oCol:bOnChange := { |oCol, uOldVal| MyFuncOnChange( oCol, uOldVal ) } |
xBrowse: How to detect when value in a SetCheck col changed? | Thanks Rao!
When user checked a row, I want to display a message at the top using a say control. That can now be accomplished using bOnChange.
However once user click somewhere else, in other words the col lost focus, I want to erase that message. Is there such a bLostFocus data?
TIA |
xBrowse: How to detect when value in a SetCheck col changed? | You can use oBrw:bChange.
You must be alrady aware that oBrw:bChange is evaluated when row is changed.
If we set oBrw:lColChangeNotify := .t., then oBrw:bChange is called even when column is changed.
oBrw:lColChangeNotify := .t.
oBrw:bChange := { |oBrw, lRowChange| MyChangeFunc( oBrw, lRowChange ) }
In the MyChange... |
xBrowse: How to detect when value in a SetCheck col changed? | Thank you so much Rao! |
xBrowse: How to display image from resource based on flag | Hi,
Can someone share a code snippet to view image from resource in a column based on a flag in the dbf currently being viewed?
TIA |
xBrowse: How to display image from resource based on flag | This sample demonstrates 3 alternative ways of doing it.
[code=fw:20wwnzif]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br />REQUEST DBFCDX<br /><br /><span style="color: #00C800;">function</span> Main<spa... |
xBrowse: How to display image from resource based on flag | Thank you very much for the extensive example Rao! <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
xBrowse: How to display image from resource based on flag | Rao, excelente, podría decirme como hacer esto con archivo bmp en lugar del RC.
Saludos
Jorge |
xBrowse: How to display image from resource based on flag | [quote="jpcavagnaro":25kh34ix]Rao, excelente, podría decirme como hacer esto con archivo bmp en lugar del RC.
Saludos
Jorge[/quote:25kh34ix]
Substitute resource names with bitmap file names with full path. |
xBrowse: How to display two columns from diferent databases? | Hello,
I need some help with xBrowse and displaying two or more columns from different databases.
Does anyone have simple example or know location in \fwh directory. I saw Mr. James and
Anser posts but I didn't understand how they solved this problem.
regards
Boris |
xBrowse: How to display two columns from diferent databases? | If you are asking about fields from two tables related to each other, here is an example. You can run this in \fwh\samples folder. This example uses two tables from that folder.
[code=fw:1lunxoga]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: ... |
xBrowse: How to display two columns from diferent databases? | Thank's a lot, your example works great!
Boris |
xBrowse: How to get the column's line drawn until the bottom | [url=https://postimg.org/image/mkm2bqgl1/:3emae1lq][img:3emae1lq]https://s2.postimg.org/sljr8t37d/image.jpg[/img:3emae1lq][/url:3emae1lq][url=https://postimage.org/:3emae1lq]upload pictures online[/url:3emae1lq]
Currently using marquee [i:3emae1lq]MARQSTYLE_HIGHLROW[/i:3emae1lq] |
xBrowse: How to get the column's line drawn until the bottom | [code=fw:14scxt9o]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw:<span style="color: #000000;">lColDividerComplete</span> := .T.</div>[/code:14scxt9o] |
xBrowse: How to get the column's line drawn until the bottom | Thanks Anserk! |
xBrowse: Message ""oCol:bOnPostEdit not defined"" | Hi,
in my program the key VK_F2 has a general function. Generally it works perfectly. But since the upgrade to fwh1005 I get a message "oCol:bOnPostEdit not defined" when a x-browse window is opened an I press the F2-key.
I made following efforts to handle this change of behaviour:
- I found in the TxBrwColumn-class... |
xBrowse: Message ""oCol:bOnPostEdit not defined"" | Gilbert
Since fwh 10.5 Xbrowse is behaving like excel and therefore f2 is assigned to edit a cell
I had the same surprise as my app uses also F2
As a work around, you needd to change the xbrowse.prg
search for keydown method and comment the relevant f2 code
Hth
Richard |
xBrowse: Message ""oCol:bOnPostEdit not defined"" | Richard,
thanks a lot for your answer. I did it like you said and it works.
Antonio,
have you planned to introduce something like a switch, so you can switch on/off excel-like behaviour?
Because in our application F2, SHIFT+F2 and CTRL+F2 are being used for other purposes. |
xBrowse: Message ""oCol:bOnPostEdit not defined"" | Gilbert, Richard,
We could add a new
DATA nEditKey INIT VK_F2
so from your app you could easily set a oBrowse:nEditKey = nAnotherValue
does it seem fine for you ? <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
xBrowse: Message ""oCol:bOnPostEdit not defined"" | I prefer F2 to be disabled by default. Actually I'd prefer any new feature introduced to be off by default to avoid being caught by surprise. It's a lot of work having to recheck all the modules to insert a new line just to be sure whatever was working will still continue to do so every time some new feature is added. |
xBrowse: Message ""oCol:bOnPostEdit not defined"" | Hua,
Yes, you are right and thats the way it should be. It was our mistake to implement that functionality without asking about it in advance. Our apologizes about it.
This is why we want to fix it now and make it fully configurable, optional, etc. <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title... |
xBrowse: Message ""oCol:bOnPostEdit not defined"" | Thank you <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> |
xBrowse: Message ""oCol:bOnPostEdit not defined"" | Antonio,
thank you very much, your proposal should work fine for me.
Please let us know as soon as you have completed this feature <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
xBrowse: Message ""oCol:bOnPostEdit not defined"" | Gilbert,
We have already implemented it and we will include it in next FWH 10.6 this same month <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
xBrowse: Pintado de lineas (filas) | Hola,
Es posible hacer que el control xBrowser, para un numero de filas que no ocupen toda el area del control, se complete con colores alternos en las filas?
Lo que necesito hacer es algo como se ve en este browser que para una tabla, con solo un record, se complete toda el area del control con colores alternos en las... |
xBrowse: Pintado de lineas (filas) | Si mal no recuerdo, el xbrowse va mostrando las filas que llevan algun contenido, si hay alguna forma de que se pinte hasta el final creo deberia ser con registros en blanco, pero no tendria sentido, creo alguien solicito una vez algo como lo que quieres, que se pinte todo el xbrowse como si existieran los registros, s... |
xBrowse: Pintado de lineas (filas) | Prueba asi:
oLbx:bClrStd :={|| IF((cMa_Ctes)->(OrdKeyNo())%2==0,CLR_NADA,CLR_LCELES)} |
xBrowse: Pintado de lineas (filas) | George
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=26334">viewtopic.php?f=3&t=26334</a><!-- l --> |
xBrowse: Pintado de lineas (filas) | Gracias por su ayuda.
Saludos,
George |
xBrowse: Process filtered rows only | Hi Rao,
I have a 'Select All' checkbox. Right now it has this code attach to it
[code=fw:2p7nguhr]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> oCbxAll:<span style="color: #000000;">bChange</span> := <||<br /> aeval<span style="color: #000000;">(</span>oBrw:<sp... |
xBrowse: Process filtered rows only | I got an idea to do it this way. But seems to be caught in an infinite loop
[code=fw:28zx0b75]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #0000ff;">redefine</span> <span style="color: #0000ff;">checkbox</span> oCbxAll <span style="color: #0000ff;">var</span> lAll <s... |
xBrowse: Process filtered rows only | Ok. This version seems to work
[code=fw:28ff1q9x]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> oCbxAll:<span style="color: #000000;">bChange</span> := <||<br /> <span style="col... |
xBrowse: RTE when editing a numeric cell | The error doesn't appear when I try to reproduce it in a reduced-sample. It appear in my app after linking in FWH11.06+Harbour+MSVC 2010 Express though.
When I press Enter on a numeric cell to edit it I get this. Any help is appreciated as I've actually put this particular app in distribution to customers.
[code=fw:... |
xBrowse: RTE when editing a numeric cell | From the error log, it appears that there is some error with the picture clause.
Please let us see the xbrowse code pertaining the column. |
xBrowse: RTE when editing a numeric cell | Thanks for the help Rao. I know it's not easy to diagnose without a self-contained example. Appreciate it very much <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
[code=fw:leqj66w4]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #00... |
xBrowse: RTE when editing a numeric cell | Rao, I think you can ignore it for now and just use it as a mental exercise <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->. Everything seems to be ok again once I changed to BCC instead of MSVC |
xBrowse: Se borran los headers | Utilizo un xBrowse con base de datos (FWH 2.6). Funciona muy bien, excepto en que al desplazar la barra de scroll verticalmente y, a veces, al moverse de un registro a otro desaparecen los headers. Generalmente vuelven a pintarse si se fuerza un "Ir a inicio" o "ir a final" pero resulta incómodo.
¿Alguien sabe la so... |
xBrowse: Se borran los headers | Hola Rafael
Hace un par de meses, tambien puse un post sobre algo parecido a tu problema, desafortunadamente no he podido encontrar la causa o solucion.
Lo que estoy casi seguro es que, sucede cuando agregamos alguna clase que pudiera tener algun tipo de conflicto con alguna otra, ya sea nativa o extra.
Por que usan... |
xBrowse: Se borran los headers | Acabo de llegar de vacaciones, y me estoy poniendo al dia. Referente al tema que comentais creo que el problema era debido a
::lRefreshOnlyData := .T.
en el metodo seek de xBrowse, si comentais esa linea creo que se solucionaba lo del refresco de la cabecera. Espero haberos puesto sobre la pista, sino con mas tranqu... |
xBrowse: Se borran los headers | Biel:
No sé si tu solución funciona (yo no utilizo el método Seek), pero siguiendo tu sugerencia, he hecho unas cuantas prueba y creo que el problema se soluciona comentando la linea lRefreshOnlyData := .T. en el método VScroll
Muchas gracias por tu idea, que creo que les puede servir a otros.
Rafael |
xBrowse: Se borran los headers | Rafael,
perfecto, me alegro que te haya valido para ponerte sobre la pista, y hayas podido solucionar el problema. |
xBrowse: Vertical Merge | Hi,
Trying to set up vertical merge on Col 1 and Col 2. But doesn't seem to work.
Am using Harbour+FWH1912 for this.
What seems to be wrong:
1. Despite merging, horizontol lines are still painted in col 1
2. Only one checkbox appeared in col 2. Col 2 should have 2 check boxes. One for item 1 the o... |
xBrowse: Vertical Merge | if you not give us a test sample we cannot help you |
xBrowse: Vertical Merge | Mui bién Silvio. Asi és. |
xBrowse: Vertical Merge | Here's a reduced, self-contained sample.
1. recur.rc
[code=fw:1kn91qd0]<div class="fw" id="{CB}" style="font-family: monospace;"><br />recur <span style="color: #0000ff;">DIALOG</span> <span style="color: #000000;">15</span>, <span style="color: #000000;">19</span>, <span style="color: #000000;">440</span>, <span styl... |
xBrowse: Vertical Merge | Hi Rao,
Could you offer some insight? TIA |
xBrowse: Vertical Merge | In the present implementation, we see the horizontal lines if the back color of bClrStd is not the same as oBrw:nClrPane (by default CLR_WHITE).
So, if you choose CLR_WHITE as the back color in bClrStd, you will not see these lines.
We improved this in the version FWH2004 to be released soon. With this improvement, yo... |
xBrowse: Vertical Merge | This is how your program will look like from FWH2004 onwards.
[url=https://imageshack.com/i/pmqKI7Djp:26dv2a6g][img:26dv2a6g]https://imagizer.imageshack.com/v2/xq90/922/qKI7Dj.png[/img:26dv2a6g][/url:26dv2a6g] |
xBrowse: Vertical Merge | Thank you for solving the line issue Rao. Great work!
Can you advice me on the 2nd column? It is also merged. I expected to see 3 check boxes. One for each No but only one is shown.
The checkbox will be toggled when user double click on any of the row to indicate which sets are selected by user
TIA |
xBrowse: Vertical Merge | After the line
[code=fw:17y5579d]<div class="fw" id="{CB}" style="font-family: monospace;"> oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span>:<span style="color: #000000;">lMergeVert</spa... |
xBrowse: Vertical Merge | Hi Rao,
[quote="nageswaragunupudi":335inlmp]
Add this line of code:
[code=fw:335inlmp]<div class="fw" id="{CB}" style="font-family: monospace;"> oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span>:<s... |
xBrowse: Vertical Merge | 1) Please try
[code=fw:y7fu4hwu]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span>:<span style="color: #000000;">bMergeValue</span> := <span st... |
xBrowse: Vertical Merge | Thanks for the prompt reply Rao!
All your suggestions works. Thanks! |
xBrowse: Vertical Merge | Hi Rao,
Can I have zebra effect by playing with fonts for each set of No.?
If it's possible can you share the snippet to do it?
TIA |
xBrowse: Vertical Merge | Please try:
[code=fw:1a5ozvsv]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw:<span style="color: #000000;">oDataFonts</span> := <span style="color: #000000;">{</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> <cond>, oFont1, oFont2 <span style="color: #000... |
xBrowse: Vertical Merge | [quote="nageswaragunupudi":3b24rlys]Please try:
[code=fw:3b24rlys]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw:<span style="color: #000000;">oDataFonts</span> := <span style="color: #000000;">{</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> <cond>, oFo... |
xBrowse: bOnRowLeave | I want to get the data of the row which user just left.
I can't use :bChange as :aRow() will show the data of current row I'm at.
I saw and tried :bOnRowLeave but my test seems to indicate it also doesn't give the result I'm looking for.
What else can I try?
TIA
p.s. How to get oBrw:report() to print logical field ... |
xBrowse: bOnRowLeave | Try with bLButtonUp |
xBrowse: bOnRowLeave | [quote="cnavarro":179u0pf0]Try with bLButtonUp[/quote:179u0pf0]
Doesn't work when navigating with keyboard. If navigate with mouse it'll also return the current row not the previous active row |
xBrowse: bOnRowLeave | Tried :bEditValid but seems checkbox won't trigger it |
xBrowse: bOnRowLeave | [quote:3905vbrt]I saw and tried :bOnRowLeave but my test seems to indicate it also doesn't give the result I'm looking for.
[/quote:3905vbrt]
:bOnRowLeave was actually intended for this purpose only, but it is not working reliably <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> |
xBrowse: bOnRowLeave | Rao,
I can do a workaround using bEditValid for Gets but has no solution for checkboxes.
Any idea? |
xBrowse: bOnRowLeave | We need to improve on the usage of bOnRowLeave.
Will you be able to do some tests? |
xBrowse: bOnRowLeave | Sure Rao. What do you need ? |
xBrowse: error in SameArrayStruct(..) function | Hi,
line 9380 "if nLen<=len(aNew)" has to be replaced with "if nLen<=len(aNew[1])" otherwise that function return .f. incorrectly |
xBrowse: error in SameArrayStruct(..) function | It was not an error. I think it was intentional. If the new array that is being substituted has more columns than the present array, it does not affect the browse in any way. |
xBrowse: error in SameArrayStruct(..) function | Hi Marco, Rao:
I agree with Marco, that sentence is comparing number of columns with number of rows.
Regards.
Manuel Mercado |
xBrowse: error in SameArrayStruct(..) function | Marco ,
See also <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=14046#p72232">viewtopic.php?f=3&t=14046#p72232</a><!-- l -->
From FWH 8.12 it should be corrected |
xBrowse: error in SameArrayStruct(..) function | Sorry. Yes. You are all right.
Hope this will be fixed in the next version.
Meanwhile we can correct our copies as Mr Marco suggested |
xBrowse: grabar dato al salir de celda con el mouse | Amigos del foro:
Varios de los usuarios de mis programas se quejan de que al salir del editor de celda con el mouse, se pierde el dato.
Lo resolví de la siguiente manera:
Modifique el METHOD PostEdit( xValue, lButton, lDirectAssign ) CLASS TXBrwColumn, de la siguiente forma:
[code=fw:31o889h2]<div class="fw" id="{... |
xBrowse: grabar dato al salir de celda con el mouse | Rolando,
probaste con
[code=fw:3ve56068]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span><coln><span style="color: #000000;">]</span>:<span style="color: #000000;">lAutoSave</span> := .T.</div>[/code:3v... |
xBrowse: grabar dato al salir de celda con el mouse | Rolando,
Como indica Marcelo con lAutoSave es suficiente sin hacer ningún cambio
[code=fw:3d3mc7qv]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> oCol:<span style="color: #000000;">bOnPostEdit</span> := <span style="color: #000000;">{</span>|o, v, n| oEMPL:<span style="color: #000000;">TFAC</s... |
xBrowse: grabar dato al salir de celda con el mouse | Marcelo, Ademar:
Gracias, funciona perfecto |
xBrowse: how to retrieve field names... | Can I with oBrw:aCols[ x ]... class tXbrowse (FWH 11.07) retrieve field names, like I retrieve header (oBrw:aCols[i]:aHeaders)?
I work with tDolphin and MySQL. Here is small example.
I try to get "first","last","city" fields in array, but without success.
[code=fw:1vrsmmae]<div class="fw" id="{CB}" style="font-family:... |
xBrowse: how to retrieve field names... | Try this:
[code=fw:1gsnqob3]<div class="fw" id="{CB}" style="font-family: monospace;">MyArrayOfFields := ArrTranspose<span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">oMySql</span>:<span style="color: #000000;">aStructure</span> <span style="color: #000000;">)</span><span style="color: ... |
xBrowse: how to retrieve field names... | I try this this command earlier,but this give me all fields from database table, not those that I choose for my xBrowse.
Thanks |
xBrowse: how to retrieve field names... | I don´t understand what you are trying to do. The fields already are in the array you used to build the browse. Field in column n is aFields[ n ] or am I missing something? |
xBrowse: how to retrieve field names... | Boris
This should work if you want to get the value of a header from a clicked cell ..
[code=fw:6bq64sa9]<div class="fw" id="{CB}" style="font-family: monospace;"><br />cText := oLbxA:<span style="color: #000000;">SelectedCol</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<s... |
xBrowse: how to retrieve field names... | I put the actual field name in :cargo when i need to know later.
The header does not contain the field name and data is generally a code block. |
xBrowse: how to retrieve field names... | I use two ways to add fields/headers/format array for xBrowse, something like this:
[code=fw:10s6uglm]<div class="fw" id="{CB}" style="font-family: monospace;"><br />aadd<span style="color: #000000;">(</span> aFields, <span style="color: #ff0000;">"sifr"</span> <span style="color: #000000;">)</span>; ... |
xBrowse: how to retrieve field names... | Has the command ADD FIELDS TO XBROWSE been introduced after FWH 13.04? I cant find it in my ch files. |
xBrowse: how to retrieve field names... | I have version 11.07 and this command works fine[code=fw:19hpew0t]<div class="fw" id="{CB}" style="font-family: monospace;"> ADD FIELDS <span style="color: #0000ff;">TO</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #00C800;">AT</span> <span style="color: #000000;">01</span> <span ... |
xBrowse: how to retrieve field names... | Boris,
Do you mean to retrieve the column DATA description ?
ADD FIELDS TO XBROWSE oBrw AT 02 DATA matc->grupa+' '+grup->konto HEADER "Grupa/Konto"
from the above it would be:
"matc->grupa+' '+grup->konto"
is this what you mean ? |
xBrowse: how to retrieve field names... | Antonio,
thanks for your time. Yes, char/strigs what are in array for xBrw field name (in above examlpe aFields array { "sifr","bar" ,"naziv","mc","storno","matc->grupa+' '+grup->konto" } or { "oQry:sifr","oQry:bar" ,"oQry:naziv" } ). I have some idea ho to solve this, but if exist something like ... [b:2e4lhmqc]oBrw:... |
xBrowse: how to retrieve field names... | Using your example
ADD FIELDS TO XBROWSE oBrw AT 01 DATA storno HEADER "Storno"
ADD FIELDS TO XBROWSE oBrw AT 02 DATA matc->grupa+' '+grup->konto HEADER "Grupa/Konto"
ADD FIELDS TO XBROWSE oBrw AT 05 DATA matc->naziv HEADER "Naziv robe"
oBrw:aCols[1]:cargo := [storno]
oBrw:aCols[2]:cargo := [Grupa/Konto]
oBrw:aCols[3... |
xBrowse: how to retrieve field names... | Gale,
I alredy try your code with my aplication. Works fine.
Thanks |
xBrowse: how to retrieve field names... | Mr Bosibila
I do not remember from which version we introduced this, but now oCol:cExpr returns the field name for you.
Please check if this DATA ( oCol:cExpr ) is in your version. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.