Issue 21580 - cannot execute simple basic script via initiate event on button
Summary: cannot execute simple basic script via initiate event on button
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: scripting (show other issues)
Version: current
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: joerg.skottke
QA Contact: issues@framework
URL:
Keywords:
: 21601 (view as issue list)
Depends on:
Blocks:
 
Reported: 2003-10-22 18:42 UTC by robert.kinsella
Modified: 2004-06-16 09:18 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description robert.kinsella 2003-10-22 18:43:00 UTC
StarOffice 8695 on mercury (suse linux)

Create a simple basic macro e.g. macro1, to execute e.g. msgbox "test"
Open a text document, from the main toolbar select form functions.
Add a push button to the document, on the button select controls and assign the
macro1 macro to Events, when initiating.
Close the button properties dialog and switch the design mode off.
Select the button
BUG - the script does not execute...

trace message:-
Trace Message: Script URI is
vnd.sun.star.script://Standard.Module1.Macro1?language=Basic&location=application
Trace Message: chunk is language=Basic, len is 61
Trace Message: Language name is Basic
Trace Message: ProviderCache::getProvider(),
drafts.com.sun.star.script.framework.provider.ScriptProviderForBasic not in
cache, try to create.
Trace Message: ProviderCache::createProvider()
Trace Message: CallXScript, got Script, about to invoke
Trace Message: CallXScript, number of params is: 1
Trace Message: < MasterScriptProvider dtor called >

Trace Message: ProviderCache::ProviderCache() - dtor
Trace Message: < ScriptingContext dtor called >

Trace Message: CallXScript: exception iae
Trace Message: leaving CallXScript
Trace Message: leaving FmXUndoEnvironment::firing_Impl
Comment 1 noel.power 2003-10-24 10:29:23 UTC
Assing to TBE, need to make basic provider more tolerant regarding
processing of parameters
Comment 2 thomas.benisch 2003-10-24 11:32:27 UTC
*** Issue 21601 has been marked as a duplicate of this issue. ***
Comment 3 thomas.benisch 2003-10-24 11:44:42 UTC
.
Comment 4 thomas.benisch 2003-10-24 11:46:07 UTC
set target to OOo 2.0
Comment 5 thomas.benisch 2003-10-28 13:50:49 UTC
TBE: fixed in CWS scriptingf1
Comment 6 noel.power 2003-11-10 17:42:16 UTC
Assign to Joerg for testing.
Comment 7 joerg.skottke 2003-11-13 10:31:48 UTC
the script executes now.

fixed
Comment 8 joerg.skottke 2003-11-13 10:32:05 UTC
verified
Comment 9 joerg.skottke 2004-06-16 09:18:48 UTC
closed, verified on src680m42-4 linux