Changing Value because of Validator/Converter

Hello,
I'm searching for a quite simple solution for following problem:
I have a textfield with a converter:
<h:inputText size="10" maxlength="10" value="#{organizer.birthday}" >
    <f:convertDateTime pattern="dd.mm.yyyy" />
</h:inputText>and on the same page, I have an image:
<h:graphicImage url="images/img.gif" />further, I have another textfield, only for output:
<h:outputText value="blah blah blah"/>I want the url of the graphicImage and the value of the 2nd textfield to change, when an validation-error has occured. How can I manage this?
hoping for help
lg,
Hanspeter

I'm trying to do that with an custom validator... here I got another problem....
Snippet from the ValidatorTag-Class:
         // getter and settter -Methods
     public StringValidatorTag() {
          super();
          super.setValidatorId("validator.StringValidator");          
     protected Validator createValidator() throws JspException {
          StringValidator validator = (StringValidator)super.createValidator();
          validator.setErrorImageComponentId(errorImageComponentId);
          validator.setErrorImageUrl(errorImageUrl);
          validator.setFieldName(fieldName);
          validator.setLength(length);
          validator.setRequired(required);
          return validator;
     }Snippet from the Validator-Class:
        // getter and settter -Methods
     public StringValidator() {
          super();
     public void validate(FacesContext context, UIComponent component, Object value)
          throws ValidatorException {
          if (context == null || component == null) throw new NullPointerException();
          context.addMessage("test",
                    new FacesMessage("Sie haben beim Feld '"+fieldName+"' keinen Wert eingetragen!"));
                /* here I want to change the url from the image-component
                 * but there is another problem first to solve
                 * (fieldName is empty) */
        }I made the entries in the faces-config.xml and into an tld for this tag, but it seems to be, that the values specified in the tag aren't assigned to the Validator....
I'm using ri-1.0
greetz,
hanspeter

Similar Messages

  • "Property value is not valid" when PropertyGridView tries to convert a string to a custom object type.

    Hi,
    I have a problem with an PropertyGrid enum property that uses a type converter.
    In general it works, but when I double clicking or using the scoll wheel,  an error message appears:
    "Property value is not valid"
    Details: "Object of type 'System.String' cannot be converted to type 'myCompany.myProject.CC_myCustomProperty."
    I noticed that the CommitValue method (in PropertyGridView.cs) tries to convert a string value to a CC_myCustomProperty object.
    Here is the code that causes the error (see line 33):
    (Using the .net symbols from the PropertyGridView.cs file)
    1
            internal bool CommitValue(GridEntry ipeCur, object value) {   
    2
    3
                Debug.WriteLineIf(CompModSwitches.DebugGridView.TraceVerbose,  "PropertyGridView:CommitValue(" + (value==null ? "null" :value.ToString()) + ")");   
    4
    5
                int propCount = ipeCur.ChildCount;  
    6
                bool capture = Edit.HookMouseDown;  
    7
                object originalValue = null;   
    8
    9
                try {   
    10
                    originalValue = ipeCur.PropertyValue;   
    11
    12
                catch {   
    13
                    // if the getter is failing, we still want to let  
    14
                    // the set happen.  
    15
    16
    17
                try {  
    18
                    try {   
    19
                        SetFlag(FlagInPropertySet, true);   
    20
    21
                        //if this propentry is enumerable, then once a value is selected from the editor,   
    22
                        //we'll want to close the drop down (like true/false).  Otherwise, if we're  
    23
                        //working with Anchor for ex., then we should be able to select different values  
    24
                        //from the editor, without having it close every time.  
    25
                        if (ipeCur != null &&   
    26
                            ipeCur.Enumerable) {  
    27
                               CloseDropDown();   
    28
    29
    30
                        try {   
    31
                            Edit.DisableMouseHook = true;  
    32
    /*** This Step fails because the commit method is trying to convert a string to myCustom objet ***/ 
    33
                            ipeCur.PropertyValue = value;   
    34
    35
                        finally {   
    36
                            Edit.DisableMouseHook = false;  
    37
                            Edit.HookMouseDown = capture;   
    38
    39
    40
                    catch (Exception ex) {   
    41
                        SetCommitError(ERROR_THROWN);  
    42
                        ShowInvalidMessage(ipeCur.PropertyLabel, value, ex);  
    43
                        return false;  
    44
    I'm stuck.
    I was wondering is there a way to work around this? Maybe extend the string converter class to accept this?
    Thanks in advance,
    Eric

     
    Hi,
    Thank you for your post!  I would suggest posting your question in one of the MS Forums,
     MSDN Forums » Windows Forms » Windows Forms General
     located here:http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=8&SiteID=1.
    Have a great day!

  • New@SSIS - Excel Src: The value could not be converted because of a potential loss of data

    Good day,
    I am currently working on a SSIS package that had been built by a previous user. That Package allows me to import data from an excel source to a SQL table. The excel sheet holds multiple columns, However I am having difficulty with one
    column when running the package.
    The column rows hold a character and an integer (eg: N2). The data types are as follows:
    SQL – varchar(3),NULL
    SSIS - double-precision float [DT_R8]
    I then inserted a data conversion task to change the data type. The task holds the following properties:
    Input column – F6
    Output Alias – Copy of F6
    Data Type – string[DT_STR]
    Length – 50
    When I execute the package I receive the following error:”
    [Excel Source Data [76]] Error: There was an error with output column "F6" (91) on output "Excel Source Output" (85). The column status returned was: "The value could not be converted because
    of a potential loss of data.".
    I do know that usually the message "The value could not be converted because of a potential loss of data." refers to a data type or length problem.
    Further insight to this problem will be much appreciated.

    Hi Zahid01,
    From the error message you post, we can infer the issue is caused by the input column “F6” cannot convert to the output column in Excel Source.
    Based on my test, I can reproduce the issue in my environment. The exactly cause is the data type of input column “F6” cannot convert to the data type of corresponding output column. For example, the data type of input column “F6” is [DT_STR], the data type
    of corresponding output column is [DT_I4], and there are some nonnumeric values in the input column “F6”. When we execute the task, the error occurs. We can verify the issue in the Advanced Editor dialog box of Excel Source. The following screenshot is for
    your reference:
    To avoid this issue, please make sure the input column can convert to the output column in Excel Source, including all the values in the input column.
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • I have photoshop element 11.0 but it's no possible installation (after change pc) because message internet explorer not 4.0. I have IE 11.0 ??? If enregistrement my N° on CD are not valid ???

    I have photoshop element 11.0 but it's no possible installation (after change pc) because message internet explorer not > 4.0. I have IE 11.0 ??? If enregistrement my N° on CD are not valid ???

    I have photoshop element 11.0 but it's no possible installation (after change pc) because message internet explorer not > 4.0. I have IE 11.0 ??? If enregistrement my N° on CD are not valid ???

  • How to change value of ${eol} from \n to \r\n, writing by File Adapter

    Hi All,
    How to change value of ${eol} from \n to \r\n, while writing file through File Adapter.
    As my file is being created in Linux environment, so for new line separater, \n is used. I mounted this file directory to windows System.
    As Windows requires \r\n for new line seperator. So I need to change value of ${eol} in the Schema created for file writing.
    Can any one provide help regarding this.
    Thanks in advance

    Hi,
    When an XML payload is written to a file \n would be used as the default line separator regardless of if its windows or linux, as per the XML specification http://www.w3.org/TR/REC-xml/#sec-line-ends.
    As such, one need not worry about the line separators because, the XML file would eventually be processed by a parser which usually would be able to understand both line endings (as they are whitespace characters as far as the parser is concerned).
    If you want to convert the line terminators (for readability etc), 10.1.3.4 has a new feature - in the XML schema definition for the file adapter payload, add these two top level directives to the schema element:
    xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
    nxsd:normalizeLineTerminators="false"
    Regards,
    Shanmu.

  • MDSModelDeploy Operation Failed, clone cannot be deployed, The Attribute Value is not valid

    I've created a model containing a customer entity with various domain based attributes.  I've populated the entities via a combination of manual entry and the staging tables.  In the source system I have approx 950 customer records, all of which
    fail validation on the source system as some of the attributes will be maintained only in MDS and are not in the source systems I'm pulling the initial data from.
    I ran the MDSModelDeploy.exe to create a package containing data on the source system.  I then ran the package to apply the package using the -deployclone option on my target system.  I piped the output into a flat file for review.
    Here is the error I'm receiving.
    MDSModelDeploy operation failed. Elapsed time: 00:01:00.2314612
    Error:
    A clone of the "Subzero_1" model cannot be deployed.
    An error occurred while processing message request type 'EntityMembersMergeRequest'. See exception details for more information.
    Package deployment failed with 344 errors
    The attribute value is not valid.
    The attribute value is not valid.   (repeated 344 times)
    Any ideas what the issue might be?  I have tried verbose logging as well and did not find anything that would point me in the direction of the problem.  The end result was that the model was not deployed to the target.
    I have also created a package without data, deployed that, then applied the data.  This gets the model to the target and the data also appears to be there but I did receive this error on the deployupdate.
    This is on SQL Server 2012.

    I am seeing the same error. Created a model, Cloned the model. Made changes to the clone (Schema and Data), and used MDSModelDeploy UpdateModel to update the primary (not cloned) model.  In looking at the log, I see the error shown below, but I do not
    see anything that points to what was happening at the time.
    I tried running a SQL trace to see if one of the SQL commands received an error, but none of the commands did.
    In looking at the model that was updated, I can see all of the schema changes were made, and most of the data was updated. There is one table that did not update completely. The attributes in the table consist of Domain Specific and text attributes only. 
    I also verified that everything on both models was validated before starting.
    In the weblog I see the error listed below, but there is nothing in the data that would match that value 
    Not sure were to go from here....
    Chad
    --- MDSMODELDEPLOY ERROR RECEIVED ---
    MDS Error: 0 : Microsoft.MasterDataServices.WebUI.ServiceAdapterObjectInvalidException: An error occurred while processing message request type 'EntityMembersMergeRequest'. See exception details for more information.
       at Microsoft.MasterDataServices.WebUI.ServiceAdapter.InspectResponseForErrors(MessageRequest request, MessageResponse response)
       at Microsoft.MasterDataServices.WebUI.ServiceAdapter.ExecuteRequest[TRequestType,TResponseType](MdmServiceOperation`2 operation, TRequestType request)
       at Microsoft.MasterDataServices.WebUI.ServiceAdapter.DoEntityMembersMerge(EntityMembers entityMembers)
       at Microsoft.MasterDataServices.Deployment.ModelDeployer.BatchEntityMembersMerge(Collection`1 masterData, Boolean membersOnly, Int32 batchSize, Int32 totalBatches, Collection`1 errors)
       at Microsoft.MasterDataServices.Deployment.ModelDeployer.UpdateData(Collection`1 masterData, Warnings errorsAsWarnings)
       at Microsoft.MasterDataServices.Deployment.ModelDeployer.DeployUpdate(Package package, Boolean includeData, Identifier targetVersionId)
       at Microsoft.MasterDataServices.Deployment.Utility.ModelDeploy.DeployUpdate(String serviceName, String packageFile, String versionName)
       at Microsoft.MasterDataServices.Deployment.Utility.ModelDeploy.Main(String[] args)
        DateTime=2014-02-06T16:03:17.8405277Z
    -- WEB ERROR RECEIVED --
    MDS Verbose: 0 : Unable to convert value of query string parameter Id = VID to an integer
        DateTime=2014-02-06T17:18:00.7367274Z

  • CF9 Problems with Select * query, resulting in Value can not be converted to requested type.

    So, I work on a legacy CF web site and there are numerous SELECT * FROM USERS_TABLE queries all over the site.
    Well, we changed the structure of said table in the database on our Testing and Staging sites, with no issues.
    When we pushed up to our production environment and changed the structure of the production DB table, the server kept kicking back "Value can not be converted to requested type."
    After doing some searching out there, it looks like CF caches the structure of the table, and you either have to restart CF to clear it, or rename and then name-back the DSN to fix the issue.
    http://www.bennadel.com/blog/194-ColdFusion-Query-Error-Value-Can-Not-Be-Converted-To-Requ ested-Type.htm
    That said, this doesn't happen in our testing and staging environments - so what would be the difference?
    Is there some setting I need to change in the CF Admin to keep this from happening again?

    Also, if you can use a Stored Procedure to retrieve the data, do so.  Standard queries gets all the information, anyway, chokes bandwidth passing it all to the CF server, and forces the CF server to filter, sort, and format the data.  SPs tell the db server to get ONLY the data requested, and forces the db server to filter and sort the data, leaving only formatting to the CF server.
    That's not true. The only time CF messes with data returned from the DB is if there's a maxrows attribute, and the record set returnded from the DB has more than that number of records... which causes CF to truncate the recordset to the correct size before returning it. The DB might or might not stop sending rows down to CF after CF says "yeah, I've got all I want now".
    Other than that, for all intents and purposes all CF does with the SQL is pass it to the DB and wait for an answer. The only thing it does to the returned data is to create a CF record set ("query") with it... this does not involve any filtering and sorting.
    Adam

  • How stop File Browse item losing value when a validation occurs

    G'Day Apex gurus,
    I am using Apex 3.1.0 and Firefox in an XP PC and have a file browse page item on my page but whenever i experience a validation error on the page, the value entered into this box is lost.
    Every other field on the page retains its entered value, but the file browser item loses its value.
    This is frustrating because the user will have to reselect the file.
    Is there a way to retain the value upon a validation error?
    I appreciate any assistance with this
    Carlos

    Hey creyes,
    I don't think this is possible.
    Because of security implications (scripts setting the value, and then attempting to retrieve files of your computer) the value of the fileupload form field is read only. Therefore you cannot set, or reset the value.
    A solution could be that you make validations with javascript if possible (but keep validations on the database side also!).
    Kind regards,
    Oli

  • Conversion Error setting value '33'  for 'null Converter'

    Hi,everyone,it looks my custom Converter dosen't work.
    CreditCard class:
    package com.corejsf;
    public class CreditCard {
         private String number;
         public CreditCard(){
         public CreditCard(String number){
              this.number=number;
         public String toString(){
              return this.number;
    ==============================
    PaymentBean:
    package com.corejsf;
    import java.util.Date;
    public class PaymentBean {
         private double amount;
         private Date date=new Date();
         private CreditCard card;
         public PaymentBean(){
         public double getAmount(){
              return this.amount;
         public void setAmount(double newValue){
              this.amount=newValue;
         public Date getDate(){
              return this.date;
         public void setDate(Date newValue){
              this.date=newValue;
         public CreditCard getCard(){
              return this.card;
         public void setCard(CreditCard newValue){
              this.card=newValue;
    =================================
    CreditCardConvert:
    package com.corejsf;
    import javax.faces.component.UIComponent;
    import javax.faces.context.FacesContext;
    import javax.faces.convert.Converter;
    import javax.faces.convert.ConverterException;
    import javax.faces.application.FacesMessage;
    public class CreditCardConvert implements Converter{
         public Object getAsObject(FacesContext context,UIComponent component,String newValue) throws ConverterException{
              StringBuilder builderForNewValue=new StringBuilder(newValue);
              boolean foundInvalidCharacter=false;
              char invalidChar;
              int newValueLength=newValue.length();
              int i=0;
              char chFromNewValue;
              while(i<newValueLength && !foundInvalidCharacter){
                   chFromNewValue=builderForNewValue.charAt(i);
                   if(Character.isDigit(chFromNewValue) || Character.isSpaceChar(chFromNewValue)){
                        i++;
                   }else{
                        foundInvalidCharacter=true;
                        invalidChar=chFromNewValue;
                        FacesMessage message=new FacesMessage();
                        message.setDetail("detail error convert message for CreditCard with error Char:"+invalidChar);
                        message.setSummary("summary error convert message for CreditCard with error Char:"+invalidChar);
                        message.setSeverity(FacesMessage.SEVERITY_ERROR);
                        throw new ConverterException(message);
              return new CreditCard(builderForNewValue.toString());
         public String getAsString(FacesContext context,UIComponent component,Object newValue) throws ConverterException{
              return newValue.toString();
    ===============================
    faces-config.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <faces-config
    xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
    version="2.0">
         <managed-bean>
              <managed-bean-name>payment</managed-bean-name>
              <managed-bean-class>com.corejsf.PaymentBean</managed-bean-class>
              <managed-bean-scope>session</managed-bean-scope>
         </managed-bean>
         <converter>
              <converter-id>com.corejsf.CardConvert</converter-id>
              <converter-class>com.corejsf.CreditCardConvert</converter-class>
         </converter>     
         <navigation-rule>
              <from-view-id>/index.xhtml</from-view-id>
              <navigation-case>
                   <from-outcome>result</from-outcome>
                   <to-view-id>/result.xhtml</to-view-id>
                   <redirect/>
              </navigation-case>
         </navigation-rule>
         <navigation-rule>
              <from-view-id>/result.xhtml</from-view-id>
              <navigation-case>
                   <from-outcome>index</from-outcome>
                   <to-view-id>/index.xhtml</to-view-id>
                   <redirect/>
              </navigation-case>
         </navigation-rule>
    </faces-config>
    ==================================================
    index.xhtml:
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core">
         <h:head>
              <title>index page</title>
         </h:head>
         <h:body>
              <h:form>
                   <table>
                        <tr>
                             <td>
                                  <h:inputText id="iptCard" label="card" required="true" convert="com.corejsf.CardConvert" value="#{payment.card}">
                                  </h:inputText>
                                  <h:message for="iptCard"></h:message>
                             </td>
                        </tr>
                        <tr>
                             <td>
                                  <h:inputText id="iptAmount" label="amount" required="true" value="#{payment.amount}">
                                       <f:convertNumber minFractionDigits="2"></f:convertNumber>
                                  </h:inputText>
                                  <h:message for="iptAmount"></h:message>
                             </td>
                        </tr>
                        <tr>
                             <td>
                                  <h:inputText id="iptDate" label="date" required="true" value="#{payment.date}">
                                       <f:convertDateTime pattern="MM/yyyy"></f:convertDateTime>
                                  </h:inputText>
                                  <h:message for="iptDate"></h:message>
                             </td>
                        </tr>
                        <tr>
                             <td>
                                  <h:commandButton value="sumbit" action="result"></h:commandButton>
                             </td>
                        </tr>
                   </table>
              </h:form>
         </h:body>
    </html>
    Can anyone help me,TKS!

    And besides,if I change the first inputText to:
    <td>
    <h:inputText id="iptCard" label="card" required="true" value="#{payment.card}">
         <f:convert convertId="com.corejsf.CardConvert"></f:convert>
    </h:inputText>
    <h:message for="iptCard"></h:message>
    </td>
    The app runs and result in:
    WebContent/index.xhtml @13,55 <f:convert> Tag Library supports namespace: http://java.sun.com/jsf/core, but no tag was defined for name: convert
    Is any configuration problem there?
    TKS!

  • Why is the difference in execution speed of the function "SetCtrlVa​l" between constant and changing values so small ?

    In my large application (1 MB exe-file) I am continuously updating a lot of numeric controls with new values. Most of them do not really change their value. Within my search of improving the performance of my application I noticed, that there is only a small difference of the execution speed between a call of "SetCtrlValue" with constant values and calls with changing values. It runs much faster (25 times on my PC), if I get the actual control value with "GetCtrlVal", compare it with my new value an do a call to "SetCtrlVal" only if the current value and the new value are different.
    My questions to CVI-developers is:
    Isn't it possib
    le to do this compare within the function "SetCtrlVal"
    My question to all CVI-users is:
    Does anyone have similar tips to improve the performance of CVI applications ?
    I developed a small test application for this problem, which I can mail to interested users.

    What takes the extra time is the redraw of the control. When you call SetCtrlVal we ALWAYS redraw the control. We wouldn't want to build in functionality to check if the value was the same because that would add additional time to the SetCtrlVal in every case. If you want to do it outside of the loop you can as you have done above. You have a few options. First, keep a previous value variable for the controls that you can use to determine whether to set the control value. I.E.
    int oldVal = 0;
    int newVal = 0;
    if(newVal!=oldVal) {
    SetCtrlVal(..., newVal);
    oldVal = newVal;
    Also, if you set the value of a control through SetCtrlAttribute instead, there is no built in redraw of the control (which is what takes all the time). Using SetCtrlAttribute
    to set the value is very fast, but remember there isn't a built in redraw on the screen to display the new number.
    Best Regards,
    Chris Matthews
    Measurement Studio Support Manager

  • How do you change values after logging data to the citadel database (DSC)?

    How would one go about changing values that already exist in the citadel database.  So say I were logging a numeric value with a timestamp for 1 year and then wanted to change a few values for the month of June because my sensor wasn't working at that time.  How could I do this?  Is it possible without re-creating the whole database over?
    Thanks
    Matt

    mattyk wrote:
    Hey Ben,
    Thanks for the quick response.  I called NI and asked about this because this would be a big show stopper for me.  Their applications engineer said that the best way to change previous data would be to read in the trace that you want to change, modify it and save it as a new trace.  I am also looking into SQL querying.  I was able to connect to the citadel database by setting up a ODBC data source and using the database connectivity toolkit to query the database.  This worked.  Now I am trying to come up with a statement in SQL to change previously saved data.  I'll Keep you posted.
    Thanks
    Matt
    That reinforces my suspicions.
    I have an app running for about 8 years now that keeps a paper trail to enusr ethe cartdiges used in respirators (operated NIOSH National Institute of Occupational Safety and Health par teh CDC) that use DSC to enusre nobody can ever falsify those records. If they can be hacked I my customer and anyone using a respirator with a NIOSH sticker on the side of it, want to know.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • KP26 Change Values - Add Values demanding an integer?

    I am not an FICO consultant so please be patient with me if I am missing the obvious but I can't see why KP26 is working the way it is. When I go into 'Change Values' and use 'add value', I get the error message "Enter the number in a valid format (0 decimal places)" if I use a non integer value (e.g. 1.25). Furthermore when I do put in an interger the price is update by that amount; e.g. if I put in 1, my price (fixed) becomes 11.50 from a starting value of 10.50, but it also appears in the Plan Activity, Capacity & Variable Price columns?
    When I use the Revaluate option, the it works as expected and only the price (fixed) column is updated.
    I am using planning layout 1-201.
    Any help much appreciated.
    Regards.

    Patrick,
    When you are selecting the items to change are you selecting the entire line or just the specific fields you want to change?  I suspect you are selecting the entire line.  If that's the case, the system is trying to add the amount to all key fields selected, which includes the equivalence field.  The equivalence field can only hold integers, so you get the error message.
    If you want to add an amount just to your prices, then select the column or individual cell and then add the change amount to that field only.
    Thanks,

  • Change value vbap kwmeng

    Hi,
    I'm doing a document in TR. VA01 and in the exit USEREXIT_CHECK_VBAP i'm changing the value of the field vbap-kwmeng and i save the document, until here everything ok. but when i go to modify the document the value that shows up is the value entered before the change. i saw in vbap and the value kwmeng is what i want but the values lsmeng, kbmeng and klmeng are the old value. I have tried to change this values where i change the kwmeng but when i go to modify the document the value do not change and in vbap every values are changed except the lsmeng. How can i change the value in the creation of the document and when i go to the modify the document that value is the new and not the old.

    Hi!
    As the name of the user-exit sais, it is only for checking. This means you can't change the values, because it is not allowed in that user-exit. (in the background the sap program calls the user exit with USING parameters).
    You can change VBAK, VBAP values in the user exit MV45AFZZ. This is a program, you have to modify it is SE38. Requires SAP SSCR registration.
    Regards
    Tamá

  • Changing values in the web report

    Hi All,
    For ex. I have the following scenario.
    I have a web report in which I have a table item which is displaying the query result. The user wants to have a facility to change the Key Figs, if they want, directly on the report, it means when the user runs the web report and if he says something to be changed, he will directly change the value on the report and will click something like a button to save the changed value back in the infoprovider.
    Is this something possible?I came to know that we can do this sort of things using BSP but I am not sure how to make the table item to accept some changes and how to link to a BSP Program.
    Could some one please help me in this..
    Best Regards,
    Nene.

    Nene,
    If you want to know if it is possible , here's how...
    1. Use a BPS layout ...
    2. Create a BSP layout for the same
    option 2 :
    Create a BSP page which has a textbox for accepting the value and a submit button.
    On clicking the submit button , based on the parameters selected by the user , update the ODS. Remember you cannot update the cube because it does not have overwrite capability. However , declare the cube as an export datasource and then call the function module for the data source and push in the data for the same inside the BSP page.
    Hope this helps..
    Arun
    Assign points if useful
    Message was edited by: Arun Varadarajan

  • Attribute value is not valid

    After executing an RFC, I want to get a table of elements that is passed as the Output.
    As soon as I try to get the first element of the Output table, via xxxNode.getElementAt(index), I receive this error:
    Attribute value is not valid for attribute 'Flag_Stam_Orig' of model class 'it.prova.mctciat_rfc.checkprintstatus_sr00.Zmctbpm_Rfc_Output_Print_A'
    com.sap.tc.cm.base.model.BaseGenericModelClass.setAttributeValue(BaseGenericModelClass.java:327)
    com.sap.tc.cm.arfc2.model.ARFC2GenericModelClass.unmarshalFromJCoRecord(ARFC2GenericModelClass.java:287)
    com.sap.tc.cm.arfc2.model.ARFC2ModelObjectCollection.doUnMarshalAt(ARFC2ModelObjectCollection.java:97)
    com.sap.tc.cm.arfc2.model.ARFC2ModelObjectCollection.get(ARFC2ModelObjectCollection.java:120)
    com.sap.tc.webdynpro.progmodel.context.ModelElementList.getElement(ElementList.java:1726)
    com.sap.tc.webdynpro.progmodel.context.Node.getElementAtInternal(Node.java:387)
    com.sap.tc.webdynpro.progmodel.context.Node.getElementAt(Node.java:395)
    it.prova.mctciat_rfc_client_man.rfcclientmanagercomp.RFCClientManagerComp.callSpecifiedRFC(RFCClientManagerComp.java:1163)
    Before calling .getElementAt(index) I use xxxNode.size() to get the number of returned elements and then I execute a for loop in which I visit all the elements of node XXX.
    Can someone help me?
    Thank you,
    Pietro
    Edited by: pietro.m on Dec 3, 2010 2:10 PM

    I've solved the problem.
    At first the attribute generating the error was defined ABAP-side as a custom domain based on CHAR (1) type that allowed only two possible values: "O" or "X". But the ABAP function returned only " " (empty space) or "X".
    So we tried to add "O" to the set of the legitimate values, but that did not solve the problem.
    Next we got rid of the custom type and custom domain and we defined the parameter as a simple CHAR (1).
    That made the problem disappear and, best of all, I can't still figure why. Anyway, the problem is solved and that is all that matters now.
    *I'm sorry to say this in a SAP forum, but SAP's approach to type checking sucks really hard.*
    It is not possible that the ABAP side does not check types and the Java side raises these kind of errors (and, please note that it is not allowed to change a model type in Java).
    Anyway, thank you Nizamudeen for helping me.
    Edited by: pietro.m on Dec 7, 2010 9:41 AM

Maybe you are looking for

  • Problems with time characteristics after migration to BI 7.0

    Hi, Our company migrated from BW 3.1 to BI 7.0 Netweaver 2004s recently. After the migration we have problems with various time characteristics like 0CALMONTH, 0CALQUARTER, etc. in the Query Designer. In the old BW3.1 Query Designer version we could

  • Captivate 5 won't open after clicking icon, but shows up in the task manager as a "Process". Help??

    Can you please give me step by step help? I think I may have to uninstall and reinstall, but I want that to be a last effort. -Jake

  • Order by range? mysql Question

    hi all ! I need to know if this is possible in sql. I have a table with a Column called Hours, what I want to do its to count objects that are in a certain Hour range. Something like: Select Count(citas.Protocolo),citas.Hora,citas.Protocolo FROM cita

  • XI to MDM 5.5

    Hi, I need to send customers to MDM5.5 at an up coming customer. They will be sending out IDOCS and my understanding is that MDM reqires flat files. Is there any standard content available for MDM like there is for other SAP components that will hand

  • Selection tool not letting me resize any more

    The selection tool is not work like it use too... I can not resize any thing any more! not more points in corner to resize or distort... I'm sure it is a check box somewhere this I must have hit