cancel
Showing results for 
Search instead for 
Did you mean: 

Broken Script - Going Mental - Please Help!!

Former Member
0 Kudos

I've attached two screen shots that I hope explain the problem fully but if unsure please ask for a further clarification if you think you can help.

In short I had a script that was doing some basic personas validation (is this field empty for instance) which worked fine.

I then realised that I had to cater for some standard on-screen SAP validation as well.

The SAP validation didn't kick until I 'entered' the field that I wanted to validate.

If the user didn't enter but instead just keyed info in and then [pressed the script button the SAP validation was getting missed until later in the process (too late).

So I split the script up: SAP validation, Personas Validation & and then Main Script (to do the work) - it was already split into two anyway but now it's three.

I cannot get my personas validation script to work in this context - If I use it directly it's fine but not when it's called from a parent script ... see screen shots for more details and the scripts in context.

Any insights much appreciated. I'm probably doing something stupid but I've been at this for hours and I've turned it around every way i can think of.

Regards.

Patrick.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

I have simplified the script and added another screen shot to illustrate the issue .... might be worth another look if you think you can help...

Former Member
0 Kudos

What's happening is the contents of textboxes are getting picked up by the script BUT the contents Textbox: WebGUI appear to be invisible to the script!!

Does this ring any bells with anyone?

Regards.

Patrick

0 Kudos

hi Patrick,


in your screenshot 2, at which step are you populating the control id mentioned in step 11?

/personas/....eea21?

Sushant

Former Member
0 Kudos

Ahhhh ... Sushant .. are you telling me something?

I have not previously saved this screen field.

I am assuming that script two, called from screen 1, will have access to the same on-screen data.

I'm not switching flavours or t-codes ... everything is happening on the same screen... are you saying that a secondary script (even when referring to the same on-screen data) must be informed directly what that information (field content) is?

Regards.

Patrick

nmkarthikeya
Active Participant
0 Kudos

Hi Patrick,

Have you cached the tabs?

If you have used tab caching you might have to switch the tab before trying to access this field.

Regards,

Karthikeya

Former Member
0 Kudos

Hi Karthikeya - tabs - no caching.

P.