cancel
Showing results for 
Search instead for 
Did you mean: 

RFC - needed refresh???

Former Member
0 Kudos

Hi,

I have 2 i views:

in 1 i create an employee, using rcf A.

in 2 i dispaly the emloyee details using rfc B.

Immediatlly After creating an employee, i would like to see his details but

sometimes only after re-entering the portal the details are shown,

is any refresh needed???????

Thanks,

Ronit

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

hi , as i think the problem is in ur detail search view. and u can define a refresh handler in compcontroler, which will be implemented in your detail viewer, which is do the same thing like u in search view( mainly for showing datas)

then u can pub this handler with a public method in ur compcontroler in order to be called by the view1(edit),

then, after u insert or update a people, the edit button will call the public method to refresh the data in view2.

hope this is for ur 'needed refresh'

Former Member
0 Kudos

Hi,

I have invalidate in both RFC's.

The RFC's do what they should do in the backend.

The problem is that after using first view and creating the employee in r/3,

when i move to the second view to display the employee details,

i get nothing, BUT if i re-entered the portal and try to display the employee - i get all details.

Ronit

Former Member
0 Kudos

Hi ,

Think its because of execution time in updating the database.

Ur trying to retriew data before it is updated in the data base.

so include this line in

Thread.currentThread().sleep(long milliseconds_to_sleep);

in onPlugFrom<view1> method.

milliseconds_to_sleep waits those milli seconds and execution continues.

Thanks,

Sunitha Hari

Former Member
0 Kudos

Hi

You don't have to worry about refresh; Don't forget to put the .invalidate() method in Button press event, where both RFCs gets executed. This will get the output that you want.

Regards

-Vinod.

*

Former Member
0 Kudos

HI,

No refresh is required for displaying the data.

Only thing is to execute the model by using exexute().

Regards,

lavanya.G

former_member751941
Active Contributor
0 Kudos

Hi Ronit,

After creation invalidate the value node that is bound to your view.

wdContext.node<Put the node name>().invalidate();Then to display the employee details. Execute the rfc2 and copy the output node details of rfc2 in your value node that is bound to the view.

Check this thread.

Regards,

Mithu