WD Exercise : Validating and Non-Validating Actions

Hi Experts!
  I am doing the validating and non-validating exercise based on the SDN document<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/wd%20java/wd%20tutorials/web%20dynpro%20sample%20applications%20and%20tutorials.htm#6">here</a>.
When I download the already done application, it works quite well. However, when I try to make it on my own, I encountered following problems:
1. I could not write labels as [married since] on the radio button.
2. I could not do the data mapping from the view controller to the component controller.
As a result I have not been able to deploy the application.
The <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/wd%20java/wd%20tutorials/using%20validating%20and%20non-validating%20actions.pdf">document</a> I am refering to, has a explanation of the application contents.
But does anybody know if there is a manual for creating this application?
Many thanks
Regards,
Sudeep

Hi
For your problem
1.I could not write labels as [married since] on the radio button
  Use the <b>text</b> property to assign labels to radio button
Check the sample whether its using radiobutton group?
2.I could not do the data mapping from the view controller to the component controller
You can only map from component controller to view controller.
Regards
  Ayyapparaj

Similar Messages

  • WebDynpro Action Types : Validating vs Non Validating Action Types

    Hi
    Can someone tell me the difference between Validating and Non Validating Action Types in webdynpro. I read it through, but its not very clear.
    regards
    Saurabh

    HI Maksim,
    Thanx it helped !!
    I need some more help. I have a PAR file which displays an employees CV in an IView. I want to print only the content in the iView (i.e the CV) not the complete page with Roles and worksets, is there some code that can do this.
    I need to place a button on the CV (in the iView) and on the click of the button the CV (iView) gets printed.
    A workaround for this is that I open the CV (from the iView Personalization ) in a new window and then from the File menu of the new window fire the Print option. But I dont want to do it this way.
    I want to Print the CV from the parent window only.
    Plz suggest !!
    Regards
    Saurabh

  • Validity and non-validity material

    hi frnds
    what is validity material and non-validity material ?
    regards

    Hi Santosh,
    Please go through this SAP help it may not give you Exact answer for your quiery but you can get some idea on Material validity.
    http://help.sap.com/saphelp_47x200/helpdata/en/f3/7c8fe6a39411d19daf0000e8323350/frameset.htm
    I hope it will help you,
    Regards,
    Murali.

  • Validation for Unique Name and Non-AlphaNumeric Characters

    Hi All,
    How to do Unique name and Non-Alpha Numeric Characters Validation?
    Name should be unique and only allow alphanumeric characters.
    Where all validations must be done? In EOImpl or any other file?
    Plz help
    Thanks,
    Sk

    SK
    Here are the steps you need to perform to check duplicate Employee Names need not entered by user.
    First create a VVO in your schema.server package(that of EO) with the following query.Generate both VVOImpl and VVORowImpl file.
    select full_name
    from fwk_tbx_employees
    where full_name =:1Now add this VVO to your VAM means give instance to it.
    Now open the VVOImpl and write below code to execute query based on new name entered by user
        public void initQuery(String name)
          setWhereClauseParams(null); // Always reset
          setWhereClauseParam(0, name);
          executeQuery();
        }Now open Your Entity Expert class and add below method in it
       public boolean isEmployeeNameExists(String name)
         boolean isExists = false;
               // Note that we want to use a cached, declaratively defined VO instead of creating
               // one from a SQL statement which is far less performant.
         EmployeeNameVVOImpl employeeNameVVO =
           (EmployeeNameVVOImpl)findValidationViewObject("EmployeeNameVVO1");
         employeeNameVVO.initQuery(name);
         // We're just doing a simple existance check.  If we don't find a match, return false.
         if (employeeNameVVO.hasNext())
           isExists = true;
         return isExists;
       }Now you need to call this expert class method from setter method of EOImpl for name.so Open your EOImpl file and go to setter method of name
          if ((value != null) || (!("".equals(value.trim()))))
            EmployeeEntityExpert expert = getEmployeeEntityExpert(getOADBTransaction());
            if (!(expert.isEmployeeNameExists(value)))
                throw new OAException("Duplicate Employee Name", OAException.ERROR);
          }Remember to write code above setAttributeInternal.
    Hope it helps!!!!
    Let me know if you have queries in it.
    Thanks
    AJ

  • "There is no valid action to be performed" error message when using free-form approvals

    Hi all,
    I'm using free-form approval template with no owners and reviewers assigned, just security filters are applied on Entity dim.
    I have started all entityes and they are in "First Pass" stauts. And now I'm not able to change status on a planning unit and I'm getting following error message:
    There is no valid action that can be performed on the selected Planning Unit.
    Why I'm not able to change status? Could anyone help me out of this?
    BR
    Vlado

    when the user id created in solman was P0041, and hence the BP was created assigned to this ID.
    at some stage of time, a request came to change delete P0041 and recreate as ALMA41 to maintain the standards.
    but it was missed to change the P0041 in the BP to reflect ALMA41.
    Daher Abdeen.

  • Static and non-static variables and methods

    Hi all,
    There's an excellent thread that outlines very clearly the differences between static and non-static:
    http://forum.java.sun.com/thread.jsp?forum=54&thread=374018
    But I have to admit, that it still hasn't helped me solve my problem. There's obviously something I haven't yet grasped and if anyone could make it clear to me I would be most grateful.
    Bascially, I've got a servlet that instatiates a message system (ie starts it running), or, according to the action passed to it from the form, stops the message system, queries its status (ie finds out if its actually running or not) and, from time to time, writes the message system's progress to the browser.
    My skeleton code then looks like this:
    public class IMS extends HttpServlet
        public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
            doPost(request, response);
       public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
          //get the various parameters...
             if (user.equalsIgnoreCase(username) && pass.equalsIgnoreCase(password))
                if(action.equalsIgnoreCase("start"))
                    try
                        IMSRequest imsRequest = new IMSRequest();
                        imsRequest.startIMS(response);
                    catch(IOException ex)
                    catch(ClassNotFoundException ex)
                else if(action.equalsIgnoreCase("stop"))
                    try
                        StopIMS stopIMS = new StopIMS();
                        stopIMS.stop(response);
                    catch(IOException ex)
                 else if(action.equalsIgnoreCase("status"))
                    try
                        ViewStatus status = new ViewStatus();
                        status.view(response);
                    catch(IOException ex)
             else
                response.sendRedirect ("/IMS/wrongPassword.html");
    public class IMSRequest
    //a whole load of other variables   
      public  PrintWriter    out;
        public  int                 messageNumber;
        public  int                 n;
        public  boolean         status = false;  //surely this is a static variable?
        public  String            messageData = ""; // and perhaps this too?
        public IMSRequest()
        public void startIMS(HttpServletResponse response) throws IOException, ClassNotFoundException
            try
                response.setContentType("text/html");
                out = response.getWriter();
                for(n = 1 ; ; n++ )
                    getMessageInstance();
                    File file = new File("/Users/damian/Desktop/Test/stop_IMS");
                    if (n == 1 && file.exists())
                        file.delete();
                    else if (file.exists())
                        throw new ServletException();
                    try
                        databaseConnect();
                   catch (ClassNotFoundException e)
    //here I start to get compile problems, saying I can't access non-static methods from inside a static method               
                   out.println(FrontPage.displayHeader()); 
                    out.println("</BODY>\n</HTML>");
                    out.close();
                    Thread.sleep(1000);
            catch (Exception e)
        }OK, so, specifially, my problem is this:
    Do I assume that when I instantiate the object imsRequest thus;
    IMSRequest imsRequest = new IMSRequest();
    imsRequest.startIMS(response); I am no longer in a static method? That's what I thought. But the problem is that, in the class, IMSRequest I start to get compile problems saying that I can't access non-static variables from a static method, and so on and so on.
    I know I can cheat by changing these to static variables, but there are some specific variables that just shouldn't be static. It seems that something has escaped me. Can anyone point out what it is?
    Many thanks for your time and I will gladly post more code/explain my problem in more detail, if it helps you to explain it to me.
    Damian

    Can I just ask you one more question though?Okay, but I warn you: it's 1:00 a.m., I've been doing almost nothing but Java for about 18 hours, and I don't do servlets, so don't take any of this as gospel.
    If, however, from another class (FrontPage for
    example), I call ((new.IMSRequest().writeHTML) or
    something like that, then I'm creating a new instance
    of IMSRequest (right?)That's what new does, yes.
    and therefore I am never going
    to see the information I need from my original
    IMSRequest instance. Am I right on this?I don't know. That's up to you. What do you do with the existing IMS request when you create the new FrontPage? Is there another reference to it somewhere? I don't know enough about your design or the goal of your software to really answer.
    On the other hand, IMSRequest is designed to run
    continuously (prehaps for hours), so I don't really
    want to just print out a continuous stream of stuff to
    the browser. How can I though, every so often, call
    the status of this instance of this servlet?One possibility is to pass the existing IMSRequest to the FrontPage and have it use that one, rather than creating its own. Or is that not what you're asking? Again, I don't have enough details (or maybe just not enough functioning brain cells) to see how it all fits together.
    One thing that puzzles me here: It seems to me that FP uses IMSReq, but IMSReq also uses FP. Is that the case? Those two way dependencies can make things ugly in a hurry, and are often a sign of bad design. It may be perfectly valid for what you're doing, but you may want to look at it closely and see if there's a better way.

  • Inserting strings of printable and non printable characters

    I would very much appreciate some help with the following
    To handle an interface with a legacy system I need to create strings containing both printable and non-printabel ascii characters. And with non printable characters I mean in particular those in the range of ASCII 128 to 159.
    It seems it is not possible to insert a string containting both printable and not printable characters from the afore mentioned range into a VARCHAR2 table column as the following demonstrates:
    insert into test values(chr(156)); -- this inserts the 'œ' symbol.
    SQL> select test, ascii(test), length(test), substr(test,1,1), ascii(substr(test,1,1))from test;
    TEST       ASCII(TEST) LENGTH(TEST) SUBSTR(TEST,1,1) ASCII(SUBSTR(TEST,1,1))
    ┐                  156            1That the the character mapped is shown as '┐' and not 'œ' is not really issue for my application, what is important is that the ASCII value is shown as 156, which is the ASCII code of the character I inserted.
    What is however strange (actually probably not strange but has to do with the lack of understanding of the issue at hand) is that substr returns an empty string...
    Now I try to insert a concatenated string, first the "non printable" character then a printable character
    insert into test values(chr(156)||chr(65));
    SQL> select test, ascii(test), length(test), substr(test,1,1), ascii(substr(test,1,1))from test;
    TEST       ASCII(TEST) LENGTH(TEST) SUBSTR(TEST,1,1) ASCII(SUBSTR(TEST,1,1))
    A                   65            1 A                                     65For some reason the not printable character (chr(156)) is now not inserted or at least does not appear when I selected the data from the table, this effect seems to apply to all characters in the range of ASCII 128 to 159 (tried some but not all) However for instance CHR(13) can be inserted as part of a string as shown above .
    For our application I really don't care much what character is shown or not show, what is important is that I can retrieve the ASCII value and that this value matches the one I inserted which for some reason does not seem to work.
    This seems to be, at least to some extent a character set issue. I have also tested this on a database with character sets set as follows
    NLS_CHARACTERSET
    WE8MSWIN1252
    NLS_NCHAR_CHARACTERSET
    AL16UTF16
    With WE8MSWIN1252 the described issue does NOT occur, however unfortunately I must use NLS_CHARACTERSET AL32UTF8 which produces the results as described above!
    As said any insights would be much appreciated as I am slowly but surely starting to despair.
    For completions sake, character sets are set as follows (changing it is NOT an option):
    NLS_CHARACTERSET
    AL32UTF8
    NLS_NCHAR_CHARACTERSET
    AL16UTF16
    The test table is created as follows
    CREATE TABLE TEST
    TEST VARCHAR2(1000 BYTE)
    Database Version 11.2.0.3.0
    Edited by: helios.taraba on Dec 2, 2012 10:18 AM --Added database version
    Edited by: helios.taraba on Dec 2, 2012 10:24 AM Added description of test results using NLS_CHARACTERSET WE8MSWIN1252

    Hello Orafad,
    Thanks for your reply, at least I understand the effects I'm seeing i.e.
    +"For multibyte character sets, n must resolve to one entire code point. Invalid code points are not validated, and the result of specifying invalid code points is indeterminate."+
    http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions026.htm
    You are absolutely right I could use chr(50579) to get the ligature symbol. However as what we are trying to achieve is to implement a legacy interface to a 20+ years old subsystem we are actually not so much interested in the symbol itself but rather in the ascii value of that symbol (156 as you so rightly point out in the win-1252 characterset), this particular field represents the lenght of the message being sent to the subsystem and can vary from decimal 68 to 164 and is also considered in a checksum calculation which is part of the message.
    As changing the nls_characterset of the database is not an option I guess I only have one reasonable avenue to resolve this namely to push the functionality to added the "encoded" length of the message (and the calculation of the checksum) to the java driver which is responsible for sending the message (tcp/ip) to the subsystem. Here we should not have any issues adding a byte with the value 156 (or any other for that matter) to the datastream.
    Thankfully all other fields have characters with ascii values below 128 and above 31.
    I'm going to leave my question as un-answered for a bit longer in the hopes of someone coming up with a golden bullet, although not getting my hopes up.
    Thanks, Helios

  • Set seperate handling charges for perishable's and non-perishables at checkout

    I've run into a problem trying to set up some appropiate handling charges on two different types of products: Perishables and non perishables.
    I've tried setting it up through categories in the shipping options, which works great up until I try to purchase both a non perishable and a perishable product at the same time. When I have both these items in my cart, no valid shipping option is given. (probably because I set the categories handling charges to exclude the other category as I dont want it as a shipping option if customers only purchase perishables or non-perishables, and it is shown to customers as an option when its set up in this manner!)
    Example:
    Perishables hold a $12.00 handing charge per order, non perishables hold a $6.00 handing charge per order. If I set up shippng options for only Non-parishables by excluding any Parishable category, and do the same for Parishables by excluding any Non-parishable category, im not given any valid shipping option when my cart contains both of these. My question is, how can I set it up so when my cart contains both of these types, there is a desired shipping option (while at the same time not including this option if the customer only purchases all perishables OR all non perishables)
    My apologizes if this comes off as confusing, I've been up for a while now trying to get this to work! Any help or direction would be appreciated.

    I noticed a somewhat similar question just now which contains no workable answer, argh! Ill leave this open for a little while but will move it to the code section if no answers are submitted as the only workable theory I have come to involves javascript.

  • Displaying alternate shaded and non shaded lines in smartforms

    hi.
      I have got a requirement which says we need to display records on smartforms.   It should have 50 lines on the page with alternating shaded and non shaded lines.  I am using one internal table which contains all the data which is to be displayed. How can I proceed so that even when i have less than 50 records in the internal table  it should display all the 50 lines on the form.
    thanks in advance
    Chetan

    hi chetan,
    <b>1.</b>create a table-->create 2 line types(1 is plain and another one is with shading u cabn give shading by selecting the SHADING and sturation in TABLE TAB of table)...
    <b>2.</b>then insert two lines in the MAINAREA of the table by righte clck create table line(for this give line type1), then inset the fields u want . create another table line in the main area but with the line type2.. insetr the the text u want as in first line.
    if u run the smartform will get the output with 100 record (supoose u have 50 records) because u r using 2 table lines in the mainarea of the table so each line is printing 2 time one with plain and another is with shaded.
    Now we have to avoid this repitation... u have to print the alternate one.... to achive this...
    maintain a variable with v_flag type c.
    by default v_flag = 'X'.
    <b>3.</b>for the firstline in the mainarea of the table <b>CONDITION TA</b>B give the conditon v_flag = 'X'.
    for the second gve the condtion v_flag = 'Y'.
    now 2 line will trigger if the condition is valid.. our goal is to chage the value in the f_flag alternatively... for this
    <b>4.</b> create PROGRAM LINES in the main of the table after the 2 lines..in this chage the value of v_flag. as follows
    IF V_FLAG = 'X'.
    V_FLAG = 'Y'.
    ELSE.
    V_FLAG = 'X'.
    ENDIF.
    now first time plain line will be triggered in the each loop pass and the v_flag value will be chaged in each loop pass so next time shaded line will be triggered. it will be repeated for all the records.
    if u run the from now u will get 50 records with alternatinveshaded lines.
    i hope the solution is clear.. if not read agin i am sure it works.
    do not hesitate to come agiani if u r faciong any problems while implementing this.
    Please Close this thread.. when u r problem is solved
    Reward if Helpful
    Regards
    Naresh Reddy K

  • How to fix "cannot convert between unicode and non-unicode string data types" :/

    Environment: SQL Server 2008 R2
    Introduction:Staging_table is a table where data is being stored from source file. Individual and ind_subject_scores are destination tables.
    Purpose: To load the data from a source file .csv while SSIS define table  fields with 50 varchar, I can still transfer the data to the entity table/ destination and keeping the table definition.
    I'm getting validation error "Cannot convert between a unicode and a non-unicode string data types" for all the columns.
    Please help

    Hi ,
    NVARCHAR = DT_WSTR
    VARCHAR = DT_STR
    Try below links:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/ed1caf36-7a62-44c8-9b67-127cb4a7b747/error-on-package-can-not-convert-from-unicode-to-non-unicode-string-type?forum=sqlintegrationservices
    http://social.msdn.microsoft.com/Forums/en-US/eb0d1519-4be3-427d-bd30-ae4004ea9e8d/data-conversion-error-how-to-fix-this
    http://technet.microsoft.com/en-us/library/aa337316(v=sql.105).aspx
    http://social.technet.microsoft.com/wiki/contents/articles/19612.ssis-import-excel-to-table-cannot-convert-between-unicode-and-non-unicode-string-data-types.aspx
    sathya - www.allaboutmssql.com ** Mark as answered if my post solved your problem and Vote as helpful if my post was useful **.

  • Difference between Coupon Codes And non-Coupon Codes

    Hi everybody.,
    i want to know the difference between Coupon Codes And Non-Coupon Codes in ATG..

    I dont think we have anything called non-coupon codes.
    We have promotions codes or coupon codes associated to a single promotion. If you apply couponcode, then the promotion associated to the user gets applied to it if dates and other properties related to coupon are valid.
    -karthik

  • JSF Pages are not rendering correctly when  loaded using Non JSF actions

    Hi All,
    This problem is irritating me and I am posting the same query for the third time here.
    When I come from non jsf actions such as page submitting using Javascript, clicking anchor link, clicking normal Html submit button and so on my page is not rendering correctlly .
    In other words, My first GET method/Post method works perfectly for the first time when the page is loaded.
    But when we try to access the page for the second time, although logical work is perfect in bean, I am getting same old page.
    How to resolve this issue?
    or
    Is this Bug of Sun's Implementation of JSF Framework.
    Thanks,
    Sudhakar

    Hi Sudhakar,
    There is a discussion about refreshing a page, Take a look at the below thread
    http://swforum.sun.com/jive/thread.jspa?threadID=55660
    Hope this what you are looking for
    MJ

  • JSF Page is not  rendering correctly on NON JSF Action

    Hi All,
    When I go from JSF actions (clicking HtmlCommandButton HtmlActionLink), I am getting the correct page. But when I come from non jsf actions say if I come through by clicking normal anchor tag or javascript action or normal html submit button, I am getting same old rendered page. How can I overcome this problem??
    Thanks
    Sudhakar

    I am getting same old rendered pageIn otherwords, page is not getting refreshed and contains old data

  • How can we make edit and non edit of rows on particular conditions in alv

    hi experts,
                   i am very new to web dynpro for abap.i have one query regarding alv.
    in one view i have alv table with two line items,and line each line item having foue editable fields and remaining are non editable.
    now i am navigating to another view and make some action.here i have generated one value  and updated this value to one field ofselected  line items of alv table in the previous view.now i am coming back to previous view .now i want to display the row of alv table which contain value which is generated in second view as completely non editable and remaining rows are as it is .
    hi guys please look into this and suggests me.

    Hi babu,
    You can do this in one view it self.
    create a one attribute of type wdy_boolean.. in view context.
    Bind these attribute to read only property of table.. and  initially set the value to abap_true in wddoinit method.
    Then create one button say "EDIT" in view and create action for edit button.. in that action set the above attribute value to
    abap_false.
    so now, initially table will be in display mode, when you click on edit mode...it will become editable mode...
    Hope you got some idea.
    Regards
    Srinvias

  • Internal links in portal (CSS, images, and other struts actions)

    Good morning gurus! I have another question regarding Struts Portlets. We have an application that builds a page with an image that comes from the database. The application is composed of two Struts actions. One that's in charge of drawing the page and the other action is in charge of bringing the image from the database. The second action is called from a JSP (img src="/getImage.do"). In portal, once the portlet rendered the JSP it doesn't recongnize the other links inside the JSP (the call to the second action). Also, other links suchs as images, CSS, and others Struts actions are not recognized. How can I access images, links, and CSS from the main application (the actual application).
    Best regards,
    Marcelo Oliva
    Message was edited by:
    molivas08

    Hi Andrew -
    This is a pretty big topic for one thread ... I will try to provide some pointers on where to look for more information.
    1. Need ability for non-html literate authors to update text, images and links on their portion of a shared web page
    In the following whitepaper, see the section: Associated Funtion for Item Display
    http://www.oracle.com/technology/products/ias/portal/pdf/oow_10gr2_1336_fender.pdf
    This will allow you to prompt your non-HTML literate users for the "parts" to display and you worry about the UI.
    2. Need ability to enforce common look and feel on content provided by non-html literate authors.
    Create pages based on Templates. Templates can force the style on users. Again - do not use text items and the RTE for users, you control the display with an Associated Function.
    3. Prefer ability to approve content before it goes live.
    Grant content contributors "Manage with Approval" access
    5. Need advanced search capabilities
    Check out the search section on Portal OTN
    http://www.oracle.com/technology/products/ias/portal/content_management_10gr2.html
    Hope this helps,
    Candace

Maybe you are looking for

  • Multiple Errors with New iTunes

    Hi Folks, What's up with the most recent version of iTunes. 1.  I'm trying to burn a CD (playlist) and iTunes is trying to analyze or "Determining the Audio Volume" for my podcasts.  It also says 225 and I don't have that many. 2.  Print a cover for

  • Get the current value of a managed bean.

    Hi guys I have a register page which takes the Login ID and the password and retype password whose values are stored in the "Managed Beans" in registerServer.java. I have a (PwdValidator.java) Custom validator for Re-type Password which validates its

  • Coherence and EclipseLink - JTA Transaction Manager - slow response times

    A colleague and I are updating a transactional web service to use Coherence as an underlying L2 cache. The application has the following characteristics: Java 1.7 Using Spring Framework 4.0.5 EclipseLink 12.1.2 TopLink grid 12.1.2 Coherence 12.1.2 ja

  • Different reporting period

    Hi Gurus, We would like to make reports on different periods than standard. Our reporting period is from the 26th of previous month to the 25th of this month, so e.g. for the month January 2009 we would like to show all the records from the 26th of D

  • CUCM License counting and Alarm configuration with SMTP

    Hi All UC Experts, After the CUCM version 9 happened, the CUCM will become trail 60 days when the used UCL license is over. Is it possible to set a SMTP alarm to inform the admin to purchase the UCL ASAP? I checked the SMTP host configuration: If you