View Elements in Method Before Action

Hi all,
because of a generic validation rule I need to know in Method BeforeAction of a webdynpro view, which elements of a context node are bound to the view.
As an example:
The view has two data container (nodes) - these two nodes should be checked against each other (e.g. a global data and specific data referring the global ones).
On the current view, only specifc data is displayed. So if the validation fails for global data the error message should be suppressed or changed in text.
Therefore I try to get a list of elements on the current view or something similar.
I tried to do something with the view controller but no success. As well with proxy casting, but there the methods are protected.
I know it might be a quite strange demand, but it would be nice, if you can help me with some hints.
Best regards,
Timo

I found a way - without context programming - to validate if a field is active on view.

Similar Messages

  • Web Dynpro Enhancement : Rename text of the View Elements

    Hello All,
    I want to enhance standard web Dynpro component. I need to rename text of some of view element.Ex.- label. I searched on SDN but I can able to find only following two things.
    1. We can able to remove the view element in enhancement implementation.
    2. We can add Post/Pre methods to the view methods.
    But I am not able to find the "How to rename the text of the view element?"
    Ex.: I have one label. Text for that label before enchantment is 'ABC' . when enhancement implementation is active, it should be 'PQR'.
    Any pointers?
    Thanks in Advance,
    Prashant Jagdale

    If you just need to rename the text of labels then you don't need the enhancement framework for that.  Using either adminstrative personalization or component configuration you can override the SAP delivered label text with your own without changing the underlying Web Dynpro component.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/b170d256293c5ce10000000a421937/frameset.htm

  • Calling a method before entering a page

    Hi,
    What is the best way for calling a method before entering a page in ADF, when this page is the fist page that user in enter into it in Application, I mean there is not any other page before this page ( in this case I am able to call that method in task flow with method call).
    Also, I want this method calls only one time....
    Thanks.
    Edited by: Amir Khanof on Jun 29, 2010 5:19 AM

    Hi,
    one option would be to add a method for the afterPhase property of the f:view component on a JSPX page and listen for the after restore phase. Then check if the request (you get this from the FacesContext) is a GET request, which indicates that the page was requested from the browser and not in the process of navigating in the application. If the conditions are true, access the method and execute it
    Frank

  • How to find out which context attributes are mapped to view elements

    Hi All,
    We have a custom WD application ( on ECC 6.0 - SAP Basis 70 ) where we have a context node whose 70 attributes are displayed over 2 seperate views.
    When a user enters the view,  we want to inform him which data was changed. 
    I have written a general method which takes the context node, grabs its attributes and compares values ... messages are generated via the message manager and context element/attributes are linked so that the input elements become red.
    Everything works fine but the only problem is that I do not know which attributes are visible on which view so the user is getting the changes of view 2 on view 1 and vice versa ( if the context is only mapped on 1 view then there is no issue ofcourse ).
    The call is currenlty executed at the views inbound plug ... I also checked the view methods themselves like modify view but nothing seems to lead me to a potential solution ...
    I have looked through almost all API classes available but I cannot find any way to obtain information about the linking of view elements with context elements/attributes during runtime ... And I don't want to 'hardcode' a list of context attributes per view ....
    Has anyone done something similar ?
    Thanks,
    Steven

    Hi All,
    We have a custom WD application ( on ECC 6.0 - SAP Basis 70 ) where we have a context node whose 70 attributes are displayed over 2 seperate views.
    When a user enters the view,  we want to inform him which data was changed. 
    I have written a general method which takes the context node, grabs its attributes and compares values ... messages are generated via the message manager and context element/attributes are linked so that the input elements become red.
    Everything works fine but the only problem is that I do not know which attributes are visible on which view so the user is getting the changes of view 2 on view 1 and vice versa ( if the context is only mapped on 1 view then there is no issue ofcourse ).
    The call is currenlty executed at the views inbound plug ... I also checked the view methods themselves like modify view but nothing seems to lead me to a potential solution ...
    I have looked through almost all API classes available but I cannot find any way to obtain information about the linking of view elements with context elements/attributes during runtime ... And I don't want to 'hardcode' a list of context attributes per view ....
    Has anyone done something similar ?
    Thanks,
    Steven

  • Decision step with method before workitem execution

    I have a decision step, which uses method before workitem execute uses BO Bus2094 - 'Display' method.
    When an agent receives a workitem, try to execute the workitem 'Getting an information message 'Error when starting submethod'.
    When i see the information of the error -
    "At least one submethod could not be processed.
    See the technical Workflow log to determine the error cause."
    When i check technical log of workitem, 2 steps are in error mode.
    1.  Dialog work item executed - Error when starting submethod
    2. EXECUTE_METHODS  - System error in asynchronous method start
    This is happening in Quality system, not in DEV system.
    Any inputs to resolve this.

    Hi,
    @Sivagami: I wonder, how a container element e.g. BUS2094 that was passed to a copy of the DECISION task is automatically executed just before the decision dialog? Good stuff, if it works like this, I'll try this at a later time.
    @Indira: Depending on the Release and such things I have expirienced several smaller bugs regarding the decision steps, especially when extending the data flow (from/to workitem), using the in-place-decision Workitem exit. So maybe you're already doing everything right, but just the inbox doesn't works as designed.
    To work around this problem, you could enter the object methods as a secondary method, which then will display the Sales document in a separate window,
    or you follow the proposal of Sivagami. If the Sales document doesn't seem to appear, you could enforce the display, by globally substitute the business object DECISION to one of your own, re-define the object's method Process that read the business object fromt the work item container and executes it's display method, which is basically the same result you'd like to have.
    Best wishes,
       Florin

  • How to call AMImpl method before loading the page(task_flow_config.xml)

    Hi experts,
    I have requirement like,
    I need to call AmImpl method, before rendering the page.(I heard like we can do it in task_flow_config.xml by using method_Invoke operation,But I am not sure about How it is going to work, also i need to know the implementation part,,,help pls )
    (I need to do in Task_Flow.)
    Inside that method I have some logic, where I will setting the BindVariable of my one ViewObject and I need to run the ViewOblect,So that DataShuold be available while page loading.
    I have some different logic after that,,,,
    can anyone suggest me for this??
    thanks
    Santosh

    thanks to Timo n TK,
    I have use case like,
    In the search page I have 2 LOV dropdowns say LOV1 and LOV2. Both list of values are created based on the independent View Objects based on the Query.
    LOV2 VO query is having the Bind Variable, for that Bind variable will be getting the value from the one of the AM method based on the user logged in.
    Also I need to display LOV2 dropdown in the page when user selects LOV1 as a 'SCM', for others it should be in hidden state.
    As per requirement I have to display LOV2 only for LOV1 value as 'SCM'. So I dont want to use valueChangeListner() for this.
    Instead I want populate LOV2 value before page rendering(because in that time i will be having all the parameter to populate ) by executing LOV2 VO Query.
    Once in search page user selects LOV1 as 'SCM', I should display 'LOV2' values in the dropdown.
    If i execute LOV2 VO in the AMImpl method say A() before page rendering ,then if user select LOV1 as 'SCM', will same data available in the dropdown (LOV2 dropdown is based on the LOV2VO)??
    Can u pls suggest me how can i render ,LOV2 when LOV1 as 'SCM' by using 'rendered' property without having valueChangeListner??
    pls suggest me the right approach as per my use case..
    waiting for reply,,
    Thanks
    Santosh

  • How can i access two view in a method

    hi i have a situation where i have to access two view in one method how can i do that am in jdeveloper 11.1.2.1.0
    Edited by: Tshifhiwa on 2012/07/03 4:33 PM

    Hi ,
    ViewObject svo = this.findViewObject("AGR1");
                        ViewObject svo1 = this.findViewObject("AFUN");
                        svo.executeQuery();
                        svo1.executeQuery();
                        Row row = svo.first();
                        Row row1= svo1.first();This is correct .But can you let us know where you are getting java null pointer exception.Moreover again can you check the VO name which you are looking here is available in AM or not.and also check the AM object as well .It should not be null
    Thanks
    Prateek

  • Can we call a method before and after Export operations in ADF 11g

    Hi,
    My problem is I have to execute a method before and after the export operation.Is this posible in ADF 11g
    Regards,
    Felix

    Hi,
    in response to a similatr post of yours, I replied
    1. Drop af:exportCollectionActionListener on a command button
    2. set the command button to display = false
    3. In your Java code, call
    ActionEvent ae = new ActionEvent(button);
    ae.queue();
    Everything you put before
    ActionEvent ae = new ActionEvent(button);
    ae.queue();
    will fires as a pre-trigger, everything after as a post trigger
    Frank

  • New "Photos" is a piece of JUNK!  How do I get my image numbers to display as imported like they used to? Can no longer make Events or view old events as before either.

    How do I get my image numbers to display as imported like they used to? Can no longer make Events or view old events as before either.
    If this is replacing Aperture and previous iPhoto it is USELESS...WAY fewer options for editing available. New "Photos" is a piece of JUNK!

    Hi.
    I have just migrated my library from Aperture to photos. All seems to have gone smoothly, except for one thing. All of my photos are 'untitled', whereas in both Aperture, and previously iPhoto, the filename was used for the title. If I hit CMD+I and get info, the title is still there as the filename, as I use the filename for all titles.
    Is there a way to batch copy all filenames as photo titles, this was done automatically in Aperture and iPhoto, as when photos were imported the filename was used automatically.
    Any help appreciated.
    Thanks.

  • Role-Based CLI Views with AAA method

    Hi,
    I'm configuring Role-Based CLI Views on a router for limiting access to users.
    My criteria:
    - There should be a local user account on the router that has the view 'service' attached to it
    - If the router is online and can reach the radius server, people in the correct group are assigned the view 'service'
    My configuration:
    aaa new-model
    enable secret 1234
    username service view service secret 1234
    aaa group server radius my_radius
    server-private 10.1.1.1 auth-port 1645 acct-port 1646 timeout 3 retransmit 2 key 0 1234
    server-private 10.1.1.2 auth-port 1645 acct-port 1646 timeout 2 retransmit 1 key 0 1234
    aaa authorization console
    aaa authentication login mgmt group my_radius local
    aaa authorization exec mgmt group my_radius local
    line con 0
    authorization exec mgmt
    logging synchronous
    login authentication mgmt
    line vty 0 4
    authorization exec mgmt
    logging synchronous
    login authentication mgmt
    transport input ssh
    The ERROR
    Now I want to go configure the cli view 'service'...
    # enable view
    Password: 1234
    *Jun  1 08:00:02.991: AAA/AUTHEN/VIEW (0000000D): Pick method list 'mgmt'
    *Jun  1 08:00:02.991: RADIUS/ENCODE(0000000D): ask "Password: "
    *Jun  1 08:00:02.991: RADIUS/ENCODE(0000000D): send packet; GET_PASSWORD
    *Jun  1 08:00:21.011: RADIUS: Received from id 1645/13 10.1.1.1:1645, Access-Reject, len 20
    The Questions
    Why does the 'enable view' try to pick a method list when you have to supply the enable secret to access the root view?
    Can you change this behaviour to always use the enable secret?
    The TEMP Solution
    If you're logged on to the router via telnet or SSH, the solution or workaround to this issue is:
    aaa authentication login VIEW_CONFG local
    line vty 0 4
    login authentication VIEW_CONFG
    Do your configuration of the view and re-configure the line to use the correct (wanted) method of authentication.
    Thanks so much for the suggestions
    /JZN

    hi,
    You have the following configured:
    aaa  authentication login mgmt group my_radius local
    aaa authorization  exec mgmt group my_radius local
    line  con 0
    authorization exec mgmt
    logging synchronous
    login  authentication mgmt
    line vty 0 4
    authorization exec mgmt
    logging synchronous
    login authentication mgmt
    transport  input ssh
    Hence every time you try to login to the console or try the ssh the authentication will head to the radius server because of the following command "login  authentication mgmt".
    You cannot make it locally. Whatever defined on the method list mgmt first will be taking the precedence.
    enable seceret will be locally defined. but you have the following configured:
    aaa  authorization  exec mgmt group my_radius local
    line  con 0
    authorization exec mgmt
    line  vty 0 4
    authorization exec mgmt
    Hence exec mode will also be done via radius server.
    when you configure:
    aaa  authentication login VIEW_CONFG local
    line vty 0 4
    login  authentication VIEW_CONFG
    You are making the authentication local, hence it is working the way you want.
    In short, whatever authentication is defined 1st on the method list will take precendence. the fallback will be checked only if the 1st aaa server is not reachable.
    Hope this helps.
    Regards,
    Anisha
    P.S.: please mark this thread as answered if you feel your query is resolved. Do rate helpful posts.

  • Call sap transaction in view element

    Hi together,
    I'm a WD beginner.
    So I want to know how can I start/show a sap Transaction in a UIElment. I don't want to start an external window.
    I searched a Long time here in SCN. Some guys said it is not possible  ?!?!?!
    Thanks a lot
    Wolfgang
    PS: I want to create a tabstrip element. In one Tabstrib I want put a view element in it. In this element I want to Show a Special SAP Standard Transaction to Show data. The Transactions runs if I create a new window. BUt we think it's not user friendly to create a new view.

    Hi Steffen,
    You can achieve your requirement as below
    Create an ui element  "IFRAME" inside the tab and bind the source to a context attribute URL
    Generate the URL for your t-code and set the value to context attribute URL
    You can refer my answer in the below link
    ITS server in ABAP Webdynpro
    Hope this helps you.
    Regards,
    Rama

  • View Element with ID _CFG_GROUP_36_CAPTION in View V_PREVIEW Already Exists

    Dear All,
    In EHP5 'Personal profile' Service, I was trying to modify the detailed screen of Address Information for Great Britain through FPM configurator. On the default detailed screen for this country, there was one group called 'Communication' . I wanted to hide that group. I thought I can achieve this by modifying attribute of this group. There were two attributes 'sequence Index' and 'Column' which decides position of specific group on detailed screen. I made value against these attributes as 0. But after doing these changes I am not able to see the preview of this detailed screen. It is throwing following runtime error:
    View Element with ID CFGGROUP_36_CAPTION in View V_PREVIEW Already Exists.
    How to revert the changes made in the attribute of this group.
    Regards,
    Swapnali

    check these steps
    1. Customizing the Fields in Overview Screens
    http://help.sap.com/erp2005_ehp_05/helpdata/en/77/804c18e1844944b7f8baf5
    3159be78/content.htm
    2. Configuration of Personal Profile Services
    http://help.sap.com/erp2005_ehp_05/helpdata/en/3a/fe6eac579d4a9ead651d77
    9a2dbd23/content.htm
    3. Personal Profile application Documentation
    http://help.sap.com/erp2005_ehp_05/helpdata/en/14/60cd56b1514ae5aa811d2a
    a4a59de3/content.htm
    In EhP5 ESS Personal Profile application, in order to change the
    Address overview page fields, you need to adapt the Address component
    configuration HRESS_CC_PER_OVR_ADDRESS_XX.
    Note: In EhP5, ESS screens are based on Floor Plan Manager for
    WebDynpro ABAP Generic UI Building Block concept. To configure
    overview page fields we no longer use 'Determine Fields for Business
    Card on Area Page' View instead of that we adapt the FPM configurations.
    In the standard delivery in the Overview Page, always international
    Address is displayed and in the edit screen based on the country
    selection (Foreign Address scenario), corresponding country screens
    are displayed.
    Note: We always show international address screen in overview page in
    order to support Foreign Address scenario.
    If you want to chanage the fields in the Address overview page fields
    then adapt the Address component configuration

  • Is is possible to call a function or method before JVM exits ??

    Hi All,
    Is is possible to call a function or method before JVM exits where System.exit() is used.
    I am calling a program where System.exit is used. i need to call a function before the JVM exits.
    Please help me.
    Thanks,
    J.Kathir

    How to call the method ? Did i have to call the shudown hooks method in my main class ?
    Is it possible to have in subclass?
    is the below code is correct ? i am calling a class before System.exit is called....
    java.lang.Runtime.getRuntime().addShutdownHook(...My Own Class()....)

  • How to Refresh System Form on Before Action using DI

    Dear All,
    Please give me idea for Refresh System Document in Run Time on Before Action using DI,basically I am using  system columns for update for some scenarios.
    So please give solution that how should refresh system form.
    Thanks a lot.
    Ashish Singh.

    Hi,
    See i already descrived you my case what i am exactly doing.
    Now,
    Document Name -Purchase Order
    All The item is non excisable and i want to put value in Assable Column for calculation Tax but when i non excisable then you can not put value in Assable column.so when user will add purchase order then i updating Excisable columns with value of 'Y' for Assable value.now this case is running correctly.
    But if any change will come of particular purchase order then user need to put value in any field and now i am supposing change field is remarks.
    And Then user click on update filed button then system giving error that "there is excisable item with non-excisable tax code" and after this not allow to update.but i wrote code in item press before action for update excisable filed with value of 'N' for time being. but the case is sap not refresh doc when i changed any any value ,
    so main concern is i want to reflect value with front end immediate.
    Thanks
    Ashish

  • Reading URL parameter & displaying into view element

    Dear All,
    I have designed a ABAP webdynpro application.
    With one parameter in application so that I can pass data to webdynpro to views elements.
    Can any one help how to pass data from URL additional parameters to Views context elements?
    For Example:
    WebDynpro Application URL: http://XXXX.com:YYYY/sap/bc/webdynpro/sap/zumruf4?zdata=909090
    So Can I display parameter zdata '909090' to main view?
    Thanks

    ..

Maybe you are looking for

  • FCP 6.0.1 hangs...

    After I capture for my HDV device (Sony), FCP gives the spinning wheel of death and I'm Forced quit on FCP. FCP seems to be very fragile when it comes to capturing video/audio -- still. So for the heck of it I open iMovie HD and it recognizes my camc

  • Import PO - Error

    Dear All, I prepared a Import Po with Currency USD & Saved the PO.After getting the bill of entry i gone to me22n and changed the currency to Inr then i am getting this error(I want to input the Custom duties , Agency Charges, Insurance etc in INR) E

  • Data base books

    ineed books for java special for java odbc and control databases from java and sql statements how we can writ them please!

  • Bank Gurantee and Corporate Gurantee

    Dear Experts, We have issued Bank Gurantee to our Vendors and also issued Corporate Gurantee to other few vendors.Now when i try to record this by posting by F-57 I can select only vendor account and cannot maintain Bank Name. Also in case of a corpo

  • Unable to open editor in Elements 12

    Yesterday I purchased Elements 12, Library is fine but I am trying to access the editor. It asks me to connect to the internet but will not let me.  I donèt want to connect to the internet when I am editing my photos, I am not interested in the Cloud