cancel
Showing results for 
Search instead for 
Did you mean: 

application parameters not passed when WD Java application refereshes

Former Member
0 Kudos

Hi

I have used the following code for auto referehs in WD java application.

>under init method of view controller...

wdContext.currentContextElement().setRefreshSec(PARAMETER);

Now what i observe is when application is refereshed, it doesn't detect the application parameters passed at iview level.

Do you guys have something to suggest here?

regards

Pranav

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Pranav,

Can you please elaborate .

I still dont see how your code helps in refreshing the application

Regards,

Himanshu

Former Member
0 Kudos

HI

I'm really sorry. My observation was wrong. This code doesn't help refereshing the wd java application, it is just a context field bound to TimedTrigger element. On action handler of TimedTrigger action, init() of view controller was being called, which was bydefault reading Application parameter and hence the application was failing because there is no parameter passed when init is called from TimedTrigger action handler.

Now i have changed the action handler logic and application is working fine......

Thank u guys...

regards

Pranav Goswami

Former Member
0 Kudos

Hi Pranav,

How does the above code help you refresh the application? And if the application is refreshed like from browser or something, the instance of the component is destroyed and is re-initialized. So, the context values are lost.

Can you please elaborate the problem?

Regards,

Tushar Sinha