How To BLank A Field With A Numeric Value

I am trying to write a formula as follows:
IF {CRD1.U_PriceOnPick} = "N" THEN
ELSE
{ODLN.DiscPrcnt}
My problem is I need for the field not to display if = "N" else I will print the numeric field of {ODLN.DiscPrcnt} . I am not sure how to code a formula that will meet my objective. When I try to save the formula, I receive an error of , "A String Is Expected Here". Any help would be appreciated it.
Thanks Jim Dyer

Cardinal rule of CR, the result of both the IF and ELSE parts must be of the same data type.
Try changing your formula to:
IF {CRD1.U_PriceOnPick} = "N" THEN
ELSE
totext({ODLN.DiscPrcnt});

Similar Messages

  • How to count ONLY fields with a specific value

    I modified the code below from the API reference to count combobox fields with a value of "MT" so I could total the number of a specific choice the form user input.
    var count = 0;
    for (var i=0; i<this.numFields; i++)
    var fname = this.getNthFieldName(i);
    if ( this.getField(fname).type == "combobox" && this.getField(fname).value == "MT" ) count++;
    this.getField("mTurb").value = count.value;
    Here's the problem: I tried to use a similar script, modified only slightly from this form, in another total field to tally a different choice made with comboboxes and the script continues to tally the first choice. An example of one of the modified versions of the script is below.
    var gcount = 0;
    for (var i=0; i<this.numFields; i++)
    var gname = this.getNthFieldName(i);
    if ( this.getField(gname).type == "combobox" && this.getField(gname).value == "MT" ) gcount++;
    this.getField("gPack").value = gcount.value;
    I suspect I'm just missing something painfully obvious to seasoned scripters, but I can't seem to figure it out and I need this script to be able to count the number of 9 different options in the comboboxes.

    OK, you can use a script like the following as the custom calculate script for the text fields that perform the counts:
    // Custom calculate script for text field
    (function () {
        // Declare and initialize variables
        var fn, s = "MT", count = 0;
        // Loop through the combo boxes
        for (var i = 1; i < 25; i++) {
            // Determine the current field name
            fn = "M" + util.printf("%02d", i));
            // See if the field value matches
            if (getField(fn).valueAsString === s) count++
        // Set this field value to the count
        event.value = count;
    Change the value of the "s" variable to match the item that you want to count. The first and last lines prevent the unnecessary creatio of global variables, which is good. It also makes it easy to transfer to a more general document-level routine, which would be event better, something like:
    // Custom calculate script for text field
    function getCBCount(s) {
        var fn, count = 0;
        // Loop through the combo boxes
        for (var i = 1; i < 25; i++) {
            // Determine the current field name
            fn = "M" + util.printf("%02d", i));
            // See if the field value matches
            if (getField(fn).valueAsString === s) count++
        // Set this field value to the count
        event.value = count;
    You would then call this function from the individual text boxes with the following custom calculate script:
    getCBCount("MT");
    and replace "MT" with the vlaue you want to count.

  • How to create a field with  1200 chars length

    Hi,
    Will anybody let me know how to create a field with length 1200 in a table.
    Regards,
    Madhavi

    Hi Madhvi,
    Other thing what you can do is
    1. First create a Table type.
         Goto SE11-> Dataelements ->Table type
         There on the next screen select Predefine radio button & there provide data type & size.
    2. Create a structure having a field typa of Table type created before. say that field is quant.
    Now in your program refer that structure to create an internal table & work area.
    Now if u append ur text to the field quant.
    try creating line type of size more that 255 if it works then fine other wise reduce it.
    Note:: This will be a deep structure.
    so first append value to the field quant,  the at the end of first record append valu to ur internal table.
    thanks
    Satyam

  • How to map Idoc fields with external file

    Hi All,
    How to map Idoc fields with external file.
    I want to check the settings where Idoc fields are mapped with external file.
    Thanks in advance.
    Regards,
    Govind.

    If you have configured a fileport where on trigger of IDOC you are creating the file, you can look at the message type documentation and get the offset values for each field in each segment

  • Auto populate blank text fields with n.a from a button or on print out.

    This seems straight forward but I cannot find an existing questions on this topic.
    I would like to add a form function that will fill any blank text fields with n.a. I do not want to use the default field value as I think it will cause confusion and cannot be applied for text fields formatted for dates. Is it possible to run a script that can do this? It would be OK if the action was triggered from a button or print activity after the rest of the form has been completed.
    Any thoughts would be appreciated.
    Thanks

    The question is whether your form is used only for filling out on screen (and not as a level 0 form, being printed out and filled out manually).
    If so, why not make the default value of the concerned fields to be "n/a" (or whatever you want to name them). That would relieve you from any validating before printing.
    Otherwise, you could maintain a list of field names which should get the n/a value if empty. This list would be an array.
    Your code in the willPrint event (if you want to have it reliably) would then look like this:
    for (var i = 0 ; i < nafieldarray.length ; i++) {
    if (this.getField(nafieldarray[i]).value == this.getField(nafieldarray[i]).defaultValue) {
    this.getField(nafieldarray[i].value = "n/a") ;
    HTH.
    Max Wyss.

  • How to know if implementation with a filter value exist for a BAdI in code?

    Hi all,
    Scenario:
    I created a BAdI. There will be a button on the UI to call its implementation(s); while if there is no implementation with specified filter value, this button needs to be hidden. Thus I need to know if the implementation exist before calling it.
    Question:
    In the ABAP code, how to get whether implementation with specified filter value exists for a BAdI?
    If it's possible, please help provide code.
    Thanks and regards,
    Said

    Problem solved:
    data: r_badi type ref to YOUR_BADI,
              badi_impl_num type i.
      get badi r_badi
        filters
          flt_name = fit_val.
      badi_impl_num = cl_badi_query=>number_of_implementations( badi = r_badi ).
      if badi_impl_num > 0.
        "there are badi implementation(s)
      endif.

  • Form field with comma delimited value list to cfc

    I have a form that passes a field to an action page with a
    comma delimited value.
    For instance the field name is: Program_ID
    value for program_ID is: 31, 32
    I am able to treat this variable as a list and check its
    length, and loop over the list prior to passing it to a cfc using
    the attached code:
    When I try and pass the variable as a string to a cfc and
    invoke a query, cf no longer recognizes my var as a list.
    Therefore the code attached does not function...
    Is there a specific var type that will pass through as a list
    and allow me to run the code block attached?
    thanks
    Craig

    Ok answered my own question.. Here is the answer for those
    who are interested...
    initialize var for cfc in cfinvoke statement
    <cfinvokeargument name="Program_ID"
    value="#Form.Program_ID#">
    pass argument to cfc as a string
    <cfargument name="Program_ID" type="string"
    required="true">
    use listqualify to parse list in cfc and set new var
    <cfset selectedProgramID =
    ListQualify(Program_ID,"'",",","CHAR")>
    use the new var in the following statement in sql code:
    ((Program_ID) IN (#PreserveSingleQuotes(selectedProgramID)#))
    The following code handles a form field with a single value
    or a comma delimited value.

  • How to make a field with inserted field's values editable?

    Experts, please help!!
    I have a form with 2 views.
    View 1 has a field named "Name". View 2 has a field named "Notice"
    On view 2, I set up the default value for "Notice" as  Concat ( Name, " has enrolled this year")
    The form data will be submitted to sharepoint library.
    I tried to edit "Notice" field on view 2 and submitted it to the library, but when I opened it I didn't see the changes I made.
    Is there any way to make the field "notice" Editable and being able to save the chaanges on View 2?
    I know if I set up the value for notice just by text string without inserted value, it will capture my changes but that is not what I want.
    Please help, thanks.
    yuhong xiao

    Hi,
    According to your description, you might want that "Notice" field has a default value when form is created and users can be able to change the value of that
    field.
    As a workaround, you can add an action rule in “Name” field via InfoPath to fill the default value in “Notice” field only when “Name” field is not blank and “Notice”
    field is blank.
    Settings of the rule are as below, you can modify it based on your need:
    Here is a link about how to add an action rule in InfoPath form, you can use it as a reference:
    https://support.office.microsoft.com/en-us/article/Add-rules-for-performing-other-actions-5322d726-b787-4e5f-8d37-ba6db68b451d?CorrelationId=8a64c12f-aa60-4d90-b1f9-a44fcc4e74b5&ui=en-US&rs=en-US&ad=US
    Best regards
    Patrick Liang
    TechNet Community Support

  • How to populate 2 screen-fields with one [ON VALUE-REQUEST FOR input] evnt?

    I have a selection screen with 2 text inputs - input1, input2.
    For the first one I have an "AT SELECTION-SCREEN ON VALUE-REQUEST FOR input1" event.
    I successfully get a value there and that is set to the screen field. But I also want input2 to be automatically populated with a value corresponding to the selected input1 (eg. input1=ID, input2=Name).
    I'm able to set input2 ABAP variable but not the screen-element.
    (I guess that ON VALUE-REQUEST doesn't fire any events for screen fields update, because if I press ENTER after using my search-help, then input2 is set with the right value)
    How to solve the problem?

    Hi Ramchander,
    Actually I used FM F4IF_FIELD_VALUE_REQUEST which doesn't have mapping parameters.
    But after your advice I looked through F4IF_INT_TABLE_VALUES_REQUEST and found that it's
    DYNP_VALUES_UPDATE FM that solves my task.
    Thanks!

  • How to get two fields with same tech name in LIS Extractors?

    Hi Experts,
    I need "ERDAT" field from two structures (QMSM & QMFE) in 2LIS_18_IOTASK extractor.
    In LBWE first I moved ERDAT from QMSM. When I moved ERDAT from QMFE it gives an error:
    "Field with same technical name is already available in the Extract Structure".
    I don't want to create Append Structure as we need to write User exit.
    Can any one tell me how to get this field added in the extractor from QMSM and QMFE?
    Thanks for your help.
    Regards,
    Sree

    this is not possible as the all those fields are put in one structure. per definition you can't put the same field name twice in a structure, table in the data dictionary...
    hence, you really need to use an append and fill via user exit
    M.

  • How to fill a field with after changing another field in a multi form?

    Hi,
    I have multi occurence form in which multiple record are showeds and/or added.
    One field is a dropdown field, after filling this field (selecting a value in the dropdown), another field needs to filled with the selected value.
    My problem is that only the first occurence is filled with the value of the selected dropdown, even when filling the dropdown field in one of the other occurences.
    I tried point to the other occurences but this was not succesfull
    See script
    So when a sparepart is selected from the dropdown sparepart, the field defectpart must be filled the selected sparepart, when I have multi forms (occurences) only the first occurence defect part gets filled with the selected parts, even when a sparepart from another occurence is selected.
    data.p1.spare_parts.spare_parts::change: - (JavaScript, client) -
    p1.spare_parts.DefectPart.rawValue =  xfa.event.newText;
    Can anyone help to solve this problem
    Thanks
    Christophe Van Mechelen

    hi,
    Your code is right, i dont know why its not working,
    try this,
    dropdown field in change event,
    var c = xfa.host.newtext
    textfield1.rawValue = c;
    (or)
    textfield1.rawValue = xfa.event.newText;
    by
    Parthi

  • How to hide the fields with labels when page re-rendering

    Hi Gurus,
    Please help me to hide the fields with labels when page is re-rendered.
    I have written a on load : before process also.
    But it is not working
    Thanks in advance
    kavitha L

    Hi jari and Bruce,
    Thanks for your reply. I am sorry that, i am not clear
    I have a javascript like
    function showcase()
       var ctry = document.getElementById('P3_CHANNEL').value;
       if(ctry == 'Affiliate') {
        $x_Hide('P3_PUBLLICATION');
        $x_Hide('P3_PUBLLICATION_label');
        $x_Hide('P3_CIRCULATION');
        $x_Hide('P3_CIRCULATION_label');
        $x_Hide('P3_MEDIA_CPM');
        $x_Hide('P3_MEDIA_CPM_label');
        $x_Hide('P3_RATE_CARD');
        $x_Hide('P3_RATE_CARD_label');
        $x_Hide('P3_DISCOUNT');
        $x_Hide('P3_DISCOUNT_label');
        $x_Hide('P3_CTYPE');
        $x_Hide('P3_CTYPE_label');
        $x_Hide('P3_DAREA');
        $x_Hide('P3_DAREA_label');
        $x_Hide('P3_CREATIVE');
        $x_Hide('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Hide('P3_SIZE');
        $x_Hide('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'Direct Mail')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Show('P3_CREATIVE');
        $x_Show('P3_CREATIVE_label');
        $x_Show('P3_COLOR_TONE');
        $x_Show('P3_COLOR_TONE_label');
        $x_Show('P3_SIZE');
        $x_Show('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'E-Mail')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Show('P3_CREATIVE');
        $x_Show('P3_CREATIVE_label');
        $x_Show('P3_COLOR_TONE');
        $x_Show('P3_COLOR_TONE_label');
        $x_Hide('P3_SIZE');
        $x_Hide('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if((ctry == 'Online') || (ctry == 'PPC'))
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Hide('P3_CTYPE');
        $x_Hide('P3_CTYPE_label');
        $x_Hide('P3_DAREA');
        $x_Hide('P3_DAREA_label');
        $x_Hide('P3_CREATIVE');
        $x_Hide('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Hide('P3_SIZE');
        $x_Hide('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'Outdoor')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Hide('P3_CTYPE');
        $x_Hide('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Show('P3_CREATIVE');
        $x_Show('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Hide('P3_SIZE');
        $x_Hide('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'PR')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Hide('P3_CTYPE');
        $x_Hide('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Hide('P3_CREATIVE');
        $x_Hide('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Hide('P3_SIZE');
        $x_Hide('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'Radio')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Hide('P3_CREATIVE');
        $x_Hide('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Show('P3_SIZE');
        $x_Show('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'TV')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Show('P3_CREATIVE');
        $x_Show('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Show('P3_SIZE');
        $x_Show('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'A')
        { $x_Show('P3_POSITION');
        $x_Show('P3_POSITION_label');
       $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Show('P3_CREATIVE');
        $x_Show('P3_CREATIVE_label');
        $x_Show('P3_COLOR_TONE');
        $x_Show('P3_COLOR_TONE_label');
        $x_Show('P3_SIZE');
        $x_Show('P3_SIZE_label');
        html_ShowItemRow('P3_ISSUE_DT');
      else if(ctry == 'Print')
       $x_Show('P3_POSITION');
        $x_Show('P3_POSITION_label');
       $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Show('P3_CREATIVE');
        $x_Show('P3_CREATIVE_label');
        $x_Show('P3_COLOR_TONE');
        $x_Show('P3_COLOR_TONE_label');
        $x_Show('P3_SIZE');
        $x_Show('P3_SIZE_label');
        html_ShowItemRow('P3_ISSUE_DT');
       doSubmit('CREATE');
    function showcase12()
       var ctry = document.getElementById('P3_CHANNEL').value;
       if(ctry == 'Affiliate') {
        $x_Hide('P3_PUBLLICATION');
        $x_Hide('P3_PUBLLICATION_label');
        $x_Hide('P3_CIRCULATION');
        $x_Hide('P3_CIRCULATION_label');
        $x_Hide('P3_MEDIA_CPM');
        $x_Hide('P3_MEDIA_CPM_label');
        $x_Hide('P3_RATE_CARD');
        $x_Hide('P3_RATE_CARD_label');
        $x_Hide('P3_DISCOUNT');
        $x_Hide('P3_DISCOUNT_label');
        $x_Hide('P3_CTYPE');
        $x_Hide('P3_CTYPE_label');
        $x_Hide('P3_DAREA');
        $x_Hide('P3_DAREA_label');
        $x_Hide('P3_CREATIVE');
        $x_Hide('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Hide('P3_SIZE');
        $x_Hide('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'Direct Mail')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Show('P3_CREATIVE');
        $x_Show('P3_CREATIVE_label');
        $x_Show('P3_COLOR_TONE');
        $x_Show('P3_COLOR_TONE_label');
        $x_Show('P3_SIZE');
        $x_Show('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'E-Mail')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Show('P3_CREATIVE');
        $x_Show('P3_CREATIVE_label');
        $x_Show('P3_COLOR_TONE');
        $x_Show('P3_COLOR_TONE_label');
        $x_Hide('P3_SIZE');
        $x_Hide('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'Event')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Hide('P3_CREATIVE');
        $x_Hide('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Hide('P3_SIZE');
        $x_Hide('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'Other')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Show('P3_CREATIVE');
        $x_Show('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Hide('P3_SIZE');
        $x_Hide('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT'); 
    else if((ctry == 'Online') || (ctry == 'PPC'))
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Hide('P3_CTYPE');
        $x_Hide('P3_CTYPE_label');
        $x_Hide('P3_DAREA');
        $x_Hide('P3_DAREA_label');
        $x_Hide('P3_CREATIVE');
        $x_Hide('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Hide('P3_SIZE');
        $x_Hide('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'Outdoor')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Hide('P3_CTYPE');
        $x_Hide('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Show('P3_CREATIVE');
        $x_Show('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Hide('P3_SIZE');
        $x_Hide('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'PR')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Hide('P3_CTYPE');
        $x_Hide('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Hide('P3_CREATIVE');
        $x_Hide('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Hide('P3_SIZE');
        $x_Hide('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'Radio')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Hide('P3_CREATIVE');
        $x_Hide('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Show('P3_SIZE');
        $x_Show('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'TV')
        { $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Show('P3_CREATIVE');
        $x_Show('P3_CREATIVE_label');
        $x_Hide('P3_COLOR_TONE');
        $x_Hide('P3_COLOR_TONE_label');
        $x_Show('P3_SIZE');
        $x_Show('P3_SIZE_label');
        $x_Hide('P3_POSITION');
        $x_Hide('P3_POSITION_label');
       html_HideItemRow('P3_ISSUE_DT');
    else if(ctry == 'A')
        { $x_Show('P3_POSITION');
        $x_Show('P3_POSITION_label');
       $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Show('P3_CREATIVE');
        $x_Show('P3_CREATIVE_label');
        $x_Show('P3_COLOR_TONE');
        $x_Show('P3_COLOR_TONE_label');
        $x_Show('P3_SIZE');
        $x_Show('P3_SIZE_label');
        html_ShowItemRow('P3_ISSUE_DT');
      else if(ctry == 'Print')
       $x_Show('P3_POSITION');
        $x_Show('P3_POSITION_label');
       $x_Show('P3_PUBLLICATION');
        $x_Show('P3_PUBLLICATION_label');
        $x_Show('P3_CIRCULATION');
        $x_Show('P3_CIRCULATION_label');
        $x_Show('P3_MEDIA_CPM');
        $x_Show('P3_MEDIA_CPM_label');
        $x_Show('P3_RATE_CARD');
        $x_Show('P3_RATE_CARD_label');
        $x_Show('P3_DISCOUNT');
        $x_Show('P3_DISCOUNT_label');
        $x_Show('P3_CTYPE');
        $x_Show('P3_CTYPE_label');
        $x_Show('P3_DAREA');
        $x_Show('P3_DAREA_label');
        $x_Show('P3_CREATIVE');
        $x_Show('P3_CREATIVE_label');
        $x_Show('P3_COLOR_TONE');
        $x_Show('P3_COLOR_TONE_label');
        $x_Show('P3_SIZE');
        $x_Show('P3_SIZE_label');
        html_ShowItemRow('P3_ISSUE_DT');
    }This script i am calling on, onchange() for the select list item P3_CHANNEL and it is working fine.
    But i have a create button and cancel button.
    After filling the details in the required columns, when i click the create button, if any validation errors are there.. the page is re-rendered. while doing that the hidden items are getting displayed back.
    Tried Solutions:
    1. I created a same function once more and in the last added the doSubmit('CREATE') and called the script from the create button.
    At that time the hidden fields labels are getting displayed.
    2. I created a process On load before header To call this script on a condition :REQUEST = 'CREATE'
    Then also fruitless..
    I hope now it is clear....
    Please! Any suggestion are mostly appreciated.
    Thanks in advance
    Kavitha L

  • How to update TASK_hyperlink_address field with PSI?

    Simple question but hard to do.
    Can we have custom fields with html hyperlink?
    And why having fields read only ????

    Enterprise Custom Fields do not support Hyperlinks. You can use the HREF standard task field for this purpose.
    Gary Chefetz, MCITP, MCP, MVP msProjectExperts
    Project and Project ServerFAQs
    Project Server Help BLOG

  • How to fetch all fields with RFC_READ_TABLE ?

    I can use RFC_READ_TABLE to fetch specified fields with the TABLE parameter "FIELDS". If I want to fetch all fields of the table, I must specified each field name. However, I can not use "*" in FIELDS, and I can not left the table empty (Error will be generated).  Is there other method to fetch all fields ?
    language: VB.NET
    tblT = New TAB512Table
            tblTField = New RFC_DB_FLDTable
            tblTOption = New RFC_DB_OPTTable
            Dim stuTFieldRow As New RFC_DB_FLD
            Dim stuTOptionRow As New RFC_DB_OPT
            Sapproxy.Rfc_Read_Table("", "", strTN, 0, 0, tblT, tblTField, tblTOption)

    Hi:
    Do like this
    CALL FUNCTION 'RFC_READ_TABLE'
    EXPORTING
    query_table = Table
    delimiter = ''
    no_data = ''
    rowskips = 0
    rowcount = 0
    TABLES
    options = i_options
    fields = i_fields
    data = t_data.
    Regards
    Shashi

  • Field with a default value from another field

    I need to populate a field as the default value from another field that the user inputs. I've tried the scripting that I found from the below Topic in the Archived Forums, but I'm not able to make it work. I've tried numerous variations and still to no avail. I tried to make the scripting work in Acrobat 6 and then decided that maybe I needed to upgrade, so I'm now trying it in Acrobat 8 with no results. Can anyone help?
    Topic
    Acrobat 5 - field with default value of another field
    Ben PF - 03:31am Mar 23, 2007 Pacific
    How can I have a field date2 which has the default value of field date1, but which can be edited by the user if necessary without changing the value of date1.
    I've tried, but I just can't figure it out!
    Any help much appreciated.
    Ben
    | Back to Topic List | Bookmark | Subscribe
    To start a NEW discussion click on the Back to Topic List link and select Add Topic.
    If you are in an archive forum please go up to the main topic list (archives are read only).
    Messages
    2 messages. Displaying 1 through 2.
    First Previous Next Last Show All Messages
    Gene Dianoski - 5:22am Mar 23, 07 PST (#1 of 2)
    This, or some variation of this, should work:
    if(this.getField("date2").value == ""{
    this.getField("date2").value = this.getField("date1).value;
    | Bookmark back to top
    Ben PF - 6:49am Mar 23, 07 PST (#2 of 2)
    Thanks very much.
    I put it in at document level to start, but it didn't run the script automatically when date1 was first filled in, so I have put it in as a mouse exit action in date1 and it works a treat.
    Thanks for your help.
    Ben

    Okay forget what I posted above and lets start over. Go to your first field and under Properties -> Actions Tab -> Select Trigger -> On Blur Run A JavaScript.
    Put this:
    this.getField("myField2").value = event.target.value;
    Make sure that you replace ("myField2") with the actual name of your second field. I just tested this and it works for Acrobat version 6.
    I haven't been doing as much javascripting as I used to, so sometimes I too make some basic mistakes.

Maybe you are looking for

  • I have an IPad Air and a Lexmark Pro  P205 which is connected wireless to my HP Desktop. How can I get my Ipad to print from my Lexmark ?

    I have an Desk Tp HP. On necked wireless to a Lexmark Printer Pro P 205 .   Several months ago I also got an IPad Air and  would like to print from my Ipad .  Must  I buy an Air Print printer or is there a way I can use my Lexmark

  • How to view pictures sequentially?

    I have a Nokia E71 phone and would like to know how to view pictures in a folder one after the other (that is, without having to press the back button). it seems like the built-in app won't do that. I'd also like the similar capability with video fil

  • IPod-to-Computer Problems

    Hello, I have a friend who's 5th Gen iPod Video is not being recognized on her computer at all. She's on a PC, and has restarted the computer, which is all i can think of [ usually works for me ], so i'm turing to the pros. Please Help! iBook G3 Snow

  • Usage of other region attributes  in our current region

    Hi, Is it possible to use the attributes of other region in our current region in which both the regions lie under the same path (oracle/apps/ap/oie/entry/summary/webui) through personalization. If soo,plz can u suggest how to do it.

  • Video Folder in FMS 3?

    I want to send some flv video files with FMS 3 and I need access the video through rtmp from Flssh file. My question is which folder I will save the flash videos in FMS 3 and how to know the RTMP address to access the vodeo files. Thanks a lot Mark