Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Anonymous_User Absent Member.
Absent Member.
236 views

Providing Direct Access to a Form (Not gettinng)


Our requirement is to accessing the PRDS directly by providing their
URL. While using “Providing Direct Access to a Form” (dgpro topic
5.9),IDM 4.0.2.

We are facing below issues:

1.After submitting the form, it lands to the pages which has two button
“Back to Make a Process Request” and “Close”. Here close button doesn’t
work.
2. Is there any way by which we can remove “Back to Make a Process
Request” button ? and After clicking on close, that form should close.

Any suggestion or help will be appreciated.

Thanks


--
zeeshan_cts
------------------------------------------------------------------------
zeeshan_cts's Profile: https://forums.netiq.com/member.php?userid=5574
View this thread: https://forums.netiq.com/showthread.php?t=49402

Labels (1)
0 Likes
7 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Providing Direct Access to a Form (Not gettinng)

On 12/08/2013 12:24 AM, zeeshan cts wrote:
>
> Our requirement is to accessing the PRDS directly by providing their
> URL. While using �Providing Direct Access to a Form� (dgpro topic
> 5.9),IDM 4.0.2.
>
> We are facing below issues:
>
> 1.After submitting the form, it lands to the pages which has two button
> �Back to Make a Process Request� and �Close�. Here close button doesn�t
> work.
> 2. Is there any way by which we can remove �Back to Make a Process
> Request� button ? and After clicking on close, that form should close.
>
> Any suggestion or help will be appreciated.
>
> Thanks
>
>

Greetings,

1) Correct, the close button does not work and is expected

2) You can not change the page

--

Sincerely,
Steven Williams
Lead Software Engineer
NetIQ
0 Likes
Knowledge Partner
Knowledge Partner

Re: Providing Direct Access to a Form (Not gettinng)

On 12/8/2013 6:25 AM, Steven Williams wrote:
> On 12/08/2013 12:24 AM, zeeshan cts wrote:
>>
>> Our requirement is to accessing the PRDS directly by providing their
>> URL. While using �Providing Direct Access to a Form� (dgpro topic
>> 5.9),IDM 4.0.2.
>>
>> We are facing below issues:
>>
>> 1.After submitting the form, it lands to the pages which has two button
>> �Back to Make a Process Request� and �Close�. Here close button doesn�t
>> work.
>> 2. Is there any way by which we can remove �Back to Make a Process
>> Request� button ? and After clicking on close, that form should close.
>>
>> Any suggestion or help will be appreciated.
>>
>> Thanks
>>
>>

> Greetings,
>
> 1) Correct, the close button does not work and is expected
>
> 2) You can not change the page


Can you use the interceptAction() function, with an after modifier, to
redirect to some other page, so they do not see that page?


0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Providing Direct Access to a Form (Not gettinng)


Hi Geoffc,

Thanks for your reply,
I can use the interceptAction() function on button submit and button
cancel. When I will click on Submit button, I can close that window by
window.close(). But will it process the request also ? I mean to say ,
Will it be a chance that after clicking on submit, my window close, but
actual process of making a request will not start ?? What do yo think ?


--
zeeshan_cts
------------------------------------------------------------------------
zeeshan_cts's Profile: https://forums.netiq.com/member.php?userid=5574
View this thread: https://forums.netiq.com/showthread.php?t=49402

0 Likes
Knowledge Partner
Knowledge Partner

Re: Providing Direct Access to a Form (Not gettinng)

On 12/9/2013 1:27 PM, zeeshan cts wrote:
>
> Hi Geoffc,
>
> Thanks for your reply,
> I can use the interceptAction() function on button submit and button
> cancel. When I will click on Submit button, I can close that window by
> window.close(). But will it process the request also ? I mean to say ,
> Will it be a chance that after clicking on submit, my window close, but
> actual process of making a request will not start ?? What do yo think ?


I thought the exact same thing.

Thus there are modifiers to it. In fact you can use both. So I used an
interceptAction(around) case so that when you clicked Submit we
validated some data and either let you submit or not.

Then I used interceptAction(after) for when you submit, get past the
validation, to then redirect away from the ugly finish page.


0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Providing Direct Access to a Form (Not gettinng)


geoffc;237818 Wrote:
> On 12/9/2013 1:27 PM, zeeshan cts wrote:
> >
> > Hi Geoffc,
> >
> > Thanks for your reply,
> > I can use the interceptAction() function on button submit and button
> > cancel. When I will click on Submit button, I can close that window

> by
> > window.close(). But will it process the request also ? I mean to say

> ,
> > Will it be a chance that after clicking on submit, my window close,

> but
> > actual process of making a request will not start ?? What do yo think

> ?
>
> I thought the exact same thing.
>
> Thus there are modifiers to it. In fact you can use both. So I used
> an
> interceptAction(around) case so that when you clicked Submit we
> validated some data and either let you submit or not.
>
> Then I used interceptAction(after) for when you submit, get past the
> validation, to then redirect away from the ugly finish page.



Hi Geoffc,

if we call both invocation.proceed() and window.close() functions in
submit action, some time it doesn't process the request form data (if
there are lots of fields in the form). We have used setTimeout(
"window.close()",3000) to delay the close action but it's only
workaround. please suggest, if there is any other way to achieve this.

Regards,
yogesh


--
YogCTS
------------------------------------------------------------------------
YogCTS's Profile: https://forums.netiq.com/member.php?userid=6267
View this thread: https://forums.netiq.com/showthread.php?t=49402

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Providing Direct Access to a Form (Not gettinng)


Hi Geoffc,

Can you please elaborate more on your suggestion ? I am not getting
that.

Are you talking about using interceptAction() method two times for a
single event ? (On button click). Can you give me a brief detail, how to
achieve that ?


--
zeeshan_cts
------------------------------------------------------------------------
zeeshan_cts's Profile: https://forums.netiq.com/member.php?userid=5574
View this thread: https://forums.netiq.com/showthread.php?t=49402

0 Likes
Knowledge Partner
Knowledge Partner

Re: Providing Direct Access to a Form (Not gettinng)

On 12/10/2013 12:54 PM, zeeshan cts wrote:
>
> Hi Geoffc,
>
> Can you please elaborate more on your suggestion ? I am not getting
> that.
>
> Are you talking about using interceptAction() method two times for a
> single event ? (On button click). Can you give me a brief detail, how to
> achieve that ?


Yes, use it twice.

Form, Title field, Properties side tab, Events, Onload, I have:

form.interceptAction("SubmitAction", "around",
function (invocation)
{
var lockout = new Number;
lockout = parseInt(form.getValue("placeholder"));


if (isNaN(lockout))
{
lockout=0;
}

if (lockout > 2)
{
var temp = IDVault.globalList(null, "error-url").toString();
var errUrl = temp.split(',')[0];
window.location.replace(errUrl);
}

var Q = someTestGoesHere;
if (Q[0].length == 0)
{
form.alert("Invalid Credentails on Submit, please try again");
lockout = lockout + 1;
form.setValues("placeholder", lockout.toString());
}
else
{
var result = invocation.proceed();
return result;
}
}
);


Bah, I do not have the package that includes the use of it twice... I
will have to keep looking for it...

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.