Pushbutton Problem in web dynpro

hi there,
i have a sap standard web dynpro. in the portal i have the UI elements tree to personalize the dynpro.
there is a part where i have 2 push-buttons:
Pushbutton 1
Pushbotton 2
by default Pushbutton 1 is activated. Now i want to hide Pushbutton 1 for the user. So far so good, i can do it in the UI elements tree and change it.
The Pushbutton 1 now is hidden. BUT: i want to have Pushbutton 2 activated automaticly. Now the pusbutton is not 'ON'.
how can i achive this with the UI elements tree control in Portal. I am NOT a JAVA-developer, i have no idea about web dynpro, i am coming from abap side. so i DON'T want to modify the web dynpro.....i need a way to do it with the personalization function in portal.
reg, Martin

Hi,
I assume that your requirement is to show one button at a time button1 or button2.
create 2 context attribute of type Visibility under uielementdefinition.
bind one of the context to button1's visibility property and the other to the button2's visibility property.
Now, in your code as per your condition, you can set the visibility as
wdContext.currentContextElement().set<visible1>(WDVisibility.VISIBLE);//To Show
wdContext.currentContextElement().set<visible1>(WDVisibility.NONE);//To Hide
Regards,
Murtuza

Similar Messages

  • IAspectRow problem in Web Dynpro DC on DTR

    Hi All,
    I created a Web Dynpro DC project on our DTR and added the required 'Used DCs' to it, and added the required library references. If I try to add and bind a context model element, however, my project won't build. It gives the following error:
    file comsaptccolclientgenericapiIAspectRow.class not found
    In the tasks view it provides these errors:
    The project was not built since its classpath is incomplete. Cannot find the class file for java.lang.Object. Fix the classpath then try rebuilding this project.
    This compilation unit indirectly references the missing type java.lang.Object (typically some required class file is referencing a type outside the classpath)
    I've tried modifying the used DCs and repairing the project class path, but nothing seems to work. Once while adding the library references, NWDS asked me whether I wanted to apply the changes after clicking on 'Ok', something which I have been unable to reproduce. Could this be the problem?
    All help will be appreciated,
    JP

    You have two problem here.
    FIrst one is because of "IAspectRow" missing in jars you have in your dc dependency.
    Second one you mentioned about class for java.langObject not found: Is definetly because of jre missing from your class path.
    Go to project properties. Add the library "JRE System library" to your project class. This will solve your second problem.
    I am not sure about first one.
    Regards,
    Ashwani Kr Sharma

  • Deploying problem of web dynpro java application

    Hi,
    I have a web dynpro java application with no problem about deploying.
    I copied this application with another name.
    I tryed new application to deploy but sdm aborted with error.
    Error
    19.Tem.2011 10:22:25 /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] ERROR:
    [001]Deployment aborted
    Settings
    SDM host : vserver0202
    SDM port : 52018
    URL to deploy : file:/C:/Users/CEMIL~1.BOZ/AppData/Local/Temp/temp27456HF_PERS_RAPOR_BUTCE.ear
    Result
    => deployment aborted : file:/C:/Users/CEMIL~1.BOZ/AppData/Local/Temp/temp27456HF_PERS_RAPOR_BUTCE.ear
    Aborted: development component 'HF_PERS_RAPOR_BUTCE'/'local'/'LOKAL'/'0.2011.07.19.10.22.15'/'0':
    Caught exception during application deployment from SAP J2EE Engine's deploy service:
    java.rmi.RemoteException: Cannot deploy application local/HF_PERS_RAPOR_BUTCE.. Reason: Clusterwide exception: Failed to deploy application local/HF_PERS_RAPOR_BUTCE. Check causing exception for details (trace file). Hint: Are all referenced components deployed and available on the engine?; nested exception is:      com.sap.engine.services.deploy.container.DeploymentException: Clusterwide exception: Failed to deploy application local/HF_PERS_RAPOR_BUTCE. Check causing exception for details (trace file). Hint: Are all referenced components deployed and available on the engine?
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    Deployment exception : The deployment of at least one item aborted

    Hi,
    Since the exception says "Are all referenced components deployed and available on the engine?"
    Check wether any DC is used as a used DC in the webdynpro component which you are deploying.
    If any used DC is available try to deploy that DC in the server and then deploy ur webdynpro application.
    If all reference DC's are avialable in server, still if you get this error try to rename the component and reload+rebuild the project and deploy it.
    Hope this helps you...
    Regards,
    Saleem Mohammad.

  • Value hep problem in web dynpro application

    Hi All,
    I have a requirement where I need to add a field for alternate payee to the web dynpro application and the field name is BSEG-EMPFB. I have written the following code to get the values of it based on the vendor number:
    SELECT SINGLE * FROM  lfb1 INTO f4lfb1_z
                      WHERE lifnr = lv_lifnr
                      AND   bukrs = '001'."bseg-bukrs'.
      CALL FUNCTION 'FI_VENDOR_ALTERN_PAYERS_READ'
        EXPORTING
          i_lifnr            = lv_lifnr
          i_filkd            = filkd
          i_bukrs            = '001'
          i_lfb1_head_office = f4lfb1_z
        TABLES
          t_zemtab           = t_zemtab.
      LOOP AT t_zemtab INTO w_zemtab.
        ls_value_set-text = w_zemtab-empfb.
        ls_value_set-value = w_zemtab-empfb.
    append ls_value_set to lt_value_set.
    DATA lo_nd_alt_payee_info TYPE REF TO if_wd_context_node_info.
    DATA lo_nd_alt_payee TYPE REF TO if_wd_context_node.
    lo_nd_alt_payee = wd_context->get_child_node( name = wd_this->wdctx_alt_payee ).
    lo_nd_alt_payee_info = lo_nd_alt_payee->get_node_info( ).
             lo_nd_alt_payee_info->set_attribute_value_set(
                name =  `ALTERNATE_PAYEE`
                value_set = lt_value_set )
    Now the problem is user wants the details of the alternate payee as F4 help and when I debugged the standard FV60 functionality this how the F4 help is being build therE:
    REFRESH fldtab.
      CLEAR fldtab.
      fldtab-tabname    = 'IZEMTAB'.
      fldtab-fieldname  = 'EMPFB'.
      fldtab-selectflag = 'X'.
      APPEND fldtab.
      CLEAR fldtab.
      fldtab-tabname    = 'IZEMTAB'.
      fldtab-fieldname  = 'NAME1'.
      APPEND fldtab.
      CLEAR fldtab.
      fldtab-tabname    = 'IZEMTAB'.
      fldtab-fieldname  = 'ORT01'.
      APPEND fldtab.
      CLEAR fldtab.
      fldtab-tabname    = 'IZEMTAB'.
      fldtab-fieldname  = 'STRAS'.
      APPEND fldtab.
    *------- Fill Values for Function Module Call --------------------------
      REFRESH valtab.
      LOOP AT zemtab.
        valtab-feld = zemtab-empfb.
        APPEND valtab.
        valtab-feld = zemtab-name1.
        APPEND valtab.
        valtab-feld = zemtab-ort01.
        APPEND valtab.
        IF zemtab-stras NE space.
          valtab-feld = zemtab-stras.
        ELSEIF zemtab-pfach NE space.
          CONCATENATE 'Postfach:'(019) zemtab-pfach INTO valtab-feld.
        ELSE.
          valtab-feld = space.
        ENDIF.
        APPEND valtab.
      ENDLOOP.
    *------- F4 Dialog -----------------------------------------------------
      CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE'
        EXPORTING
          display      = space
          fieldname    = 'EMPFB'
          tabname      = 'INVFO'
        IMPORTING
          select_value = empfb
        TABLES
          fields       = fldtab
          valuetab     = valtab.
      IF NOT empfb IS INITIAL.
        invfo-empfb = empfb.
      ENDIF.
    can you please tell me how can I accomdate this in the web dynpro application?
    Thnaks,
    Edited by: rajatg on Jul 13, 2011 6:41 PM
    Edited by: rajatg on Jul 13, 2011 6:42 PM

    Hi Raja,
    Search help is availble at dictinary level you get F4 help automatically.
    Otherwise create OVS help for alternate payee. use WDR_OVS.
    check this..
    http://wiki.sdn.sap.com/wiki/display/WDABAP/InputhelpofObjectValueSelectioninWDABAP
    /people/shruti.rathour/blog/2008/05/05/ovs-help-in-web-dynpro-abap
    Cheers,
    Kris.

  • Problem in web dynpro ABAP program

    There are 2 input fields on first view carrid, connid and one "GO" Button
    1) "FLIGHTINFO" is the node under context of first view
    2) " FLIGHTTAB "  is a node under context of component controller having cardinality " 0..n " ,Dictionary structure "SFLIGHT" (i have selected only these many attributes " carrid, connid, fldate, planetype, seatsmax and seatsocc " )
    3) I have created  Method "FLIGHTTAB_FILL" in component controller to fill context node FLIGHTTAB
    Insert the source code for doing the following:
    -     Navigate to context node FLIGHTINFO
    -     Get element at lead selection for context node FLIGHTINFO
    -     Get CARRID and CONNID 
    -     Fill an internal table with all datasets from database table SFLIGHT, who meet the constraints for CARRID and CONNID.
    -     Navigate to context node FLIGHTTAB
    -     Bind the internal table(having all standard fields of sflight ) to the context node FLIGHTTAB ( having those 6 attributs).
    4) On action GO ->Implement the invocation of Method " FLIGHTTAB_FILL".
    5) I have mapped node FLIGHTTAB to context of OUTPUTVIEW.  Display table on view OUTPUT_VIEW (for this i hav used code wizard).
    Problem: after entering values of connid & carrid I m getting proper entries in internal table. but output view is not at all trigger (although i have created plugs). Is it necessary that while binding internal table with context node FLIGHTTAB  should have same no of fields (i.e. in this case 6 )?
    I am a fresher, My concept of bindings and cardinality are not so clear so can anybody help me out? 
    Thanx in advance for replying.

    Hi johnright ,
        No i dont think it is necessary that while binding internal table with context node should have same no of fields as the internal table . You might get some improper values in the corresponding fiels but it will not lead to any error.
      In your OUTPUTVIEW once you created the table UI element in layout and you bind it to FLIGHTTAB node you dont have to use any code wizard method to display the values. If the node contains values it will display automatically. (in your case you are filling it in step #).
    Check :-
    1. In your On action GO after filling the table you are firing the out bound plug :-
        WD_THIS->FIRE_INITIAL_OUT_PLG(
    2.All outbound plug and inbound plug are link properly and every thing is ACTIVATED.
    If still unable to find the error try to debug method wise and find where the error occurs and reply to us.
    Binding:-
    In web dynpro ABAP you will not able to get any value of any variable outside of any method. Here we use context node which is referrence that we create reference to any particular structure we required. Now to hold the values you need to bind
    the values of your internal table to the context node.
    If the node is in view then its values are visible to all the local method of the view.
    If the node is in component controller then  the you bind a value to the node from one view and you can get it in another view.
    Remember binding and mapping are not same.
    Mapping is done between node like inthe second scenario i have explained you need to create a node in view controller and then you need to map it to the corresponding view of component controller to send values across view.
    cardinality:-
    Each node contains data fields that represent one of the following:
        An individual instance of an object type
        A table of instances.
    This property of a node is known as its cardinality of table of instances.
    If you need table instance :- 0..n or 1...n
       In case of 1...n one default value is created. generally we use this as mainly we need to work with table.
    In case you need a individual instance of a object or like you want value like a structure only :-  0...1 or 1....1.
    Thanks & Regards,
    Monishankar C

  • Problem in Web dynpro Java appl deployment

    Hi Experts,
    We are in the live environment and after successful QA testing, all the applications were deployed through SDM. In SDM log everything shows as deployed successfully.
    For one where in the web dynpro screen shows exception message as:
    failed to create or init instance of model <modelname> in scope application_scope with instanceId null.
    All MSS and HR users are getting affected.
    EP7.0SP11 and ECC6.0
    Thanks,
    Sonali.

    If you are sure that QA testing was correct and the application was working fine.. I would say in Prod env after deployment please restart /bounce the Java Server.. this will fix the problem
    Also One thing I can think of is FPM configuration in Portal(PCD) .. make sure your config in Prod is same as QA . It could be the roadmap or the perspectives are different
    Edited by: Saurabh on Apr 4, 2009 8:31 PM

  • Problem following Web Dynpro tutorial in NetWeaver CE 7.1

    Hi all,
    I have followed a training at the SAP Training Centre in Belgium, and back from this training I installed the NetWeaver CE 7.1 on my computer.
    I have followed the "Developing your first Web Dynpro application" tutorial step-by-step, I have compiled it and deployed it on the server, but I'm having trouble when trying to run this "Welcome" project: I get an error:
    500   Internal Server Error
    SAP NetWeaver Application Server/Java AS
    Failed to process request. Please contact your system administrator.
    Error Summary
    While processing the current request, an exception occured which could not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
    Root Cause
    The initial exception that caused the request to fail, was:
       java.lang.UnsupportedClassVersionError: Bad version number in .class file
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:654)
        at com.sap.engine.boot.loader.ResourceMultiParentClassLoader.loadClassLocal(ResourceMultiParentClassLoader.java:198)
        at com.sap.engine.boot.loader.MultiParentClassLoader.findClassInLoaderGraph(MultiParentClassLoader.java:306)
        at com.sap.engine.boot.loader.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:256)
        ... 60 more
    See full exception chain for details.
    Any idea of what causes this problem?
    Thanks in advance!

    I have found the problem: the server only supports JDK 5 and I was compiling with JDK 6. I have changed the compiler version and now it works fine!

  • Sequencing Problem in Web Dynpro ABAP

    Hi Web Dynpro (ABAP) Guru's,
    Can anyone tell me how to read a parameter from the WDA url in my view? The situation is like this: My WDA is being rendered in the Portal EP 6.0 as an iView. When my WDA is called the portal also appends in the URL the plant number. I want to grab that plant number and use it in my view to show some default data.
    As per other weblogs/forum posts I defined a parameter "PLANT_NO" in the "Default" startup plug of my Main window. I'm using the Get_Data method to read this parameter in the plug. I'm able to read the URL parameter here and so far it is good. Read below for the problem..
    If I understand the order of operations correctly, doesn't the views get created, then the default plug code is run, then the views are placed on the window and then shown to the user. Since my views are created before my default plug is run I DO NOT get the URL parameter value in the WDDOINIT of my view. When I debug the application, the WDDOINIT of the embedded view gets called before the Default startup plug. Am I missing something here?
    If someone can tell how to read the URL parameter in the WDDOINIT (instead of Default Startup) of the view I could default in the data I want to display. OR any other suggestions to get past this problem would be appreciated.
    Does this make any sense and does anybody have an idea of where I could find some info about how to do this?
    Thanks much for your help. Points will be awarded.

    Thanks Klaus for the response.
    I don't want to read the parameter from the default plug, but need to access the URL parameter and display default data in my view. Let me explain the scenario:
    My Web dynpro application is called from the Portal. The Plant number is passed in the URL as:
    http://...../sap/bc/../../<Web Dynpro Application name>?PLANT_NO=0012
    I want to show Material Stock values in the view for Plant "0012". To access this value I've defined a parameter with same name (PLANT_NO) in the default startup plug of my main window. I get access to the URL parameter through this plug parameter.
    I have only ONE view embedded in this window where the Stock values are selected from table MARD for the specified plant. I want to get the plant value from URL in my WDDOINIT method to make this selection from database. I'm then binding the results to the view table UI element. My problem is that the URL parameter is read in the Default plug, but the data selection and view binding happens before in the WDDOINIT method where I don't know the plant.
    Again, I don't want to read the plug parameter, but I want to get the URL parameter (PLANT_NO) and then render the view based on the data selected for this parameter. Please let me know how this can be achieved by reading the URL parameter in WDDOINIT method (Constructor) so that it can be used subsequently in the application.
    Thanks for your help and looking for a resolution.....

  • PDF form problem in web dynpro

    Hello Everybody,
    I have some problem with PDF form in web dynpro application.
    I have used T layout view set. On top view i put one image. On left view i have tree element. On right side i have all other elements.
    Right side, different views are displayed depending upon the option chosen from tree. But, when I opened view containing Adobe form and then try to choose any other options, Internet browser gives system error and browser closed.
    What should be the reason behind this?
    Regards,
    Bhavik

    Hi Markus,
    What should be the version of ACF.
    I have installed ACF SP11.
    My WAS server is SP12.
    Acrobat reader version is 7.0.5.
    But if i change Acrobat reader version to 6.0.3 then it works. But i want version 7.0.5 for date popup.
    Regards,
    Bhavik

  • Problem with Web Dynpro Theme in 2004s ABAP Sneak Preview

    Hi !
    Working on the Web Dynpro for ABAP 2004s Sneak Preview
    I encountered a problem in applying a web Dynpro theme
    via the URL-parameter sap-cssurl.
    I tried the following URL:
    http://hostname:8000/sap/bc/webdynpro/sap/webdynproapp?sap-cssurl=http://hostname:8000/sap/public/bc/ur/nw5/themes/sap_hcb
    But it didn't work ?!
    Could anybody tell me what went wrong ?
    Thanks in advance,
    Frank

    Hi Frank,
    Try this
    1. Set all dynpro's to run with portal theme whether you run them inside/outside portal.
    For this, run visual administrator -> server -> configuration adapter -> (change mode) -> webdynpro -> sap.com -> tcwddispwda -> Propertysheet.default
    set the parameter sap.theme.default to your portal theme path: we've theme CustomerTheme (portal is nw04sr1 sp14) and theme url is as follow:
    /irj/portalapps/com.sap.portaldesign.urdesigndata/themes/portal/CustomerTheme
    2. call individual application with parameter to use portal theme as follow:
    http://<portal hostname with domain>:<port>/webdynpro/dispatcher/local/WD_Project/Applname?sap-cssurl=http://<portal hostname with domain>:<port>/irj/portalapps/com.sap.portal.design.urdesigndata/themes/portal/CompanyTheme
    Hope it helps...
    Lokesh

  • Graphics rendering problem in web dynpro

    Hi all,
    I have a problem using BusinessGraphics in my web dynpro application. I got the "Graphics Rendering Problem". Reading some foruns, Ive read in some thread that I have to have 5 files under my igs/conf folder of SAP installation, but I have only 2 (gwfchart.tpl and xmlchart.tpl).
    One proposed solution is to apply one patch to my igs server.
    My question is....
    - How do I dowload the patches ? From where ? I couldnt find a download link.
    Thanks in advance,

    Hi,
    the corresponding note for the IgsUrl paramter mentioned by Rich is <a href="http://service.sap.com/sap/support/notes/704604">704604</a>.
    I think you should check this first before you upgrade your IGS installation. Note <a href="http://service.sap.com/sap/support/notes/931900">931900</a> shows you how to find out the IGS patchlevel. Then you see if your IGS is running (correct) and maybe an upgrade is needed also.
    Regards
    Matthias

  • Interactive problem in Web Dynpro for Java and Flex

    Hi, all:
         Now I'm can use the FlashIsland to embed a flash developed by flex builder 3 in a Web Dynpro View, I have made the data transfer between Web Dynpro View and the flash, also have I got  events of the flash in Web Dynpro View. But now the problem is that in the flex flash, how can I get the actions such as button action from the Web Dynpro View?
         Is there anybody that has the experience to deal with such a problem ? Can you give me some help ?
         Thank you all !

    Hi
    Are you sure it asked for JDK 1.9
    Please let me know from where you downloaded JDK 1.9
    Regards
    Nikhil

  • Problems with Web Dynpro Tutorial "Creating an Email Client Using ..."

    Hello,
    I have a problem with the Web Dynpro Tutorial Number 6 ("Creating an Email Client using Web Dynpro and Web Services"):
    On page 20 of the PDF description of the Tutorial, Step 6 reads:
    "In the view layout, select the UI element EmailFormGroup and then choose the entry Apply Template in the context menu"
    Yet the context menu of the UI element EmailFormGroup does not show an entry "Apply Template".
    Do you have any hints?
    Kind regards,
    Franz-Josef Krämer

    Hello,
    the solution was: it should have said "in the outline view" and not "in the view layout".
    In the outline view, the context menu included "Apply Template".
    So no further responses are necessary.
    Kind regards,
    Franz-Josef Krämer

  • Problems in WEB Dynpro The Table doesnt update

    Hi everyone, I did an WEB Dynpro Project and I created a table, and I wanna to fill that table  in the event doinit but it didnt update
    this is my code into a Controller methond
    public void llenaTabla( )
    IPublicVisualizarContrato.IProductDataElement prd = null;
        for(int i=0;i<5;i++)
          prd = wdContext.nodeProductData().createProductDataElement();
          prd.setProveedor("Provedor_"+i);
          prd.setAbasto("Abasto_"+i);
          prd.setAnual("Anual_"+i);
          prd.setConsigna("Consig_"+i);
          prd.setDistribucion("Dist_"+i);
          prd.setTemporada("Temp_"+i);
          prd.setPostVenta("PostV_"+i);
          prd.setNoVendible("NV"+i);
           wdContext.nodeProductData().addElement(prd);
    And I called this method in Another view in methos doinit()
    public void wdDoInit()
        //@@begin wdDoInit()
         wdThis.wdGetVisualizarContratoController().llenaTabla();
         //wdThis.wdFirePlugOutput();
        //@@end
    after deploying the table is empty
    Someone Could you tell what is the problem, thank you very much

    Hi Nitesh
    Thak you for your help, I solved that detail, but I have a problem some colums of the table are linktoaction, my question is how can I pass a value to the action whe the user click on this image , thank you very much
    Atte Israel

  • Date format problem in web dynpro java

    Currently, the date format that gets displayed in our webdynpro java application is MMDDYYYY...i am assuming this is because the web dynpro application has language resource set to en_US as its Current locale in the web dynpro deployed content section.  Howver i want it to display as DDMMYYYY. I have changed the default properties in visual admin for web dynpro from en to en_GB however this has no impact what so ever as the current locale is always set to en_US even after the change so am wondering this property is hidden some where else.  Now the web dynpro i am talking about is a adobe portal application. Could you give me any pointers as to where else i can look for or how i can change the current locale properly ??
    Regards
    Kal

    The date format in the Web Dynpro Java Application depends upon locale. At runtime WDJ will do the following process to get the current locale for the date format to be determined.
    1. First the WDJ Application will check for the locale set for the user in UME.
    2. If there is no default locale in UME, then the it will check for the locale in the in the browser which in most cases by default is en-us.
    3. If not, then it will check for the sap.systemLocale in the Propertysheet default of Visual Admin
    4. If there no locale specified in Visual Admin, itu2019s taken from the WAS JVM
    Please check the below SAP Note
    http://help.sap.com/saphelp_nw04/helpdata/en/a0/58db515b95b64181ef0552dc1f5c50/frameset.htm
    Regards,
    Chandran S

Maybe you are looking for