Hi Guys,

thats strange.... on the one side, ready-made-buttons seems to exist, but
not in special cases, like a base form in the same container (odb).

Why has Sun not created such easy thing? 

To present to many functions on a screen is playfull, but stress for
´Non-techies', so simplicity is beautiful. A simply function, assigned to a
form, which shows only the "client-mode", without all the tools, would be
really good.  

It must be so easy, to offer such an functionalitiy, and lots of questions
in the forums would just disapear.

I have recieved now an macro code for opening a new form, but still the
paramters are not included:

REM  *****  BASIC  *****

Sub openFormByTag(oEv)
REM OOo3.0: Reads the form name from a calling control's tag
cWhat = com.sun.star.sdb.application.DatabaseObject.FORM
oModel = oEv.Source.getModel()
sName = oModel.Tag
oView = oModel.Parent.Parent.Parent.Parent.getCurrentController()
oView.loadComponent(cWhat, sName, FALSE)
End Sub 

And fill the paramter in the "Additional Information" tag. in the
control/function panel of the button.

Hope that this is working fine, but still the parameters, which identifies
the next data sentence in the next from are missing. 

How do I pass on datas from one form to the next form?

Greetings
Jens




Drew Jensen wrote:
> 
> Alex Thurgood wrote:
>> Hi all,
>>
>> The funny thing about this is that this functionality used to work in
>> StarOffice 5.1. I used to have a form, which was obviously a StarOffice
>> Writer document at the time, with four buttons on it. Each one was
>> configured to open another form (i.e. another document), and as I recall
>> (because I don't still have those documents around), the button could be
>> linked to a file URL which would then automatically load the other form.
>> I could also put a nice little picture as the background to the button.
>>
>> My guess is that this functionality went away when Sun got rid of the
>> StarDesktop environment...but I could be wrong ;-)
>>
>>   
> Hi Alex,
> 
> Actually the functionality didn't change at all - that is kind of the 
> problem.
> Add a button to a document and you can still open another document or a 
> web page.
> This works if the button happens to be on a form embedded in an ODB file 
> just as well as if it where on a stand alone Writer file. The only thing 
> you CAN NOT do is open a form, or report embedded in an ODB file, not 
> even the same one with the form containing the button. (or a query def, 
> or a dataview)
> 
> So it's not that any functionality was lost when the suite went from 1.x 
> to 2.0 it was that no functionality to support the new Base module was 
> added.
> 
> Drew
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Question-for-help-to-create-specs-to-enhance-Push-Button-to-open-Form-or-Report-tp23923027p24454688.html
Sent from the openoffice - dba users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to