cancel
Showing results for 
Search instead for 
Did you mean: 

Refreshing Screen

Former Member
0 Kudos

Hi All,

Can anyone suggest me how to refresh a view ? I didn't use any Supply Function. I also used the Lifetime,when visible in the properties Tab of a View.

Points Assured.

Regards,

Padmam.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Under the save button code write node invalidate code.

Regards,

Muneesh Gitta.

Edited by: Muneesh Gitta on Apr 8, 2008 9:45 AM

former_member189058
Active Contributor
0 Kudos

Hello Padmam,

If by refreshing the screen you mean that the data visible on the screen UI elements should be initialized, eg. If your screen has an Inputfield and you enter some value in it, On click of "Refresh" button, you want to clear that value. In this case, it is simple. You only need to INVALIDATE the context node that is bound to the UI Element.

Considering the example that I have given, your view context, sa, has a node VDATA with an attribute TEXT that is bound to the input field UI element. Your view layout will also have a button and you will define some action on that button. In the event handler for the action sinply call the INVALIDATE method of the IF_WD_CONTEXT_NODE using VDATA instance.

Regards,

Reema.

former_member515618
Active Participant
0 Kudos

Hi Padmam,

Could you be a bit more specific about the requirement. When you say refresh the screen, do you expect the data to automatically change/updated/refreshed on the view with out any manual intervension.

Regards,

Sravan Varagani.

Former Member
0 Kudos

hi sravan and reema,

thanks for ur reply.

i am using a tree in my view( recursive ),

i am just adding a element in the tree if i am saving it, should be automatically updated in the tree on saving,

now wat is happening for me is if i am saving it i just showing a message in the next view and if i am returning back to the tree view it gets refreshed,

but my requirement is to update in the tree without moving it to the next view.

invalidate is also not working.

Regards,

Padmam.

former_member515618
Active Participant
0 Kudos

Hi Padmam,

If iam not wrong this is what i understand. Whey you add a new element and save, it goes to the next view and when you come back the tree is getting refreshed. but your requirement is to refresh the tree with out going to the next view. Please correct me if iam wrong.

When you are adding a new element, are you binding the updated table to the tree context node. if yes, the data must get refreshed automatically.

When you save the record, are you firing any plugs to the next view?

Regards,

Sravan

Former Member
0 Kudos

hi sravan,

wat u told is correct.

but i dont want to fire any outbound plugs,

the problem is for adding the nodes in the tree i had written the codings in the wddoinit method so this method is invoked for the first time only,

its not getting invoked when i am saving,

i also set the lifetime as visble in the property tab in the view.

tats y if i am moving to the next view and returning back this method is invoked

so can u guide me to update the tree without moving to the next view.

Regards,

Padmam.

former_member515618
Active Participant
0 Kudos

Hi Padman,

How about creating a seperate method for building tree, in the view and call it both in WDDOINIT and also when user saves the record.

This way you can avoid going out and comming back to the view.

Regards,

Sravan Varagani

0 Kudos

hi sravan,

ya i tried that to , even if i use invalidate( ) method, the node once again creating all the data's repeatedly

is there any method to clear the values in the tree?

Regards,

Ganesh

Former Member
0 Kudos

Hi Friends,

I have a Service PO say "1111111111" .......

But i can have any number of sub items say "4" in the item level (in services tab) .................

As far i know ...

EKPO --> I get the PO items ...

ESLL --> all the service details ...

I ve got the PACKNO field.... but my problem is ...

say in EKPO the Packno = 2888

in ESLH i have a packo = 2888

My Problem is ....

In ESLL --> if i put Packno = 2888, iam getting some data ..... in that there is a field called SUBPACKNO and this is storing a number 2889 ....

Only when i give SUBPACKNO 2889 again in Packno of table ESLL iam getting the total sub items of that services.

So how could i get that ....

But my problem is, the GRN is done for any on of the sub item of that service, and all are open, suppose the end user clicks on one sub item and he deletes that record, so at that time i need to check wheather that record is done for GRN or not, if GRN is not done then i can delete that record.

But my problem is how do i know the end user on which record he clicks. my func conslt suggested me this badi ME_PROCESS_PO_CUST. but in this badi i am not getting the exactly the end user clicked record.

So please help. its an urgent issue.

how to work on it.

Thanks in advance,

Regards.

Naveen.

Former Member
0 Kudos

Hi,

Pls Post your Thread as Seperate one.. If u post ur thread as Reply then u may not get the Exact Solution for ur Problem.

Regards,

Padmam.