Process Mapping Logo

Process Mapping - Forums

Sharing 19 years of knowledge and experience

 
Metastorm BPM forums
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
erschiavo

Senior Member
Registered:
Posts: 55
Reply with quote  #1 
I'm not sure if this has been documented anywhere yet, but I've been having problems with client-side scripting. First off, I tried putting my "OnLoad" function call in the client extensions box of my form and it of course didn't work. Designer instructed me to put the code in the "On Form Load" property. So I clicked the icon next to "On Form Load" and got a scripting window (I think?). The problem is, when you write your OnLoad function here, it doesn't show up anywhere else in the solution for you to edit. I wrote my code in here, saved the solution and closed the window. When I went back to the form, I clicked in the "On Form Load" box, but the only option is to remove the script. What happens if I made a mistake and want to edit my code? I can't find anywhere to open up the code that I just wrote to make changes. Has anyone else experienced this and does anyone have a solution?

As a side note... the only place that you could run a client-side script in previous versions was in the "Client Extensions" dialog, no? Well if you can't call client functions from that dialog in v9 and instead have to use the properties for "On Form Load", "On Form Submission", etc... then what is the point of writing client-side scripts using "Client Script" option in v9? I have client-side scripts from procedures I wrote in previous versions that I want to run on form load in v9. How do I do this? Somebody please tell me I'm missing something.

0
Nappy

Avatar / Picture

Guru
Registered:
Posts: 1,087
Reply with quote  #2 
If you click the red thingy icon you get access to the script to change it

But have not seen scripting documentation so no idea what's posible

__________________
Post an example, and we will have a much better idea what the problem is. In about 90% of posts, the problem is one of communication. Examples bridge that gap.

PS that's for V6/7 for V9 the problem is V9 at the moment ;)
0
Jerome

Avatar / Picture

Guru
Registered:
Posts: 5,507
Reply with quote  #3 
There should now be two icons. Depending on the theme chosen, they may look like buttons.

When there is no script, there is a 'create' icon. When there is a script, there is an 'edit' and 'delete' icon side-by-side.

__________________
Post an example, and we will have a much better idea what the problem is. In about 90% of posts, the problem is one of communication. Examples bridge that gap.
0
erschiavo

Senior Member
Registered:
Posts: 55
Reply with quote  #4 
Ok here is what I see...

I go to my form and and click the little icon to create my OnLoad event. I see this in the form properties:


After I'm finished writing my script, I save it and close the window and I see this in the form properties:


When I click the 'X', it asks me if I want to remove the script. Are those two icons supposed to be in the form properties box?

Attached Images
png client_script_issue1.png (12.15 KB, 250 views)
png client_script_issue2.png (11.87 KB, 243 views)

0
rvignerot

Member
Registered:
Posts: 23
Reply with quote  #5 

Unlike Version 7 where you had to put in an XML snippet in the Client Extensions property to call a function, the new Designer allows you to write code directly within the event (i.e. On Form Load).  When you click on the button a scripting window is shown that is inside the function block.  From here you can directly write you JScript or VBScript or you can call a function contained within another standalone client-side script.

0
erschiavo

Senior Member
Registered:
Posts: 55
Reply with quote  #6 
Thanks for the responses guys, but I'm not sure that I'm getting my issue across properly.

@rvignerot
I did click the icon and the script window popped up. I typed up my JScript, saved, and closed the window. When I go back to my form properties and look at the "On form load" property, all I see is an 'X' that prompts me to remove what I just entered. I want to know how I can open that code that I just entered to make changes without removing it entirely and recreating it. Does that make sense?

(The screenshots above show what I'm talking about.)
0
Jerome

Avatar / Picture

Guru
Registered:
Posts: 5,507
Reply with quote  #7 
Looks like you have the properties box too narrow. If I add a script both buttons show. If I make the box too narrow only the delete icon shows. Attached:

1 Before
2. After
3. narrow prop box

Attached Images
png 01.PNG (16.14 KB, 97 views)
png 02.PNG (16.68 KB, 92 views)
png 03.PNG (13.66 KB, 92 views)


__________________
Post an example, and we will have a much better idea what the problem is. In about 90% of posts, the problem is one of communication. Examples bridge that gap.

0
erschiavo

Senior Member
Registered:
Posts: 55
Reply with quote  #8 
Wow, I feel like an idiot. When I expand the properties box I can see both icons. Although in my defense, I do believe that I was using the default size. Regardless, thanks Jerome. You can retire this one to the "non-faults" forum.
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:


Create your own forum with Website Toolbox!