Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Possibility for user to edit a special Application-Script

3 views
Skip to first unread message

Peter

unread,
Nov 1, 2009, 10:17:26 AM11/1/09
to
Hello,

I want the user of our application give the possibility to adapt a
special user function.

The user function could be:
Name: UserFunction1
Parameter1 : Integer
Parameter2 : Integer
ReturnValue: Integer

And the user should be able, i.e. to ADD, or to MULTIPLY these values,
just as he wants.

So there must be the possibility, to visualize the script, to change the
script and to compile the script.
Infomaker can not be used, because it must be very simple, without any
knowledge of PB or Infomaker.


Can anyone give me an idea how to realize this or has anyone solved this
problem already?

Thanks
Peter

Arthur Hefti

unread,
Nov 1, 2009, 10:53:19 AM11/1/09
to
Peter

to compile a script you must have ORCA which can't be distributed due
to license restrictions. I suggest that you make use of a computed
field in the datawindow and use two columns for the input parameters.
You can provide an easy interface for the user to add the formula and
save the formula e.g. to the database. Whenever you need the formula
you can apply it to the computed field through modify. Do an insertrow,
set the values and get the result be getitem (of course you can go
without a computed field and just do Describe( "Evaluate('',1)")

Arthur

Peter

unread,
Nov 4, 2009, 3:52:32 PM11/4/09
to
Thanks for your hint.
But I want generate a longer Calculation with several rows of
calculation and I would like to use the script language of powerbuilder,
because it is very nice to use embedded SQL also.

Kind regards
Peter


Arthur Hefti schrieb:

Roland Smith [TeamSybase]

unread,
Nov 4, 2009, 10:49:31 PM11/4/09
to
ORCA can be used to import code into a .pbl and compile it to a .pbd but it
would require the PowerBuilder IDE to be installed on the users computer.
That would require them to purchase a license for PB.

"Peter" <no_...@web.de> wrote in message news:4af1e990@forums-1-dub...

0 new messages