PARM error (shows as mrap) with multiple selections, no error with single selection

Hello all,
I am new to Illustrator scripting this is my first script. I am getting a this error " Error 1200: an Illustrator error occurred: 1346458189 ('MRAP'): line 50" which is the line:
var next_board = doc.artboards.add([next_board_L, next_board_T, next_board_R, next_board_B]); 
It only occurs when I have multiple selections and never when I have only one selection. After a little research I have found the error is actually PARM, but I don't see any uninstantiated variables or other  issues that could be throwing this error. I am on a mac Illustrator CC. I would appreciate any help on the matter. Below is the full script.
#target Illustrator
// This script was made to take all selected objects
// Create a new arboard for all Selected objects
// At a user specified width and height then
// Scale the object to the artboard size and center
var doc = app.activeDocument;
var select = doc.selection;
if (select.length > 0) {
     var title = "Fit Selected Object(s) to Artboard(s)";
     var msg = "Enter the width and height of artboards (single number)";
     var board = Number(Window.prompt (msg, 0, title));
     for(var i = 0; i < select.length; i++) {
          var selectW = select[i].width;
          var selectH = select[i].height;
          if(selectH >= selectW) {
               if(board > selectH) {
                    scale = board/selectH*100;
          } else {
               scale = board/selectW*100;
          var boardIdx = doc.artboards.getActiveArtboardIndex();
          var boardSrc = doc.artboards[boardIdx];
          var boardSrc_L = boardSrc.artboardRect[0];
          var boardSrc_T = boardSrc.artboardRect[1];
          var boardSrc_R = board;
          var boardSrc_B = -board;
          var moveX = 10;
          var next_board_L = boardSrc_R + moveX; 
          var next_board_T = boardSrc_T; 
          var next_board_R = next_board_L + (boardSrc_R - boardSrc_L); 
          var next_board_B = boardSrc_B;
          var next_board = doc.artboards.add([next_board_L, next_board_T, next_board_R, next_board_B]); 
          select[i].resize(
              scale, //this is a percentage of current width 
              scale, //this is a percentage of current height 
              true, // changePositions 
              true, // changeFillPatterns 
              true, // changeFillGradients 
              true, // changeStrokePattern 
          var selPosX = select[i].left;
          var selPosY = select[i].top;
          var selBoardDiffX = next_board_L - selPosX;
          var selBoardDiffY = next_board_T - selPosY;
          var toCenter = 0;
         select[i].translate (
                   selBoardDiffX,
                   selBoardDiffY,
                   true,
                   true,
                   true,
                   true
         var boardH = next_board.artboardRect[2] - next_board.artboardRect[0];
          var boardW = next_board.artboardRect[3] - next_board.artboardRect[1];
         if( boardH > select[i].height ) {
              toCenter = (boardH-select[i].height)/2;
                  select[i].translate (
                            0,
                            -toCenter,
                            true,
                            true,
                            true,
                            true
         var NegSelectW = select[i].width * -1; //Must be a negative number
         if ( boardW < NegSelectW ) {
              toCenter = (boardW+select[i].width)/2;
                  select[i].translate (
                            -toCenter,
                            0,
                            true,
                            true,
                            true,
                            true

Ah I finally understand. I looked into that post a little more an started experimenting. I used the function posted to create my artboards. Its a lot easier if you can think
(x, y, width, height). So yes the issue was with my variable but not in the way I was thinking.
for those who need it here is the function posted in that thread
var newRect = function(x, y, width, height) { 
    var l = 0; 
    var t = 1; 
    var r = 2; 
    var b = 3; 
    var rect = []; 
    rect[l] = x; 
    rect[t] = -y; 
    rect[r] = width + x; 
    rect[b] = -(height - rect[t]); 
    return rect; 

Similar Messages

  • Show/hide based on Multiple selections in a select box

    In my http header I have the following code...
    it works great as long as only one value is selected:
    if you highlight the ARRAMO value the DUNS field appears...
    if you highlight anything else the DUNS field disappears...
    but if I highlight both ARRAMO and another field, I want the DUNS to SHOW and it DOESNT..
    how do I fix this?
    <script type="text/javascript" src="#WORKSPACE_IMAGES#jquery-1.3.2.min.js"></script>
    <script language="JavaScript" type="text/javascript">
    <!--
    htmldb_delete_message='"DELETE_CONFIRM_MSG"';
    //-->
    </script>
    <script type="text/javascript">
    $(document).ready(function(){
    $('#P1_DUNS_NUMBER').attr("disabled", true);
    $('label[for=P1_DUNS_NUMBER],#P1_DUNS_NUMBER').hide();
    $('#P1_APP_REQUESTED').change(function(){
    if($(this).val() == 'ARRAMO'){
    $('#P1_DUNS_NUMBER').attr("disabled", false);
    $('label[for=P1_DUNS_NUMBER],#P1_DUNS_NUMBER').show();
    }else{
    $('#P1_DUNS_NUMBER').attr("disabled", true);
    $('label[for=P1_DUNS_NUMBER],#P1_DUNS_NUMBER').hide();
    </script>

    Using LOV, you can have multiple selection.
    For this you can write code in the KEY-LISTVAL trigger.
    Create an LOV for store code.
    In the text-item of store_code (where you want mul. selection), you assign the LOV to that item.
    In key-listval trigger,
    You can have something like
    Declare
    m_val varchar2(1000);
    a boolean;
    Begin
    m_val := :store_code;
    a := show_lov('STORE_LOV');
    if a then
      If m_val is null then
         m_val := :store_code;
      else
          If instr(','||m_val||',' ,||','||:store_code||',') = 0   /*check whether store code already selected, to get excat string comma is concatenated*/
             m_val := m_val||','||:store_code;
          end if;
      end if;
    end if;
    :store_code := m_val;
    End;Note :To check for validation, additional coding is required...

  • HT201210 my iphone 3gs keeps showing the screen with the connect to itunes display, and I've restored it multiple times on different computers, but everytime it finishes restoring, it shows the display again and the computer says it needs to be restored.

    my iphone 3gs keeps showing the screen with the connect to itunes display, and I've restored it multiple times on different computers, but everytime it finishes restoring, it shows the display again and the computer says it needs to be restored. can anybody help me with this?

    it was saying error code 1, i tried the things it said but none of it worked. now it is not showing an error code at all, it just keeps saying it needs to be restored.

  • How to select value from list with multiple selections ?

    HI,
    i have a list with multiple selections where i show email address retrieved from database.
    what i want to do is to send the selected email address to the invoiceedit.jsp.
    please look at the following code which gives you the better idea.
    <td class='smalltext'><select name="email" size="3" multiple="multiple">
       <% 
       Connection conn = null;
       Statement stmt = null;
       Statement stmt_contactperson = null;
       Statement stmt_address = null;
       try{
          conn = getREConnection();
           stmt = conn.createStatement();
       ResultSet rs = null;
       rs = stmt.executeQuery("SELECT PROPERTYID, VALUE FROM PROPERTIES WHERE ENTITYID="+ g_strGroupID+" AND NAME = 'invoice_default_email'");
       int numofrows = 0;
       while(rs.next())
               %>
       <option value="<%= rs.getString("VALUE") %>" selected="selected"> <%= rs.getString("VALUE")  %> </option>
        <%
           }//end of while
          %>
         </select>
        <a href="invoiceedit.jsp?entityid=<%=g_strGroupID%>&add=1"><font color="#000000">Add</font></a>
         <a href="invoiceedit.jsp?entityid=<%=g_strGroupID%>&email_to="><font color="#000000"> Edit</font></a> </td>thanks

    Use a form button instead of a link so that you can send it as a request parameter to the server. In the server side just use HttpServletRequest#getParameterValues() to obtain all values for the given parameter name. If you really need a link rather than a button, then use Javascript to submit the form on click of the link.
    That said, your design is bad. Java code belongs in Java classes, not in JSP files. Database access logic belongs in a DAO class. Business and controlling logic belongs in a Servlet class. Only presentation logic belongs in the JSP file. Avoid scriptlets as much as possible and use JSP EL and/or JSTL instead.

  • Multiple selection in Query Panel. Operator Does not equal generates error.

    Hi,
    I'm using Jdeveloper 11.1.1.4 and creating Oracle Fusion Web Application with ADF Business Components.
    I want to use multiple selection on LOV in ADF Query Panel with Table, but I get the following error
    when I use operator "Does not equal":
    Error: Unsupported model type.
    SelectMany does not support a model of type class java.lang.Integer.
    A simple example:
    Schema: HR
    Generate default Business Components for tables Departments and Employees.
    Model:
    Create List of Values for EmployeesView(DepartmentId)
    List Data Source: DepartmentsView1
    List Attribute: DepartmentId
    Display Attributes: DepartmentName (UI Hints)
    Create View Criteria EmployeesByDepartmentVC for EmployeesView
    Criteria Item:
    Attribute: DepartmentId
    Operator: Equals
    Operand: Literal
    Select "Support Multiple Value Selection" (UI Hints)
    ViewController:
    Create blank JSF Page: showEmployees.jspx
    Drag EmployeesByDepartmentVC from Data Controls to showEmployees.jspx
    Create Query=>ADF Query Panel with Table
    Run application.
    Press Advanced button.
    Select operator "Does not equal" and department names "Administration;Marketing"
    Press Search
    Error: Unsupported model type.
    SelectMany does not support a model of type class java.lang.Integer.
    Note: it works fine with operator "Equals"
    Best,
    Kees.

    Hi,
    I was reading:
    http://www.oracle.com/technetwork/developer-tools/jdev/jdev-11gr2-nf-404365.html#bugs_fixed_in_11.1.2.2.0
    Bugs Fixed in 11.1.2.2.0
    Bug.No. 13508184
    unsupported model type error thrown for multi select view criteria
    I have tested the use case described in this thread with JDeveloper 11.1.2.2.0 but I still get the same error.
    when I use operator "Does not equal":
    Error: Unsupported model type.
    SelectMany does not support a model of type class java.lang.Integer.
    Is there anybody who can tell me more about this bug fix?
    Thanks,
    Kees.

  • Dynamic page with multiple select in where clause

    Hi,
    I have a dynamic page and in the where-clause, i have a bind variable. In a report i use for instance
    and rtrim((to_char(date_time5,'DAY'))) IN :v_day
    That works ok in a report. But it does not work in a dynamic page.
    what code is needed to work with a multiple select box on the customize screen for a dynamic page?
    Thanks.

    Hi.
    I have a dynamic page, with a bind variable :v_day. On the customization screen the user can select one or more days of the week, or all days. I use this also in a report and then it works ok. In the where clause i use:
    and rtrim((to_char(date_time,'DAY'))) IN :v_day
    Date_time is a tablecolumn (date).
    When i add this line in the select script from the dynamic page, i get error:
    : ORA-06550: line 1, column 2443:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    The symbol "(" was substituted for "" to continue.
    ORA-06550: line 1, column 2606:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    . ( ) , * @ % & - + / at mod rem <an exponent (**)> and or ||
    The symbol ")" was substituted for ";" to continue.
    ORA-06550: line 1, column 3236:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    The symbol (WWV-11230)
    Critical Error in wwerr_api_error.get_errors! SQL Error Message: ORA-06502: PL/SQL: numeric or value error: character string buffer too small (WWV-)
    Thanks.

  • Help With Multiple Selection

    I have a data template with several parameters. For one of the parameters I want to be able to select one, multiple or ALL values. At this time I can select one value and it runs fine. If I select more then one value, then I get an error that says: INVALID NUMBER
    I am not sure what I am doing wrong.
    Here is my data template:
    <dataTemplate name="ld_status" dataSourceRef="xmlpdemo">
         <parameters>
              <parameter name="p_ke" dataType="number"/>          <parameter name="p_beg_twn" dataType="number"/>
              <parameter name="p_td" dataType="character"/>
              <parameter name="p_beg_rng" dataType="number"/>
              <parameter name="p_rd" dataType="character"/>
              <parameter name="p_beg_section" dataType="number"/>
              <parameter name="p_end_twn" dataType="number"/>
              <parameter name="p_td2" dataType="character"/>
              <parameter name="p_end_rng" dataType="number"/>
              <parameter name="p_rd2" dataType="character"/>
              <parameter name="p_end_section" dataType="number"/>
              <parameter name="p_beg_parcel" dataType="number"/>
              <parameter name="p_end_parcel" dataType="number"/>
              <parameter name="p_beg_active" dataType="character"/>
              <parameter name="p_end_active" dataType="character"/>
         </parameters>
         <dataQuery>
              <sqlStatement name="Q1">
                   <![CDATA[select distinct
         l.quad o_quad
    ,     l.twp o_twp
    ,     l.rng o_rng
    ,     l.section o_section
    ,     l.county o_county
    ,     l.fund o_fund
    ,     l.parcel o_parcel
    ,     get_land#_display(l.quad,l.twp,l.rng,l.section,l.county,l.fund,l.parcel)
         o_display_land
    ,     get_cnty_desc(l.county) o_county_display
    ,     get_fund_desc(l.fund) o_fund_display
    ,     decode(l.active, 'A','Active', 'I','Inactive', ' ') o_active
    ,     l.surface o_surface
    ,     l.oil_gas o_oil_gas
    ,     l.mineral o_mineral
    ,     l.surface_open o_surface_open
    ,     l.oil_gas_open o_oil_gas_open
    ,     l.mineral_open o_mineral_open
    ,     t018.description o_class_description
    ,     t002.description o_ownership_description
    ,     l.leased o_leased
    ,     l.surface_text o_surface_text
    ,     l.oil_gas_text o_oil_gas_text
    ,     l.mineral_text o_mineral_text
    ,     l.comments o_comments
    ,     l.last_maint o_last_maint
    ,     l.surface_maint o_surface_maint
    ,     l.oil_gas_maint o_oil_gas_maint
    ,     l.mineral_maint o_mineral_maint
    ,     l.comment_maint o_comment_maint
    from     land_legal l
    ,     t018_land_classification t018
    ,     t002_ownership t002
    ,     statmast s
    ,       quad q
    where l.class = t018.code (+)
    and  l.ownership = t002.code (+)
    and l.parcel = 1
    and l.quad = s.quad
    and l.twp = s.twp
    and l.rng = s.rng
    and l.section = s.section
    and l.county = s.county
    and l.fund = s.fund
    and l.quad = q.quad
    and (to_char(l.twp,'000')||'-'||to_char(q.td)||'-'||to_char(l.rng,'000')
    ||'-'||to_char(q.rd)||'-'||to_char(l.section,'00')) >=
    (to_char(:p_beg_twn,'000')||'-'||to_char(:p_td)||'-'||to_char(:p_beg_rng,'000')||'-'||to_char(:p_rd)||'-'||to_char(:p_beg_section,'00'))
    and
    (to_char(l.twp,'000')||'-'||to_char(q.td)||'-'||to_char(l.rng,'000')
    ||'-'||to_char(q.rd)||'-'||to_char(l.section,'00')) <=
    (to_char(:p_end_twn,'000')||'-'||to_char(:p_td2)||'-'||to_char(:p_end_rng,'000')||'-'||to_char(:p_rd2)||'-'||to_char(:p_end_section,'00'))
    ]]>
              </sqlStatement>
              <sqlStatement name="Q2">
                   <![CDATA[select     l.quad d_quad
    ,     l.twp d_twp
    ,     l.rng d_rng
    ,     l.section d_section
    ,     l.county d_county
    ,     l.fund d_fund
    ,     l.parcel d_parcel
    ,     get_land#_display(l.quad,l.twp,l.rng,l.section,l.county,l.fund,l.parcel)
         d_display_land
    ,     get_cnty_desc(l.county) d_county_display
    ,     get_fund_desc(l.fund) d_fund_display
    ,     decode(l.active, 'A','Active', 'I','Inactive', ' ') d_active
    ,     l.surface d_surface
    ,     l.oil_gas d_oil_gas
    ,     l.mineral d_mineral
    ,     decode(l.active, 'A', l.surface, 0) d_act_surface
    ,     decode(l.active, 'A', l.oil_gas, 0) d_act_oil_gas
    ,     decode(l.active, 'A', l.mineral, 0) d_act_mineral
    ,     decode(l.active, 'I', l.surface, 0) d_ina_surface
    ,     decode(l.active, 'I', l.oil_gas, 0) d_ina_oil_gas
    ,     decode(l.active, 'I', l.mineral, 0) d_ina_mineral
    ,     decode(l.active, 'A', 1, 0) d_act_count
    ,     decode(l.active,'I',1, 0) d_ina_count
    ,     l.surface_open d_surface_open
    ,     l.oil_gas_open d_oil_gas_open
    ,     l.mineral_open d_mineral_open
    ,     t018.description d_class_description
    ,     t002.description d_ownership_description
    ,     l.leased d_leased
    ,     l.surface_text d_surface_text
    ,     l.oil_gas_text d_oil_gas_text
    ,     l.mineral_text d_mineral_text
    ,     l.comments d_comments
    ,     l.last_maint d_last_maint
    ,     l.surface_maint d_surface_maint
    ,     l.oil_gas_maint d_oil_gas_maint
    ,     l.mineral_maint d_mineral_maint
    ,     l.comment_maint d_comment_maint
    ,     s.ke d_test_ke
    ,     decode(s.stat_code, 5,'LEASE', 21,'APPLICATION', null) d_stat_desc
    ,     s.evtdate d_evtdate
    ,     ltrim(to_char(s.ke,'000')) || '-'
    ||     ltrim(to_char(s.lease#,'000000')) || '-'
    ||     ltrim(to_char(s.lse_code,'000')) || '-'
    ||     ltrim(to_char(s.lse_seq,'000')) d_kelease
    ,     s.rolodex# d_rolodex
    ,     s.appdate d_app_date
    ,     s.effdate d_effdate
    ,     decode(s.perpetual, 'Y','PERPETUAL', to_char(s.expdate,'yyyy-MM-dd')) d_expdate
    ,     s.aus aus
    ,     decode( s.stat_code, 5,get_t005_lease_desc(s.stat_code)
                   , 21,get_t005_lease_desc(s.stat_code), null) d_desc_5_21
    ,     s.amend# amend
    ,     get_rolodex_lname(s.rolodex#) d_lname
    from     land_legal l
    ,     statmast s
    ,     t018_land_classification t018
    ,     t002_ownership t002
    where     [b]s.ke = :p_ke
    and     l.parcel >= :p_beg_parcel
    and     l.parcel <= :p_end_parcel
    and     l.active >= :p_beg_active
    and l.active <= :p_end_active
    and     14 <> s.stat_code (+)
    and     l.class = t018.code (+)
    and     l.ownership = t002.code (+)
    and     l.parcel <> 1
    and     l.quad = s.quad (+)
    and     l.twp = s.twp (+)
    and     l.rng = s.rng (+)
    and     l.section = s.section (+)
    and     l.county = s.county (+)
    and     l.fund = s.fund (+)
    and     l.parcel = s.parcel (+)
    and     l.active = s.active (+)
    and l.quad = :o_quad
    and     l.twp = :o_twp
    and     l.rng = :o_rng
    and     l.section = :o_section
    and     l.county = :o_county
    and     l.fund = :o_fund]]>
              </sqlStatement>
         </dataQuery>
         <dataStructure>
              <group name="G_OWNERSHIP" source="Q1">
                   <element name="O_QUAD" value="O_QUAD"/>
                   <element name="O_TWP" value="O_TWP"/>
                   <element name="O_RNG" value="O_RNG"/>
                   <element name="O_SECTION" value="O_SECTION"/>
                   <element name="O_COUNTY" value="O_COUNTY"/>
                   <element name="O_FUND" value="O_FUND"/>
                   <element name="O_PARCEL" value="O_PARCEL"/>
                   <element name="O_DISPLAY_LAND" value="O_DISPLAY_LAND"/>
                   <element name="O_COUNTY_DISPLAY" value="O_COUNTY_DISPLAY"/>
                   <element name="O_FUND_DISPLAY" value="O_FUND_DISPLAY"/>
                   <element name="O_ACTIVE" value="O_ACTIVE"/>
                   <element name="O_SURFACE" value="O_SURFACE"/>
                   <element name="O_OIL_GAS" value="O_OIL_GAS"/>
                   <element name="O_MINERAL" value="O_MINERAL"/>
                   <element name="O_SURFACE_OPEN" value="O_SURFACE_OPEN"/>
                   <element name="O_OIL_GAS_OPEN" value="O_OIL_GAS_OPEN"/>
                   <element name="O_MINERAL_OPEN" value="O_MINERAL_OPEN"/>
                   <element name="O_CLASS_DESCRIPTION" value="O_CLASS_DESCRIPTION"/>
                   <element name="O_OWNERSHIP_DESCRIPTION" value="O_OWNERSHIP_DESCRIPTION"/>
                   <element name="O_LEASED" value="O_LEASED"/>
                   <element name="O_SURFACE_TEXT" value="O_SURFACE_TEXT"/>
                   <element name="O_OIL_GAS_TEXT" value="O_OIL_GAS_TEXT"/>
                   <element name="O_MINERAL_TEXT" value="O_MINERAL_TEXT"/>
                   <element name="O_COMMENTS" value="O_COMMENTS"/>
                   <element name="O_LAST_MAINT" value="O_LAST_MAINT"/>
                   <element name="O_SURFACE_MAINT" value="O_SURFACE_MAINT"/>
                   <element name="O_OIL_GAS_MAINT" value="O_OIL_GAS_MAINT"/>
                   <element name="O_MINERAL_MAINT" value="O_MINERAL_MAINT"/>
                   <element name="O_COMMENT_MAINT" value="O_COMMENT_MAINT"/>
                   <group name="G_DETAIL" source="Q2">
                        <element name="D_QUAD" value="D_QUAD"/>
                        <element name="D_TWP" value="D_TWP"/>
                        <element name="D_RNG" value="D_RNG"/>
                        <element name="D_SECTION" value="D_SECTION"/>
                        <element name="D_COUNTY" value="D_COUNTY"/>
                        <element name="D_FUND" value="D_FUND"/>
                        <element name="D_PARCEL" value="D_PARCEL"/>
                        <element name="D_DISPLAY_LAND" value="D_DISPLAY_LAND"/>
                        <element name="D_COUNTY_DISPLAY" value="D_COUNTY_DISPLAY"/>
                        <element name="D_FUND_DISPLAY" value="D_FUND_DISPLAY"/>
                        <element name="D_ACTIVE" value="D_ACTIVE"/>
                        <element name="D_SURFACE" value="D_SURFACE"/>
                        <element name="D_OIL_GAS" value="D_OIL_GAS"/>
                        <element name="D_MINERAL" value="D_MINERAL"/>
                        <element name="D_ACT_SURFACE" value="D_ACT_SURFACE"/>
                        <element name="D_ACT_OIL_GAS" value="D_ACT_OIL_GAS"/>
                        <element name="D_ACT_MINERAL" value="D_ACT_MINERAL"/>
                        <element name="D_INA_SURFACE" value="D_INA_SURFACE"/>
                        <element name="D_INA_OIL_GAS" value="D_INA_OIL_GAS"/>
                        <element name="D_INA_MINERAL" value="D_INA_MINERAL"/>
                        <element name="D_ACT_COUNT" value="D_ACT_COUNT"/>
                        <element name="D_INA_COUNT" value="D_INA_COUNT"/>
                        <element name="D_SURFACE_OPEN" value="D_SURFACE_OPEN"/>
                        <element name="D_OIL_GAS_OPEN" value="D_OIL_GAS_OPEN"/>
                        <element name="D_MINERAL_OPEN" value="D_MINERAL_OPEN"/>
                        <element name="D_CLASS_DESCRIPTION" value="D_CLASS_DESCRIPTION"/>
                        <element name="D_OWNERSHIP_DESCRIPTION" value="D_OWNERSHIP_DESCRIPTION"/>
                        <element name="D_LEASED" value="D_LEASED"/>
                        <element name="D_SURFACE_TEXT" value="D_SURFACE_TEXT"/>
                        <element name="D_OIL_GAS_TEXT" value="D_OIL_GAS_TEXT"/>
                        <element name="D_MINERAL_TEXT" value="D_MINERAL_TEXT"/>
                        <element name="D_COMMENTS" value="D_COMMENTS"/>
                        <element name="D_LAST_MAINT" value="D_LAST_MAINT"/>
                        <element name="D_SURFACE_MAINT" value="D_SURFACE_MAINT"/>
                        <element name="D_OIL_GAS_MAINT" value="D_OIL_GAS_MAINT"/>
                        <element name="D_MINERAL_MAINT" value="D_MINERAL_MAINT"/>
                        <element name="D_COMMENT_MAINT" value="D_COMMENT_MAINT"/>
                        <element name="D_TEST_KE" value="D_TEST_KE"/>
                        <element name="D_STAT_DESC" value="D_STAT_DESC"/>
                        <element name="D_EVTDATE" value="D_EVTDATE"/>
                        <element name="D_KELEASE" value="D_KELEASE"/>
                        <element name="D_ROLODEX" value="D_ROLODEX"/>
                        <element name="D_APP_DATE" value="D_APP_DATE"/>
                        <element name="D_EFFDATE" value="D_EFFDATE"/>
                        <element name="D_EXPDATE" value="D_EXPDATE"/>
                        <element name="AUS" value="AUS"/>
                        <element name="D_DESC_5_21" value="D_DESC_5_21"/>
                        <element name="AMEND" value="AMEND"/>
                        <element name="D_LNAME" value="D_LNAME"/>
                   </group>
              </group>
         </dataStructure>
    </dataTemplate>
    I want the parameter :p_ke to multiple select.
    Here is my List of Values for the parameter :p_ke:
    select     CODE KE
    from     T052_KE_EXPLOSION
    where CODE > 0
    ORDER BY CODE
    I have the option: MULTIPLE SELECTION....check for :p_ke
    Does anyone know what I am doing wrong?
    I appreciate any help I can get!
    Susie

    Susie,
    use in the Query inside the Data Template a lexical parameter like
    select * from emp &p_mylexical
    This lexical parameter could be filled in a BeforeReport Trigger. In this Package-Call you will have something like
    p_mylexcial := 'where deptno in ('||p_deptno||')';
    where p_deptno is your multi-select parameter.
    This should run if p_deptno is empty, has one value ore more.
    If you want to see every row when no value is choosen ('all') then use something like
    if p_deptno is not null then
    p_mylexical := 'where DEPTNO in ('||p_deptno||')';
    else
    p_mylexical := null;
    end if;
    So for your example that means
    - create a new lexical parameter (p_lexical)
    - replace in your query in the data template s.ke = :p_ke with &p_lexical
    - call a before report trigger in which is something like:
    p_mylexcial := 's.ke in ('||p_ke||')';
    Regards
    Rainer

  • RSA1 Document - Issue with "multiple selection" Characteristic

    Hi,
    I have the following issue with a web template showing monthly reporting results (act/plan/var) for a specific cost center broken down following a cost element hierarchy.
    My purpose is to attach each month some comments and these comments are made at the query level, not for each individual cost element.
    However, as explained in note 501593, when creating my document, I have to restrict my cost elements since they are regarded as "multiple selections".
    I could go and limit from 6 to one single value through table RSODADMIN but I never know for sure that this single cost element would always show up in my query.
    In RSA1 > document > properties of the comment, is there any way for me to go and input a range for my cost elements, instead of having to enter cost element by cost element ?
    Thx
    Stéphane

    Hi,
    I have the following issue with a web template showing monthly reporting results (act/plan/var) for a specific cost center broken down following a cost element hierarchy.
    My purpose is to attach each month some comments and these comments are made at the query level, not for each individual cost element.
    However, as explained in note 501593, when creating my document, I have to restrict my cost elements since they are regarded as "multiple selections".
    I could go and limit from 6 to one single value through table RSODADMIN but I never know for sure that this single cost element would always show up in my query.
    In RSA1 > document > properties of the comment, is there any way for me to go and input a range for my cost elements, instead of having to enter cost element by cost element ?
    Thx
    Stéphane

  • Trying to create table using Union All Clause with multiple Select stmts

    The purpose of the query is to get the Substring from the value for eg.
    if the value is *2 ASA* then it should come as ASA
    where as if the value is *1.5 TST* the it sholud come as TST like wise for others too.
    I am trying to execute the below written SQL stmt but getting error as:
    *"ORA-00998 must name this expression with the column alias 00998.00000 - Must name this expression with the column alias"*
    CREATE TABLE TEST_CARE AS
    SELECT row_id, old_care_lvl,SUBSTR(old_care_lvl,3), len FROM test_care_lvl
    WHERE LENGTH(old_care_lvl) =5
    UNION ALL
    SELECT row_id, old_care_lvl,SUBSTR(old_care_lvl,3), len FROM test_care_lvl
    WHERE LENGTH(old_care_lvl) =7
    UNION ALL
    SELECT row_id, old_care_lvl,SUBSTR(old_care_lvl,3), len FROM test_care_lvl
    WHERE LENGTH(old_care_lvl) =14
    UNION ALL
    SELECT row_id, old_care_lvl,SUBSTR(old_care_lvl,3),LEN FROM test_care_lvl
    WHERE LENGTH(old_care_lvl) =7 AND old_care_lvl ='Regular'
    I want to create the table using the above given multiple select using the Union ALL clause but when trying to create run the query getting error as "ORA-00998 must name this expression with the column alias 00998.00000 - Must name this expression with the column alias"
    Please guide me how to approach to resolve this problem.
    Thanks in advance.

    When you create a table using a SELECT statement the column names are derived from the SELECT list.
    Your problem is that one of your columns is an expression that does not work as a column name SUBSTR(old_care_lvl,3)What you need to do is alias this expression and the CREATE will pick up the alias as the column name, like this:
    CREATE TABLE TEST_CARE AS
    SELECT row_id, old_care_lvl,SUBSTR(old_care_lvl,3) column3, len FROM test_care_lvl
    WHERE LENGTH(old_care_lvl) =5
    UNION ALL
    SELECT row_id, old_care_lvl,SUBSTR(old_care_lvl,3), len FROM test_care_lvl
    WHERE LENGTH(old_care_lvl) =7
    UNION ALL
    SELECT row_id, old_care_lvl,SUBSTR(old_care_lvl,3), len FROM test_care_lvl
    WHERE LENGTH(old_care_lvl) =14
    UNION ALL
    SELECT row_id, old_care_lvl,SUBSTR(old_care_lvl,3),LEN FROM test_care_lvl
    WHERE LENGTH(old_care_lvl) =7 AND old_care_lvl ='Regular'
    );You may not like the name "column3" so use something appropriate.

  • Multiple selection of parameter SQL error

    Hi,
    I am using BIP Enterprise stand alone, Release 10.1.3.2
    I have a report with 2 parameters: salesperson and clientprospect with the 'multiple selection' and 'can select all' options turned on. My sql query is shown below.
    When I run the report, here are the results with various parameter selection scenarios:
    1-'all' select for both parameters = no results
    2-any single value selected in both parameters = correct results
    3-'all' select in one parameter and any single value selected in the other=no results
    4-two or more values selected in either parameter=sql error ([Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Line 14: Incorrect syntax near ','.)
    As the error message suggests, I looked at line 14, but there is no ',' on line 14.
    Code
    select     RCUST.customer_name as 'Customer Name',
         RCUST.customer_number as 'Customer No.',
         RCUST.branch_id as 'Branch ID',
         RCUST.salesperson as 'Salesperson ID',
    Case tw_relshp_type     
    WHEN 'C' THEN 'CLIENT'
    WHEN 'P' THEN 'PROSPECT'
    Else 'OTHER'
    END AS 'Client Type'
    from     dbo.TREL TREL,
         dbo.RCUST RCUST
    where RCUST.customer_name=TREL.tw_relshp_name
    and tw_relshp_type = :ClientProspect
    and salesperson = :Salesperson
    order by RCUST.branch_id ASC, RCUST.salesperson ASC, RCUST.customer_name ASC
    I cannot figure why I am not getting the correct results in each of the above 4 scenarios.
    I seem to be stuck. I have searched this forum by keyword 'parameter', but I did not find any solutions, hence my post. Any help would be greatly apreciated.
    Thanks,
    Haresh

    Thanks to both of you for your prompt comments. I have tried the where...DECODE clause but I am getting the following message:
    "[Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]'DECODE' is not a recognized function name."
    I will enter a SR in metalink. Maybe they can test and release a patch, as I suspect that this is a bug.
    Haresh

  • HT1338 just bought a new I-Mac. At start up several updates were needed. The I-movie one stopped and shows an ERROR HAS Occurred. Howevr it does not allow me to update it again. In my purchases it shows as Installed with Error. What should I do?

    just bought a new I-Mac. At start up several updates were needed. The I-movie one stopped and shows an ERROR HAS Occurred. Howevr it does not allow me to update it again. In my purchases it shows as Installed with Error. What should I do?

    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Select "/var/log/install.log" from the file list on the left. If you don't see that list, select
    View ▹ Show Log List
    from the menu bar. Then select the messages from the last installation or update attempt, starting from the time when you initiated it. If you're not sure when that was, start over and note the time. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V).
    If there are runs of repeated messages, post only one example of each. Don’t post many repetitions of the same message.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Edit it out by search-and-replace in a text editor before posting.

  • How do i take one layer with multiple selections...

    how do i take one layer with multiple selections and make those selections their own layer?

    Yes sir. It w was really hard to explain. It is discontiguous segments that are separated by transparent areas. And I want those non transparent areas to be on their own layer. I have a photo shop file that has a bunch of buttons on them and they are on a transparent background. It is one layer. I want to select all the buttons and put them on their own layers. I can do this manually by selecting a button and cmd Just to a new layer, but when I have 200 buttons it is a daunting task.
    Sent by MailWise<http://www.mail-wise.com/installation/4> – Your emails, with style.

  • How can I create a XMP List with multiple selection

    Hello,
    I try to build my own XMP custom panel. Herefore I need a couple of lists with the possibility for multiple selections (e.g. the choice for one language or multiple languages).
    But how is it possible to integrate a list into a panel? There is no XMPList inside the custom folder. I have experimented with the standard mx:list and an array collection for data binding into the list. But how can I write the user selection into an XMP field? Example: In the List the user choose three languages (DE, EN, FR). Is it possible to collect the choice into a string and to write the result into an XMP standard field (e.g. dc:description)?
    A further question is, if it's possible to use the "HTTPService" to bind an external xml-file with the languages and other informations into the panel or is it only possible to work with an array collection inside the code?
    Here is my code:
    <?xml version="1.0" encoding="utf-8"?>
    <fi:XMPForm
              xmlns:mx="http://www.adobe.com/2006/mxml"
              xmlns:fi="com.adobe.xmp.components.*" width="100%" height="100%"
              xmlns:Iptc4xmpCore ="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/"
              label="XMP-Custom Panel"
              initialize="ds.send()"
              >
         <!-- Each namespace prefix that is used within an xmpPath-attribute,
               MUST BE registered at the top of EACH panel where it is referenced -->
         <fi:XMPNamespaces>
              <fi:XMPNamespace prefix="dc" value="http://purl.org/dc/elements/1.1/"/>
         </fi:XMPNamespaces>
         <fi:XMPForm>
              <mx:HBox width="100%" height="26" verticalAlign="middle">
                   <mx:HRule width="50%"/>
                   <mx:Label text="Allgemeine Metadaten" fontSize="12" fontWeight="bold"/>
                   <fi:XMPSeparator width="50%"/>
              </mx:HBox>
              <fi:XMPFormItem
                        label="Titel"
                        labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Dateiname" fontSize="11" width="100%">
                   <fi:XMPTextInput xmpPath="dc:title" xmpType="Localized" width="100%"/>
              </fi:XMPFormItem>
              <fi:XMPFormItem
                        label="Titel"
                        labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Dateiname" fontSize="11" width="100%">
                   <fi:XMPTextInput xmpPath="dc:title" xmpType="Localized" width="100%"/>
              </fi:XMPFormItem>
              <fi:XMPFormItem
                        label="Druckkennzeichen"
                        labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Dateiname" fontSize="11" width="100%">
                   <fi:XMPTextInput xmpPath="dc:title" xmpType="Localized" width="100%"/>
              </fi:XMPFormItem>
              <fi:XMPFormItem
                        label="Verfasser"
                        labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Erzeuger des Dokumentes" fontSize="11" width="100%">
                   <fi:XMPComboBox xmpPath="dc:creator" width="100%"/>
              </fi:XMPFormItem>
              <fi:XMPFormItem
                        label="Versionsnummer"
                        labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Dateiname" fontSize="11" width="100%">
                   <fi:XMPComboBox xmpPath="dc:creator" width="100%"/>
              </fi:XMPFormItem>
              <mx:HBox width="100%" height="26" verticalAlign="middle">
                   <mx:HRule width="50%"/>
                   <mx:Label text="Enthaltene Sprachen" fontSize="12" fontWeight="bold"/>
                   <fi:XMPSeparator width="50%"/>
              </mx:HBox>
              <!-- Beginn der Auswahl-Liste für die Sprachen -->
                 <mx:Script>
            <![CDATA[
                import flash.events.MouseEvent;
                import mx.controls.Alert;
                import mx.collections.ArrayCollection;
                private const NL:String = "\r";
                // A data provider created by using ActionScript
                [Bindable]
                private var subscriptions:ArrayCollection =
                    new ArrayCollection
                            {data:0, label:"Deutsch"},
                            {data:1, label:"Englisch"},
                            {data:2, label:"Französisch"},
                            {data:3, label:"Italienisch"}
                [Bindable]
                private var market:ArrayCollection =
                    new ArrayCollection
                            {data:0, label:"(Bitte Marktversion auswählen)"},
                            {data:1, label:"Marktversion Deutsch (M_DE)"},
                            {data:2, label:"Marktversion Englisch (M_EN)"},
                            {data:3, label:"Marktversion Frankreich (M_FR)"},
                            {data:4, label:"Marktversion Italien (M_IT)"}
                [Bindable]
                private var documenttyp:ArrayCollection =
                    new ArrayCollection
                            {data:0, label:"(Bitte Dokumenttyp auswählen)"},
                                  {data:1, label:"Gebrauchsanweisung"},
                            {data:2, label:"Ersatzteilkatalog"},
                            {data:3, label:"Service-Anleitung"},
                            {data:4, label:"Etikett"}
            ]]>
        </mx:Script>
                    <fi:XMPFormItem label="Sprachauswahl" width="100%">
                    <mx:List
                        id="userSubscriptions" rowCount="4"
                        allowMultipleSelection="true" width="100%"
                        dataProvider="{subscriptions}"
                    />
                </fi:XMPFormItem>
                    <mx:Text text="* Mehrfachauswahl möglich." fontWeight="normal" fontSize="10"/>
                <!-- Ende der Liste für die Auswahl von Sprachen -->
              <fi:XMPFormItem
                        label="Marktvariante"
                        labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Dateiname" fontSize="11" width="100%">
                   <fi:XMPComboBox xmpPath="dc:creator" width="100%" dataProvider="{market}"/>
              </fi:XMPFormItem>
              <fi:XMPFormItem
                        label="Dokumenttyp"
                        labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Dateiname" fontSize="11" width="100%">
                   <fi:XMPComboBox xmpPath="dc:creator" width="100%" dataProvider="{documenttyp}"/>
              </fi:XMPFormItem>
              <fi:XMPFormItem
                        label="Stichworte"
                        labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Erzeuger des Dokumentes" fontSize="11" width="100%">
                   <fi:XMPTextArea/>
              </fi:XMPFormItem>
              <mx:HBox width="100%" height="26" verticalAlign="middle">
                   <mx:HRule width="50%"/>
                   <mx:Label text="Metadaten Photoshop" fontSize="12" fontWeight="bold"/>
                   <fi:XMPSeparator width="50%"/>
              </mx:HBox>
              <fi:XMPFormItem
                        label="Originalname FA"
                        labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Dateiname" fontSize="11" width="100%" id="PS1">
                   <fi:XMPTextInput xmpPath="dc:title" xmpType="Localized" width="100%"/>
              </fi:XMPFormItem>
              <fi:XMPFormItem
                        label="Fotoauftragsnummer"
                        labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Dateiname" fontSize="11" width="100%" id="PS2">
                   <fi:XMPTextInput xmpPath="dc:title" xmpType="Localized" width="100%"/>
              </fi:XMPFormItem>
              <fi:XMPFormItem
                        label="Interne Anmerkungen"
                        labelTooltip="$$$/xmp/sdk/custompanels/Test/TitleToolTip=Erzeuger des Dokumentes" fontSize="11" width="100%" id="PS3">
                   <fi:XMPTextArea/>
              </fi:XMPFormItem>
              <mx:Text text="* hier steht eine kleine Erläuterung" fontWeight="normal" fontSize="10"/>
         </fi:XMPForm>
    </fi:XMPForm>
    Any suggestions?
    Thank you in advance.
    Markus

    Hi Markus,
    the FileInfo SDK does not offer a ready-made list component allowing for multi-selection.
    So you would need to implement one using the FileInfo SDK API. Your component "XMPList" would inherit from mx:list and would need to implement the XMPRead and XMPWrite events and talk to the XMP using the IXMPAccess interface within those event handlers.
    Please have a look at the Programmer's Guide, section "XMP Flex components" and at the API description available in "docs" for further guidanc.
    Hope this helps
    Kind Regards
    Jörg
    Adobe XMP

  • Multiple Select List does not Refresh with Dynamic Action

    All,
    Scenario:
    Using APEX 4.2.2, I have a Select List page item (P4_SPONSOR) set to allow multiple values which has a dynamic LOV to populate the list.  What I would like to do is highlight the display values based on another page item's value (P4_DRIVER_ID).  When I set the source of P4_SPONSOR to static text, such as a delimited string of 1:2:3:4, any display values where the return values are equal to the static text are highlighted when the page loads.
    Problem:
    The problem lies in trying to use a query as a source for P4_SPONSOR which is filtered based on the other page item, P4_DRIVER_ID.  For instance, my SQL Query (returning colon separated values) returns the same as the static text noted above.  In the query's WHERE clause, I specify that the driver's ID is equal to P4_DRIVER_ID:
    SELECT sponsor_id
    FROM sponsors_drivers_xref
    WHERE driver_id = :P4_DRIVER_ID;
    This, as I understand it, would necessitate a refresh of P4_SPONSOR whenever the value of P4_DRIVER_ID changes.  So, I have a Dynamic Action that does just that.  When executed on the page, I can see the P4_SPONSOR multiple select list actually refresh, but none of the display values become highlighted.
    Thoughts?
    Thanks,
    -Seth.

    Seth,
    A dynamic action refresh of your select list will refresh the list of values (this is what you are seeing), it will not refresh the value of the item itself.  In fact, it will remove any values that you had already selected.  To refresh the value you will need to add additional dynamic actions.
    Create another dynamic action with:
    Event: After Refresh
    Selection Type: Item(s)
    Item(s): P4_SPONSOR
    If this was a normal select list you could just create a Set Value action and use your query to set the value of the select list.  Since this is a multiple select list your will need to get your colon delimited value first and then use some javascript to set the values of your select list.
    Create an hidden page item name P4_SPONSOR_TEMP.
    Add a true action to your new dynamic action:
    Action: Set Value
    Set Type: SQL Statement
    SQL Statement:
    SELECT sponsor_id
    FROM sponsors_drivers_xref
    WHERE driver_id = :P4_DRIVER_ID;
    Page Items to Submit: P4_DRIVER_ID
    Selection Type: Item(s)
    Item(s): P4_SPONSOR_TEMP
    Add another true action to your new dynamic action:
    Action: Set Value
    Set Type: JavaScript Expression
    JavaScript Expression:
    $("#P4_SPONSOR_TEMP").val().split(":")
    Selection Type: Item(s)
    Item(s): P4_SPONSOR
    --Jeff

  • How to create a table with multiple select on???

    Hi all,
            I am  new to webdynpro and my requirement is to create a  table with multiple selection on.I have to add abt 10 rows in the table but only 5 rows should be visible and moreover a verticalscroll should be available to view other rows.Can anybody explain me in detail how to do that.Please reply as if you are explaining  to a newcomer.Reply ASAP as i have to do it today.
                                                                           Thanxs

    Hi,
    1. Create a value node in your context name Table and set its cardinality to 0:n
    2. Create 2 value attributes within the Table node name value1 and value2
    3. Goto Outline view> Right click on TransparentUIContainer>Apply Template> Select Table>mark the node Table and it's attributes.
    you have created a table and binded its value to context
    Table UI properties
    4.Set Selection Mode to Multi
    5.Set Visible Row Count to 5
    6.ScrollableColCount to 5
    In your implemetaion, you can add values to table as follow:
    IPrivate<viewname>.ITableElement ele = wdContext.nodeTable().createTableElement();
    ele.setValue1(<value>);
    ele.setValue2(<value>);
    wdContext.nodeTable().addElement(ele);
    The above code will allow you to add elements to your table node.
    Regards,
    Murtuza

Maybe you are looking for

  • Problem with starting JSPM

    Hi all, I have a problem with starting JSPM. We have just upgraded to SAP NWS 2004s SP11 SR2. We are in AIX server. So to execute JSPM, I log on to AIX server using PUTTy with <SID>adm. I go to /usr/sap/<SID>/DVEBMGS00/j2ee/JSPM and i execute the "go

  • Installed lion and parallels will not open

    i installed lion 2 days ago and i cannot open Parallels and my G Drive backup with Time Machine is not working.  I need Paralles to work first though.  Any ideas?

  • CH: u00DCbersicht Hinweise Jahreswechsel 2010/2011

    Hinweis 1517389 "Vorankündigung Jahreswechsel 2010/2011 Schweiz" http://service.sap.com/sap/support/notes/1517389 Hinweis 1517623 "HR-CH: Familienzulagen - Jahreswechsel 2010/2011" http://service.sap.com/sap/support/notes/1517623

  • I can not create EPS

    Hello, I have a problem in P6 EPPM V8.1. I can not create EPS nodes, when I try it an error message pop up telling me that Activity codes longer than 20 characters are not allowed but I revise all the projects already loaded and there aren´t codes lo

  • Is an execution plan produced for a user lacking grants?

    Will Oracle generate an execution plan for syntactically correct PL/SQL submitted by a user lacking authority to read a table or will it 1st check syntax, then the dictionary, then the rights BEFORE generating the execution plan?