DRM questions on validation

Q1.We know that we can restrict the number of character in a name i,e name length in DRM but how to avoid spaces in this name length in start or end.
Q2.How to incorporate a unique numeric code value for a given member name for example, Asset=1,Country=2,cpu=3,Spare=45.
Q3.How to restrict special character entry in DRM @,$,%,^
Q4.How to restrict special value names entry like ALL,ADD,CALC,FLOATetc.
Q5. How to restrict spaces in a name length character field.
Q6.How to prefix all node with SS or TT.
Q7. Give indicator to specify internal value or external value.

Hi,
A1- Check it with this - Note- The third parameter of the Equals condition is a space and so before you save the formula make sure to Uncheck the "Remove Spaces" check-box
If(Or(
Equals(String,SubString(Abbrev(),1,1), ),
Equals(String,SubString(Abbrev(),Length(Abbrev()),1), )
),False,True)
A4- I think you have this answered in another post of yours.
A6- There is no automatic way to generate those prefixes for you within DRM, however you cant put in a validation to prompt for a specific prefix when user tries to add a node. See if it helps.
A7- The best way to do it. is to have prefixes specific to hierarchy and then create nodes only with those prefixes like i mentioned in A6
Thanks
Denzz

Similar Messages

  • New to the product - question about validating multiple fields as a group

    I have a static form that I'm building from a word document.  Part of that form requires a person to fill any 3 out 5 text fields.
    Since it looks like scripts are applied on a field by field basis, is it possible to have a script that encompasses multiple fields? 
    Would any script need to be applied to each field in turn?
    Assuming the answer to question 1 is a yes, how would you script it to require x number of fields out of a total of y to have some sort of content in order to validate?
    I'm pretty familiar with JavaScript and am looking at the Scripting reference guides but was hoping for a helping hand to get me there quicker as I'm in a bit of a time crunch - doing 18 forms with validation and database connectivity by January 15 certainly qualifies in my book.
    I would assume you'd do something like this but am unsure of the syntax...
    Get values of each field
    Set a valid counter variable for the number of fields with content
    If field 1 is not empty, increment the valid counter
    (rinse and repeat)
    if the valid counter is less than 3 throw an error message
    Many thanks in advance for any help offiered

    1). Yes, scripting within Livecycle can be for a single field or even static text, images and other artifacts within the PDF. Really anything, within Adobe's reason, when it comes to scripting.
    2). It depends on what you want to do. Things like field validations, calculations and other instances where fields are tied togther really dictate how the script runs.
    3). Fields that have calculations or validations with them work in the same, I believe. So for example I have a PDF that I made that is an Excel-type sheet that contains a few hundred cells and every single one has some type of validation or calculation associated with it. I generally run the calculations/validations from the user inputting the data and then after that the script runs, but again, it really dpeneds on what you are doing and with what, so answering some of your questions are a bit difficult.
    Javascrip/Formcalc are wonderful tools within PDF, but don't forget the Action Builder (Tools -Action Builder). It is a set of preloaded actions that are turn-key. Just select the cells that will have the action and select the result you want from the preloaded list of actions, using those actions can get you very far, and most of all; they are quick to implement without researching code. So for example, you could use the Action Builder to create an action that checks certain fields and if they are null to return a 1 value to a specific numericField (these could be hidden). Then have a "total" numericField (this would be your counter) that adds all of those fields with the 1 in it. Then create another Action Builder for that "total" numericField and if it is less than 3, display a message box that is a warning.

  • TopLink - Best Practice Question - Object Validation

    We are fairly new to TopLink and have a question about doing object validation. We would like perform some validation on our objects that are about to be persisted to the DB. Since TopLink will persist all objects that are reachable from the ojects that are registered (I think) we would like to send a message to each of these objects (validate) before they are persisted. If the object validation fails, we will throw an exception (and the objects will not be persisted), hopefully such that the exception can be received by the client. Has anybody done anything similar to this before, or is there a better way of approaching this?
    TIA for any help.

    Are you using EJBs?
    If so, there are a couple of options that may work better for you.
    1. You could use the ejbStore method for your validation and throw the exception in there. You should be able to get the exception on the client side, but it may be wrapped in several layers.
    2. For more complex validation, you may want to use a session bean to control the validation process. It can interact with your entity beans and provide feedback about why validation fails.

  • Oracle + Unix question , Error validation for SQL statements in co process

    Hi,
    If I use co process in a shell script , what is the best way to do the error validation of the execution of any sql statements . I was trying to change the following code to make use of co process concept. When I tried echo $? after the execution of a "wrong statements"
    it is still giving Zero output ( meaning success)
    <<<<<<<<<<<<<<<<<<<<<<<<<<<
    cat ${CFG_DIR}/srs_indx.lst | egrep -v '^#' | egrep -v '^[    ]*$' | while read x
    do
    echo " Processing values :: pre $pre tbl $tbl indx $indx tblspc $tblspc cols $cols param $param" >> ${LOGS_DIR}/srs_indx.log
    sqlplus ${BIZSTG} << EOT >> ${LOGS_DIR}/srs_indx.log
    set verify on timing on term on echo on feedback on serveroutput on
    WHENEVER SQLERROR CONTINUE
    drop index $indx;
    WHENEVER SQLERROR EXIT FAILURE
    alter session set query_rewrite_enabled = true;
    create $pre index $indx on $tbl ($cols)
    tablespace $tblspc
    $param;
    exit
    EOT
    RC=$?
    if ( test $RC -ne 0 )
    then
         ERR_MSG="ERROR in creating index $indx for table $tbl from srs_indx.ksh of $ENVIR : $APP by `whoami`@`hostname` on `date` "
         echo $ERR_MSG >> ${LOGS_DIR}/srs_indx.log
         process_warning ${LOGS_DIR}/srs_indx.log
         exitstat=1
    else
         echo "$indx created at `date`" >> ${LOGS_DIR}/srs_indx.log
    fi
    done
    >>>>>>>>>>>>>>>>>>>>
    Any help will be appreciated .
    with thanks and regards
    Ranjeesh K R

    Hi,
    Thanks for the response, I guess people misunderstood my question .
    My question was about "error handling in case of CO PROCESS". For those who don't know about this, in case CO PROCESS you just need to login once to Oracle. In my above code It is logging in & out for each entry in the list. CO process statements may look Similar to SQL statements in pro*C. In PRO*C we use EXEC, but here print -p statements..
    a sample is given for those who are new to co process.
    sqlplus -s /nolog |& # Open a pipe to SQL*Plus
    print -p -- 'connect user/password@instance'
    print -p -- 'set feed off pause off pages 0 head off veri off line 500'
    print -p -- 'set term off time off'
    print -p -- "set sqlprompt ''"
    print -p -- "select sysdate from dual;"
    read -p SYSDATE
    print -p -- "select user from dual;"
    read -p USER
    print -p -- "select global_name from global_name;"
    read -p GLOBAL_NAME
    print -p -- exit
    echo SYSDATE: $SYSDATE
    echo USER: $USER
    echo GLOBAL_NAME: $GLOBAL_NAME
    But I got stuck during error handling of these SQL statements, especially the $? / $* returns 0 even after an erroneus execution.
    Regards

  • DRM Questions

    I have a few questions on iTunes purchased media and the DRM on them. I have purchased quite a bit of music and videos and want the freedom to use them how I please. How do I remove the annoying AAC encoding without having to buy some ridiculous third-party software?
    I read something about iTunes Plus; can I download everything I have again so it can be DRM-free? I feel it's really obnoxious that I buy these files (which are just digital so Apple makes crazy profit already) and then I have to go through additional steps to just use it how I please.
    How long before the "best" option is to lease an iPod or iPad, or rent the same files we're purchasing now.

    Surely "AAC encoding" and "DRM" are two separate things!
    AAC encoding is the format (or filetype) in which the file has been "made" and it's proprietary to Apple. If you want songs that you can put on a non-Apple mp3 player, then you should buy your music in mp3 format. Many other online music sellers sell the music in mp3 format, try one of them.
    However, the same restrictions about redistributing or giving your music to someone else (as mentioned in other posts in this thread) still apply.
    DRM is/was the "copy protection" which prevented people from making copies of the music. So the same piece of music could be in AAC with _or without_ DRM, or in mp3 with _or without_ DRM.
    Phil
    P.S. Before anyone suggests that the point I made above, namely: "if you want songs that you can put on a non-Apple mp3 player, then you should buy your music in mp3 format" is some sort of infringment of copyright - no it's not. One day my iPod will fail.I may then choose to buy a different brand of "mp3" player. Note that it's an mp3 player, which will play mp3s, but not necessarily AAC files.

  • Question about validating xml against schema

    Hi,
    I am new to JAXP. I try to validating a xml against a schema. I wrote following code:
    SAXParserFactory spf = SAXParserFactory.newInstance();
    spf.setNamespace(true);
    spf.setValidating(true);
    SAXParser sp = spf.newSAXParser();
    sp.setProperty("http://java.sun.com/xml/properties/jaxp/schemaLanguage",
    "http://www.w3.org/2001/XMLSchema");
    sp.setProperty("http://java.sun.com/xml/properties/jaxp/schemaSource",
    "mySchema.xsd") ;
    sp.parse(<XML Document>, <ContentHandler);
    but when compile, it has error: can't resolve ""http://java.sun.com/xml/properties/jaxp/schemaLanguage", and
    "http://java.sun.com/xml/properties/jaxp/schemaSource".
    It seems it didn't support above two property.
    I saw some code in forum is:
    fact.setFeature("http://xml.org/sax/features/validation", true);
    fact.setFeature("http://apache.org/xml/features/validation/schema",true);
    fact.setFeature("http://apache.org/xml/features/validation/schema-full-checking", true);
    SAXParser sp = fact.newSAXParser();
    sp.setProperty("http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation",schemas);
    Why sun tutorial use property:http://java.sun.com/xml/properties/jaxp/schemaLanguage
    and someone use:http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation
    where to get information about setting properties for SAXParserFactory?
    Thanks

    In the past, ColdFusion's XML validation mechanism seems to have had issues with schemas that contain imports, e.g., http://forums.adobe.com/message/155906. Have these issues still not been resolved?
    Do you not think that perhaps you're answering your own question here?
    I don't see an issue about this on the bug tracker.  It might be an idea if you can get a simple, stand-alone repro case together and raise an issue (and post the reference back here and against that other thread so people know to vote for it).  If you post the repro case here too, it would be helpful.
    Adam

  • During DRM Design - what validation/verifications have you created?

    I am trying to predict the kind of verifications and validation tests that I would eventually create during DRM design?
    What are the typical validations and verifications that are most common? I just need a high level overview. Basically, what do the really do?

    hey bud
    They vary from company to company because they're usually determined by the business processes of that particular company. Validations are performed in real-time (in the example below: if you create an account with more than 10 or less than 5 characters, the system bombs out at that time), Verifications are performed in batch mode on demand by you Adi.
    Examples :
    Scenario: * Account names cannot be more than 10 or less than 5 characters
    Solution: Create a VALIDATION to find the PropLength: minimum 5 & max 10, OTHERWISE IT FAILS.
    Scenario: * you want to flag all parents with only one child.
    Solution: Create a VERIFICATION to check stranded parents etc..
    deep

  • No More DRM Question

    I saw the announcement today that all new music purchased in iTunes will not have DRM... Is there any way to re-download all of my existing purchases without the DRM on it? We have 2 iPhones, 2 iPods (pre-iphone purchases that we keep in our vehicles) and 3 computers... It would be great to have all of my music available for all of the computers (instead of the limit of 5)...

    See the iTunes Plus Frequently Asked Questions (FAQ).

  • Forms question - Error validation

    Gurus,
    I have a question .. Please suggest me a suitable answer .. I am using forms 6i, in which i have created a data block (which isnt associated with a table or any procedure), in which i have 3 items, custno (customer number), custname (customer name), toknno (token no)..Its a multi record block (displaying 10 records at a time) ..
    Now when i enter value 1 in custno, ABC in custname, A1 in toknno items, and when i move to the next custno text item, if i once again enter 1 in the custno text item, immediately it should display a message stating that "value has been entered already" ... it should happen only for custno ...
    One important thing is, i amnt saving changes to database .. I amnt marking the text item as a unique key (without marking as unique key in the property sheet), i should get the solution
    Can any guru help me
    Regards

    Hi Here is the code...
    May be it will be useful..
    When-New-Form-Instance
    DECLARE
                rg_name  VARCHAR2(40) := 'RG_EMP';
                rg_id    RecordGroup;
                gc_id    GroupColumn;
                errcode  NUMBER;
    BEGIN
                rg_id := Find_Group(rg_name);
                IF Id_Null(rg_id) THEN
                            rg_id := Create_Group(rg_name);
                            gc_id := Add_Group_Column(rg_id, 'EMP_NO', NUMBER_COLUMN);
                END IF;
                errcode := Populate_Group_With_Query( rg_id,'SELECT EMPNO FROM EMPLOYEE ORDER BY 1');
    END;    
    When-validate-Record
    DECLARE
                rg_name  VARCHAR2(40) := 'RG_EMP';
                rg_id    RecordGroup;
                gc_id    GroupColumn;
                errcode  NUMBER;
                the_rowcount NUMBER;
                V_VAL              NUMBER;
    BEGIN
               MESSAGE(' ');
                rg_id := Find_Group(rg_name);
                IF Id_Null(rg_id) THEN
                            --MESSAGE('rg not exist');MESSAGE(' ');
                            rg_id := Create_Group(rg_name);
                            gc_id := Add_Group_Column(rg_id, 'EMP_NO', NUMBER_COLUMN);
                            Add_Group_Row( rg_id, END_OF_GROUP );
                            Set_Group_Number_Cell( gc_id, 1, :EMPNO);
                ELSE
                            the_rowcount := Get_Group_Row_Count( rg_id );
                            --MESSAGE('record count'||the_rowcount);MESSAGE(' ');
                            IF the_rowcount > 0 THEN
                                        FOR I IN 1..the_rowcount
                                        LOOP
                                                    V_VAL := Get_Group_Number_Cell( 'RG_EMP.EMP_NO', I );
                                                    IF V_VAL = :PARAMETER.P_EMPNO THEN
                                                                MESSAGE('DUPLICATE RECORD');MESSAGE(' ');
                                                                RAISE FORM_TRIGGER_FAILURE;
                                                    END IF;
                                        END LOOP;     
                                        Add_Group_Row( rg_id, END_OF_GROUP );
                                        Set_Group_Number_Cell( 'RG_EMP.EMP_NO', the_rowcount+1 , :EMPNO);
                            ELSE   
                                        Add_Group_Row( rg_id, END_OF_GROUP );
                                        Set_Group_Number_Cell( gc_id, 1, :EMPNO);
                            END IF;
                END IF;
    END;     Check it.....
    One more thing is U need to check that Column data type .whenvever u r adding a column in Add group column check whether is it number_column and char_column like wise u should give and Same as in Get_group_number_cell and set_group_number_cell .

  • Simple File Adapter Question [ XSD validity  ? ]

    Imported an XSD into JD 101333. [ several large, known as good, used in Biztalk etc ]
    tried to make ESB inbound adapter
    spent ages trying to find out why it wouldn't accept it [ then I found a tiny tiny paragraph in the manual stating it must have a namespace ?  why , honestly who cares ]
    2nd ; still won't validate, now it says "Invalid Reference" .. Which log setting do I switch on in Jdeveloper to see why it's throwing a hissy fit ?
    Note : this is a known good set of XSDs and is in use production ; for it not to import into JD is a major drawback to the people I'm evaluating BPEL/ESB for... so please help.

    2nd problem found .
    The XSD elements use a ref:
    e.g.
    <xs:element ref="MyMessageType"/>
    the solution is to add
    targetNamespace="http://my.validators.com/msgs"
    xmlns:pv="http://my.validators.com/msgs"
    in the schemadef
    now replace the xs:element with
    <xs:element ref="pv:MyMessageType"/>
    In all honesty where is this written in the manuals ? It's a fair question.
    Added to that you have NO hint as to what is wrong ; I had to deconstruct about 3000 lines of XSD to find the problem. since if you use "Validate XML" in Jdeveloper it works just fine.
    Massive hole guys.

  • Question on validation

    Hi Guys,
    I have been trying out Adobe livecycle ES4 designer. I am wondering if it possible to reject the value that the user has input in a numeric/decimal field after it has fail a custom javascript validation. For example, the field has a boundary validation from 1 to 1000 and its original value of 10. The user changes the value of the field to 1111, the current behavior is such that there will be a  validation error message however the value 1111 is still "accepted", Is it  possible to revert the value to 10 once the new value fails the validation.  i have tried using xfa.event.prevText and xfa.event.newText, however at the validate event, both xfa.event.newText and xfa.event.prevText return empty,

    The best way to handle your situation is to store the value of your field in a variable when the user enters the field (ie before they change the value of the field).
    For instance, say your variable is 'storeValue', you would put in the enter event of your field, storeValue.value=this.rawValue.
    If your validation fails, you would script this.rawValue=storeValue.value;
    There are other scripting methods for undoing events that are more complex but can go a long way. Here is one by John Brinkman: http://blogs.adobe.com/formfeed/Samples/scopeSample1.pdf
    Kyle

  • More question on validating XML using schema on Xerces

    I have read previous posts. It seems that the XML file is validated before it is parsed to document.
    However, im my implementation, I need to modify the DOM tree, and i need to validate it when I append child to the current DOM tree. How can I achieve this?

    Dynamic voalidation is only supported by a DOM 3 Validation specification implementation.

  • QUESTION: XML validation against a schema - for beginners

    Hi folks,
    i am new to XML validation.
    i would like to find out how to validate an XML file using a schema given to me by a third part company.
    the business process requires that our company sends a weekly file which complies with their schema.
    in real-life, i am expecting some details of our file to fail against their schema.
    thus i would like to find a way validating the file localy before sending it to this third part.
    this validation would ideally allow me to highlight and identify which records are failing the validation, and enable me to strip those and send only those that are successfully checked.
    on the example below, i would expect to have the record for John Smith to be successful (country has an integer); while Queen Victoria would fail as it uses UK instead of an integer to identify the country.
    thus i would need to find a way validating this XML file, move the record of Queen Victoria to another file to be fixed and to allow, the record for John Smith to be sent out.
    if you guys could post some links to where i can find further information on this type of processing, i would be most grateful.
    Many thanks,
    Nicolas
    using an example from:
    [http://www.codeguru.com/csharp/csharp/cs_data/xml/article.php/c6737]
    XSD
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="address">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="name" type="xs:string"/>
    <xs:element name="street" type="xs:string"/>
    <xs:element name="city"type="xs:string"/>
    *<xs:element name="country"type="xs:integer"/>*
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:schema>XML
    <address>
    <name>John Smith</name>
    <street>109 Abbey Close</street>
    <city>Hayes</city>
    <country>98</country>
    </address>
    <address>
    <name>Queen Victoria</name>
    <street>1 Regent Street</street>
    <city>London</city>
    <country>UK</country>
    </address>Edited by: www.jegue.net on Jan 13, 2009 9:48 AM
    Edited by: www.jegue.net on Jan 13, 2009 9:49 AM

    i would need to find a way validating this XML file, move the record of Queen Victoria to another file to be fixed and to allow, the record for John Smith to be sent out.I don't think any automated tool or API available with such features. You should achieve this by some tricky logic/code.

  • Resetting Security questions without valid emergency email.

    Alright so I have sort of a loop issue, I need to use my security questions to buy things on my new iPhone, but I don't know my security questions, and to reset my security questions I need to use my emergency email address to do so, but that was when my email address was managed by my school , and since has been changed, that was my only other email to use (since then I now have 3 personal ones) and to reset that email you need to know your security questions. Now, how would I go about doing this? Is there a way to contact Apple to change this or should I ask the school's IT guy to create a temporary email address in the previous name?

    You need to ask Apple to reset your security questions. To do this, click here and pick a method; if that page doesn't list one for your country or you're unable to call, fill out and submit this form.
    (120543)

  • Additional question regarding validating numeric fields

    This is part of the code i obtained in order to check validation.
    //var reg = /^\d+$/; // checks whether input contains ONLY digits
    var reg = /\d+/; // checks whether input contains digits AND letters
    However, i found that both options checks only wether input contains letters.
    What is the function that checks if input contains only digits ?

    Hi,
    This is an example of where FormCalc has an advantage over JavaScript. There are built in functions in FormCalc for getting the maximum and minimum values.
    In the total mileage, you could set up two variables, one for Max and one for Min and then subtract them.
    var maxMiles = Max(mileage[*])
    var minMiles = Min(mileage[*])
    $ = maxMiles - minMiles
    This is based on the script being in the calculate event of the total field. Also it depends on how you have set up the table. If the rows have the same name: eg Row1[0], Row1[1], Row1[2],... Row1[30] and the mileage field is named the same in each row, then the script may look like:
    var maxMiles = Max(Row1[*].mileage[*])
    Hope that helps,
    Niall
    Assure Dynamics

Maybe you are looking for

  • Problem while testing a BAPI Web Service

    i face this problem in web service bapi when i am carrying out the test... so can anyone help me??? HTTP/1.1 500 Internal Server Error Set-Cookie: <value is hidden> content-type: text/xml; charset=utf-8 content-length: 803 sap-srt_id: 20080610/144609

  • Macbook Air screen reflection

    Hi everyone, This is probably a completely ridiculous question but i received my new MBA (also my first macbook) a few days ago and i noticed that when the display is off, at some angles the reflection in the screen is slightly distorted - as if in a

  • Excel 2003 problem with group policy

    When I manually install EMET Excel 2003 works. When Emet is installed via Group Policy Excel 2003 fails to open. Excel 2010 works whether EMET is installed locally or with Group Policy. Any ideas?

  • 2007 Jan 27th - UK - I need to add 3 more 750gb drives to my Mac Pro

    Hi Anyone have a good feeling for the best 3 750gb drives to add to my initial 500gb Hitachi HDS725050KLA360 that is fitted as standard. I have heard that Seagate barracudas have some problems. Any concrete benchmarks or actual users war stories woul

  • ODBC fails but only from ASP page (12154)

    I have a working Win2k/MDAC 2.6 box, that can connect perfectly to an Oracle 8.1.7 on another machine. I can TNS ping this host, I set up an ODBC DSN and I can connect from the Oracle ODBC Test program. I wrote a simple script (see below) to test the