Re: [api-dev] How set a Default Value to a FormControl ListBox

2008-12-17 Thread Jason Stephenson
You could also try something like this: Sub DoThing Dim Form As Object Dim ListBox As Object Dim Controller As Object Dim ListBoxControlModel As Object ' Get controller for the current document Controller = ThisComponent.getCurrentController() ' Assuming first or onl

Re: [api-dev] How set a Default Value to a FormControl ListBox

2008-12-17 Thread Ariel Constenla-Haile
Fernand Vanrie escribió: > Ariel Constenla-Haile wrote: > > Ariel, thanks for your quick reply, but as i can not enter the > Defaultvalue in a listbox when Xraying > > oform.CbxTaal i get a empty table who learns me nothing :-) mmm here I don't understand you Let's see if I get it... >> Ferna

Re: [api-dev] XCell methods getValue and getError

2008-12-17 Thread Daniel Rentz
Hello, Petteri Larjos schrieb: Question 2 com.sun.star.table.xcell method getError() returns long value. How do I get error string which corresponds with getError() value? The corresponding error text is application dependent. There is currently no way to get it from the error code. Maybe th

Re: [api-dev] How set a Default Value to a FormControl ListBox

2008-12-17 Thread Frank Schönheit - Sun Microsystems Germany
Hi Fernand, > again the secrets are in the control :-) > > oform = thisComponent.drawpage.forms.getbyname( "Ingave") > omodel = oform.CbxTaal > oControl = ThisComponent.CurrentController.getControl( omodel) > ' > ocontrol.selectitem("N", true) This indeed changes the selection at the control onl

Re: [api-dev] XCell methods getValue and getError

2008-12-17 Thread Daniel Rentz
Hi Oliver, Oliver Brinzing schrieb: maybe a java snippet will help: [...] final CellContentType type = xCell.getType(); if (type == CellContentType.FORMULA) { final CellContentType cellType = (CellContentType) getPropertyValue(xCell, "FormulaResultType"); This should be type int, n

Re: [api-dev] How set a Default Value to a FormControl ListBox

2008-12-17 Thread Fernand Vanrie
OK found it! again the secrets are in the control :-) oform = thisComponent.drawpage.forms.getbyname( "Ingave") omodel = oform.CbxTaal oControl = ThisComponent.CurrentController.getControl( omodel) ' ocontrol.selectitem("N", true) still have the question how to set a Default value with the GU

Re: [api-dev] XCell methods getValue and getError

2008-12-17 Thread Oliver Brinzing
Hi, maybe a java snippet will help: Oliver [...] final CellContentType type = xCell.getType(); if (type == CellContentType.FORMULA) { final CellContentType cellType = (CellContentType) getPropertyValue(xCell, "FormulaResultType"); if (cellType.getValue() == FormulaResult.STRING

Re: [api-dev] How set a Default Value to a FormControl ListBox

2008-12-17 Thread Fernand Vanrie
Ariel Constenla-Haile wrote: Ariel, thanks for your quick reply, but as i can not enter the Defaultvalue in a listbox when Xraying oform.CbxTaal i get a empty table who learns me nothing :-) thanks anyhow Fernand Vanrie escribió: Hallo all, First I treed to set with the GUI a a Default

Re: [api-dev] How set a Default Value to a FormControl ListBox

2008-12-17 Thread Ariel Constenla-Haile
Fernand Vanrie escribió: > Hallo all, > First I treed to set with the GUI a a Default value into a FormControl > ListBox but no sucses, the opening ListBox stays empty and the entered > value disapered ? > > then i tried the same me thing using the API no sucses...; > > my best gues wa

[api-dev] How set a Default Value to a FormControl ListBox

2008-12-17 Thread Fernand Vanrie
Hallo all, First I treed to set with the GUI a a Default value into a FormControl ListBox but no sucses, the opening ListBox stays empty and the entered value disapered ? then i tried the same me thing using the API no sucses...; my best gues was oform.CbxTaal.setPropertyvalue("Se

[api-dev] XCell methods getValue and getError

2008-12-17 Thread Petteri Larjos
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I am using UNO C++ API and need help with XCell interface. Question 1 How do I get value of cell which contains formula returninng text? For example spreadsheet cell with formula '==CONCATENATE("some";"text")'. The com.sun.star.table.xcell met