Viewset - active view and data validation problem

Hey there,
I've a problem while using a viewset (1 col, 2 rows) and the data-validation in the wdDoBeforeAction() method.
My application works basically like this:
The first view is displayed with 2 mandatory input fields. Upon the evaluation result of the entered data in these fields, a corresponding second view will be displayed. The input fields in the first view are set to read only and a button named "Change" appears. This button triggers an action which fires and outbound-plug to an empty view, so that the second view disappears and resets the "read only" properties of the input fields in the first view, so that the user can enter new data.
The problem is, that the second view contains input fields itself, which are validated in the wdDoBeforeAction() method of this view. The navigation is cancelled if an error occurs. Well, this is fine if i want to submit (pressing the button "Approve" in the second view) this data and proceed, but if i want to go back to the first view (by hitting the "Change" button), i want to discard all information entered in the second view and i dont want this data to be validated. It's quite annoying if u just want to correct the first views data but have to enter correct values for the second view in order to get through the second views checks..
I hope that's clear enough, otherwise i will upload a screenshot to clarify.
Thx in advance
Regards
Pascal

Hi Pascal,
although I wont prefer to do so for reasons of readability, you could use wdDoProcessbeforeAction to control your view-flow.
Take a look at the example, I have two Buttons with two actions, one is set on "Validate", the other is not (guess which on is the validating ).
You can get the action triggered inside the doBefore ... method and determine whether or not the checkbox is set.
So put your code to validate the input in the i(isValidting) branch and your problems are solved.
Keep in Mind: I would delegate the Validation from the view to the controller, handle the validation myself with custom coding and then check in the view controller if any errors occured.
hope that helped,
Jan
  //@@end
  public void wdDoBeforeAction(com.sap.tc.webdynpro.progmodel.api.IWDBeforeAction validation)
    //@@begin wdDoBeforeAction
       IWDAction currentAction = validation.getCurrentAction();
       if (currentAction == null) return;
       String action = currentAction.getText();
       boolean isValidating = currentAction.isValidating();
       if (isValidating) {
            wdComponentAPI.getMessageManager().reportException(action);
       } else {
            wdComponentAPI.getMessageManager().reportSuccess(action);
    //@@end
Edited by: Jan Galinski (Holisticon) on Sep 8, 2009 3:15 PM

Similar Messages

  • Difference between refresh of Report in Active Viewer and Active Studio BAM

    We use the Oracle SOA Suite with BAM (on Linux) 10.3.2.0.
    I have 2 questions:
    1. We have made a report with several items and in Active Studio --> Select Report --> Edit mode --> I see the correct values for my report. When I open my report in Active Viewer I see data from yesterday. The report is not being refreshed. How can I change this, what is causing this difference between Active Viewer and Active Studio in Edit mode??
    2. One of my items in my report always gives the message: opening (only in Active Viewer, in Active Studio/edit mode I can see the correct data).

    Is your popup blocker turned off? I can only imaging that the popup blocker may be keeping the Live Data window from appearing and updating the dashboard. Active Studio doesn't do a Live update, but an update on report load.

  • Default view and date format for anonymous access in convergence calendar

    Hi,
    is there an option to configure default view and date format when user access to a calendar with anonymous access ?
    Actually, date format is M/D and I want D/M.
    And the default view is monthly, and I would like to set to 7 days view.
    Thx for your help
    Regars,
    JC

    jchatriot wrote:
    is there an option to configure default view and date format when user access to a calendar with anonymous access ?No. I've raise a new Request For Enhancement:
    RFE #6961895 - "Provide configuration option and URL parameter to set Anonymous Calendar view and date format"
    Regards,
    Shane.

  • Data View and Data Source buttons Greyed out

    I have Site Admin permissions on an On Prem SharePoint 2013 site.
    In SharePoint Designer 2013 the Data View and Data Source buttons are greyed out.
    Can anyone shed some light as to why this is occurring?

    Hi grantzre,
    Could you provide a screenshot about the location you want to insert the Data View web part and Data Source?
    I think you may put the mouse cursor in the incorrect place to add the data view web part, please try putting the cursor before the tag </ZoneTemplate> and see if "Data View" button is enabled, then you can insert an empty
    dataview web part and then insert the data source in tag <DataSources> by clicking ribbon button "Data Source" (also click the ribbon button "Parse HTML" of the page if needed).
    Thanks
    Daniel Yang
    TechNet Community Support

  • 575 LRE and data transfer problems

    575 LRE and data transfer problems
    Hello,
    I have a connection from my provider using the Cisco 575 LRE, configured for 10 Mbit/s. I don't know the make and model of the switch but I assume it is likely a Cisco device also.
    I'm experiencing problems with the LRE connection whenever big files are being transfered simultaneously in both down- and upstream directions to/from a PC. The data transfer may slow down to a stall and all WAN connectivity may become momentarily blocked. Transfer speeds and reliability always seem good as long as big files don't get transferred in both directions at the same time.
    What could cause this problem? My service provider says that they see no problems in their end and they are unable to help me. I don't know how extensively they have looked into any possibility of problems though.
    I've tried different 100Mbit network cards, replacing ethernet and phone cabling and changing duplex settings and MTU, but nothing has completely solved the problem so far. Forcing network cards to full-duplex does prevent the worst slowdown and hanging described above, but limits upload speed to around half of the maximum available.
    Not sure if this is meaningful here, but my service provider claims they have the switch my CPE is connected to configured for full-duplex, but when I have a PC network card set to autonegotiation, it will always result in a 100baseTX half-duplex link with the 575 - this is the case where I get maximum speed in either one direction but also the mentioned problems with bi-directional transfer.
    I don't know what more I can do to the PCs here to solve this problem and I don't have access to configuring the CPE device, because I don't own the switch it is connected to. I can only think of trying to ask my ISP to read this thread if someone has a possible solution that requires actions on their behalf.
    Any help would be much appreciated.

    The problem, as you describe it, is most likely cabling ...it could be the cable between your PC(s) and the 575 (most likely), or between the 575 and the switch.
    What you are seeing are the effects of crosstalk (signal from one pair interfereing with the other pair), that's why you see it in full-duplex mode and not (so much) in half-duplex (with half-duplex, only one side talks at a time).
    The only part you would be likely be able to change would be the connections on your side of the 575 ... so, try another cable; preferably a store-bought cable and in good shape (twisted, crushed, kinked, stretched, and poorly constructed cables are a Very Bad Thing).
    LRE was designed to handle voice-grade cabling, but if you're at near the extreme length, you may see some degradation.
    Good Luck
    Scott

  • Date Validation problem in form with report

    Hi,
    I am stuck on this date validation issue in a form with report that I am working on-
    I have an Active_date_start and an Active_date_end field. I want to validate the form in such a way that if the user enters the Active_date_end < active_date_start then it should error out appropriately asking to change the active_end_date . Also another problem is that the changes are made to the active_date_end they should reflect in the table. How do I accomplish this.
    Appreciate all the help offered.
    Thanks.

    Hi,
    Thanks for the code.Now the APPLY CHANGES works fine except that it throws an error when I change the end date to a date which is less than the start date . So it does show me my error and does not go further but also shows me the error -
    Invalid PL/SQL expression condition: ORA-06550: line 1, column 29: PLS-00306: wrong number
    or types of arguments in call to 'NVL' ORA-06550: line 1, column 7: PL/SQL: Statement
    ignored Invalid PL/SQL expression condition: ORA-06550: line 1, column 29: PLS-00306:
    wrong number or types of arguments in call to 'NVL' ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    I looked up the error number and it says its a generic error type where the error can be found on the line number specified. But in this case how and where do I look for the error line?. This is the code I am using-
    DECLARE
    vACTIVE_DATE_START DATE;
    vACTIVE_DATE_END DATE;
    BEGIN
    vACTIVE_DATE_START := TO_DATE(:P4_ACTIVE_DATE_START, 'DD/MM/YYYY');
    vACTIVE_DATE_END := TO_DATE(:P4_ACTIVE_DATE_END, 'DD/MM/YYYY');
    IF vACTIVE_DATE_END < vACTIVE_DATE_START THEN
    RETURN 'End date is before start date';
    ELSE
    RETURN NULL;
    END IF;
    END;
    My base table has the active_date_start as NOT NULL. Now I have the exact same code for APPLY CHANGES
    in other form and it works fine not giving the above error. I am at a loss to know how I can get rid of the error.
    Any suggestions!.
    Thanks in advance,
    A

  • Import / export of Application view and Data Form

    Hi,
    I'd like to know if it's possible to backup or export Applications View in EPMA and Data Form in a Planning Application between the test and production machine.
    Can anyone help me?
    Thanks in advance.
    Ale

    Hi John and Hi to all,
    I’ve used the EPMA File Generator that you sent me both under a test virtual machine and our test machine, but always I’ve the same problem (deploy aborted on 0%), that I’ve pasted up in this tread, and I’ve note that after the exporting with the EPMA File Generator, the original application view not deploys with the followed message:
    Status : Aborted
    Progress : 100%
    Server : DimServer
    Detail : App Creation failed with Exceptioncom.hyperion.planning.OptimisticConcurrencyException: You are trying to change data that has been changed by a user on another server. Wait a few seconds and try again. If you continue to see this error message, please contact your administrator.     at com.hyperion.planning.sql.actions.HspObjectAction.ensureOptimisticConcurrency(Unknown Source)     at com.hyperion.planning.sql.actions.HspObjectAction.update(Unknown Source)     at com.hyperion.planning.sql.actions.HspUniqueObjectAction.update(Unknown Source)     at com.hyperion.planning.sql.actions.HspMemberAction.update(Unknown Source)     at com.hyperion.planning.sql.actions.HspDimensionAction.update(Unknown Source)     at com.hyperion.planning.sql.actions.HspAction.update(Unknown Source)     at com.hyperion.planning.sql.actions.HspActionSet.doActions(Unknown Source)     at com.hyperion.planning.sql.actions.HspActionSet.doActions(Unknown Source)     at com.hyperion.planning.db.HspDEDBImpl.saveDimension(Unknown Source)     at com.hyperion.planning.HyperionPlanningBean.updateDimension(Unknown Source)     at com.hyperion.planning.appdeploy.HspAWBXMLHelper.updateDim(Unknown Source)     at com.hyperion.planning.appdeploy.HspAWBXMLHelper.parseNLoadDimensions(Unknown Source)     at com.hyperion.planning.appdeploy.HspAppDefinition.deployAppFromXML(Unknown Source)     at com.hyperion.planning.appdeploy.HspAppDefinition.access$000(Unknown Source)     at com.hyperion.planning.appdeploy.HspAppDefinition$1.run(Unknown Source)
    What can is happened?
    Thanks
    Alessia

  • Album view and Cover Flow problem

    Well, im going to get one of the new ipods soon and they have that Cover Flow feature which is pretty cool. Anyway i have a problem, when i try and sort them by album, i go to Album View and even if the album names are the same, they arnt in the same box, because they have various artists. Ill show some pics now.
    http://img530.imageshack.us/img530/9604/probz1nm0.jpg
    See how they arnt in the same box because of their artists? Then when i go to Cover Flow tab, to see how it will look on my ipod it comes up like this
    http://img530.imageshack.us/img530/6366/probz2wu4.jpg
    All the ones without artcovers so far, are all the songs from the album "MOS" like you saw in the previous picture. So does anyone know how to fix that problem? Because i dont want like 20 MOS albums showing up on the Ipod with only 1 song in each of them when i can have them all in one.
    Thanks

    You need to select the "Compilation" button on each to overide the fact that there is a different artist for each song. think about it, the chances of two different artists having the same name for an album is pretty big. How is any music jukebox supposed ot know that they're the same....
    select all the songs, open apple/control "I" and click on compilations on bottom right.

  • How to solve the flash Builder 4.6 scroll view and textinput  display problem?

    I have a dynamic form application which worked well on flash builder 4.5, having display problems in flash builder 4.6 now. What I did is adding
    TextInput objects  to a scroll view and set the texts for them dynamically. Everything is fine after the screen loaded. But if I scroll down, sometimes the texts will be placed in wrong positions. I attached the screen copy of the wrong display. Does anybody know how to solve this problem? Thanks.

    Check out the two threads below (if you have not already). I have not tried it but aeonus describes an approach that made me think of something that might work ... It is a workaround but, what if you have a text field (txtA) with the skin that does not allow soft keyboard selection, but does scroll correctly, and on the onClick event of that text field, you dynamically cover it with another text field (txtB) that does allow soft keyboard selection, (but does not scroll properly) and trigger the keyboard. After you get the entry from the user, set the value of txtA and destroy txtB ... leaving you (theoretically) with properly scrolling text fields. If you have a lot of those in your app, you might want to write a component that implements that behavior.
    "Create a dynamic textfield, and on click, invoke create a StageText instance at the same location as the textfield (by setting the StageText.viewPort property)
    Finally, set StageText.softKeyboardType to "numeric" and call StageText.assignFocus();"
    http://forums.adobe.com/thread/915019?tstart=0
    http://forums.adobe.com/thread/911214?tstart=0

  • Create a new OSB domain and data source problems

    Hello,
    I noticed a problem while create a new OSB domain with Oracle Service Bus 10gR3 on Solaris 10 (intel-based).
    This domain is composed of two managed servers deployed on a cluster.
    I have configured the JMS reporting data sources to use an Oracle 10g (XE) database (driver Oracle Thin (non XA)) installed on a remote server.
    While trying to start my managed servers, the startup process of these managed servers failed due to a data source problem on "wlsbjmsrpDataSource" or "cgDataSource-nonXA".
    The workaround I found is to delete and recreate (through the WLS console) the data sources "wlsbjmsrpDataSource", "cgDataSource-nonXA" and "cgDataSource".
    In this situation, my managed servers can be started properly.
    Is it a known problem located on the configuration wizard?
    Thanks for your help.

    Hi
    For the answer.
    I fully understand that those datasources are default ones and are mainly related to JMS reporting.
    But my question was probably not well expressed.
    The problem I had is when the domain is created, the managed servers won't start due to problems related to theses datasources.
    The workaround I found is to delete and to create those datasources from the WLS console.
    In this situation, the managed servers are able to be started.
    I want to know if this is a known problem/limitation of OSB 10gR3 with Solaris 10 and Oracle 10g?
    Thanks for your help.

  • Data view and data structure

    whats the difference between a data view and a data structure

    Hi
    <b>View:</b>
    Data about an application object is often distributed on several tables.
    By defining a view, you can define an application-dependent view that combines this data.
    The structure of such a view is defined by specifying the tables and fields used in the view.
    Fields that are not required can be hidden, thereby minimizing interfaces.
    A view can be used in ABAP programs for data selection.
    http://help.sap.com/saphelp_47x200/helpdata/en/cf/21ecf9446011d189700000e8322d00/frameset.htm
    <b>Structures:</b>
    A structure (structured type) comprises components (fields).
    Types are defined for the components.
    A component can refer to an elementary type (via a data element or by directly specifying
    the data type and length in the structure definition), another structure or a table type.
    A structure can therefore be nested to any depth.
    Structures are used to define the data at the interface of module pools and screens
    and to define the parameter types of function modules.
    http://help.sap.com/saphelp_47x200/helpdata/en/ac/3547360f2ea61fe10000009b38f839/frameset.htm
    Kindly assign points for useful answers!
    Best regards,
    Thangesh

  • Outlook HTML and CSS Validator Problem

    Hi,
    I downloaded this
    Outlook
    HTML and CSS Validator for DreamWeaver 8
    (WordMailSupportMacromedia.msi) but when I
    followed
    the instructions and went to the Browser Check settings,
    "Microsoft Word" did not show up in the Target Browsers list.
    Anyone know why or have a fix?
    Thanks much!

    FederalWayDave wrote:
    > Hi,
    >
    > I downloaded this
    >
    http://www.microsoft.com/downloads/details.aspx?familyid=0b764c08-0f86-431e-8bd5
    > -ef0e9ce26a3a&displaylang=en for DreamWeaver 8
    (WordMailSupportMacromedia.msi)
    > but when I
    >
    http://msdn2.microsoft.com/en-us/library/aa338200.aspx#Word2007MailHTMLandCSS2_D
    > reamweaver]followed the instructions and went to the
    Browser Check settings,
    > "Microsoft Word" did not show up in the Target Browsers
    list.
    >
    > Anyone know why or have a fix?
    >
    > Thanks much!
    >
    you can open your html pages FROM Microsoft Word.
    seb ( [email protected])
    http://webtrans1.com | high-end web
    design
    Downloads: Slide Show, Directory Browser, Mailing List

  • Apple Time and Date Servers - Problems?

    Running OS X 10.5.6 --and today is 1/5/09. Just noticed the date is showing yesterday 01/04/09. I have setting to update using Apple Time & Date Servers. I have rebooted and date is still incorrect ..time is correct. Any ideas? thanks

    Hi,
    Errmmmm - It is still Sunday the 4th here! Tomorrow will be Monday the 5th
    Cheers.
    Ian.

  • Printed Adobe Form - pagination and data content problem

    I have been making changes to HR Appraisal Forms and all goes well except when I want to paginate a section. 
    The text is in a value string.
    I define a flowed subform with direction Top to Bottom.  binding None
    Subform Pagination Place > Following Previous    After > Continue Filling Parent If Dataset Paginated > Goto content area (there is only one content arrea defined in this form
    Allow Page breaks within content.
    I have a table object within the Subform. Place > Following Previous    After > Continue Filling Parent If Dataset
    The table has a Header row Place > Top of Next Page (this works fine) checked Include Header Row Initial Page and Subsequent Page
    the Table row (body) Pagination Place > Following Previous    After > Continue Filling Parent If Dataset
    When I test with more data than fits on page I get overflow and pagination with the Header on both pages.
    The bad the data that overflows to the new page is the same from the start of the first page, it repeats.  aso the second page has the content the length of what the overflow data would have been.
    How do I get the data NOT to repeat from the beginning on the second page?   This should have been easy but I have tried almost everything to correct the problem EXCEPT define all the objects as subforms and use Acessibility to make them work as table or row.  Please remember that I am NOT trying to make an interactive form and just want printed overflow.

    Hi,
    It allows the save as from a process point of view there speaks nothing against having long notes. And in the smartform print and in any other online UI in PM (R/3, BSP, WD) the notes are displayed correctly.
    The PDF is just another UI component, and the only one with the issue. To be honest, I think the SAP note is a rubbish answer, and an easy way out. Yes, in general it is better to have short notes on element level and longer pieces of text in an attachment.
    But logically speaking, the PDF thing is just plainly a bug.
    But we can talk short or long about it, in the end SAP is the one with the final answer
    Regards and Groetjes,
    Maurice Hagen

  • Date Validation Problem

    My Problem is during a transformation a field in the source table which is varchar2(6) is being populated into target table field whose data type is date. In the transformation they are checking if the source field is a valid date and only then they are populating that field to the target.
    As it is done in Informatica they could easily finish the transformation with a built in function is_date.
    How to do the same in Oracle. I just write simple SQL statements and test the data. I attempted to write it in the following way.
    select key_field,to_Date(prcs_Date,'MMDDRR')
    from table1
    where Prcs_date is a valid date.
    Please some one give an idea as it is very very urgent. I got struck up with this since last three hours

    You can write your own is date function to check whether a value is a valid date.
    See example below:
    Good luck,
    Jan-Marcel
    =================================
    create table test_data (col_1a number, col_2a varchar2(6));
    insert into test_data (col_1a, col_2a) values (1, '011505');
    insert into test_data (col_1a, col_2a) values (2, '021505');
    insert into test_data (col_1a, col_2a) values (3, '031505');
    insert into test_data (col_1a, col_2a) values (4, '041505');
    insert into test_data (col_1a, col_2a) values (5, '051505');
    insert into test_data (col_1a, col_2a) values (6, '061505');
    insert into test_data (col_1a, col_2a) values (7, '071505');
    insert into test_data (col_1a, col_2a) values (8, '081505');
    insert into test_data (col_1a, col_2a) values (9, '081599');
    -- invalid date format
    insert into test_data (col_1a, col_2a) values (10, '150805');
    insert into test_data (col_1a, col_2a) values (11, 'JAN105');
    commit;
    create table new_data (col_1b number, col_2b date);
    create or replace function is_date(p_date in varchar2, p_date_format in varchar2)
    return varchar2 is
    l_date_check date;
    begin
    l_date_check := to_date(p_date, p_date_format);
    return('TRUE');
    exception
    when others then
    return('FALSE');
    end;
    insert into new_data
    (col_1b
    ,col_2b)
    select col_1
    , to_date(col_2, 'MMDDRR')
    from (select col_1a col_1
    , col_2a col_2
    from test_data
    where is_date(col_2a, 'MMDDRR') = 'TRUE');
    commit;

Maybe you are looking for

  • Problem to get Mission Control 3.0.1 running with JBoss 4.2.2GA

    Hello, I'm using JRockit R27.04 to run JBoss 4.2.2GA with the following VM parameters: -Xmanagement:ssl=false,authenticate=false,port=7091,autodiscovery=true -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl -Djbos

  • How do I use iCloud with Aperture?

    I want to synchronize the photos I shoot and load on my MacBook in Aperture to my desktop iMac. I've never used iCloud, but the setup instructions says this should work for Aperture users. The instructions say: "Open iPhoto or Aperture and click the

  • How to enable my apple id?

    How can I enable my id?

  • BAPI for finding child WBS elements under a Parent WBS element

    Hi friends, I am working on the transaction ZIOS02 transaction. On releasing the Parent or Main WBS element in ZIOS02 transaction I need to copy some data from ZIOS to PRPS based on WBS element. I have a Bapi for retrieving all the WBS elements based

  • Removing Calculate tax option from F-47

    Hello Sap Guru's, We have a requirement to remove Calculate tax check box option from F-47 screen.Please note the we have already deactivated tax code field.Kindly let us know how it could be done.We even try to make transaction variant for this but