Htmlb is undefined!  help me !

Hi Guys,
I met a issue in JspDynpro development.
my code :
<%@ taglib uri= "tagLib" prefix="hbj" %>
<jsp:useBean id="acceptBean" scope="session" class="com.ddd.AcceptBean" />
<% String inputFieldId=null; %>
<hbj:content id="myContext"  >
  <hbj:page title="PageTitle">
   <hbj:form id="myFormId" >
    <hbj:inputField id="returninput"
                    value="L"
                    type="STRING"
                    visible="false" jsObjectNeeded="true" >
                    <%  inputFieldId=myContext.getParamIdForComponent(returninput);%>
    </hbj:inputField>
           <script language="Javascript">
var returnvalue = 'N';
returnvalue = window.showModalDialog("<%=acceptBean.getUrl()%>","","dialogWidth:700px;dialogHeight:500px");
document.all("<%=inputFieldId%>").value= returnvalue;
alert("htmlbevent " +htmlbevent);
htmlbevent.cancelSubmit=false;
</script>     
   </hbj:form>
  </hbj:page>
</hbj:content>
the error is htmlbevent is undefined.
Could you please tell me how to resolve that? Thank you!
Best Regards,
Hardy

Hi Hardy,
Check your portalapp.xml file to ensure you have the following in the right places:
<property name="PrivateSharingReference" value="com.sap.portal.htmlb"/> within the <application-config> and </application-config> tags
<property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/> within the <component-profile> and </component-profile>
and remove the following:
        <property name="ComponentType" value="jspnative"/>
        <property name="JSP" value="pagelet/test.jsp"/>
hope this helps...

Similar Messages

  • Have updated to F.F.5. and I now get this evertime I use it. Message: [Javascript Application] TypeError: Components.classes[@softage.ru/skype/SkypeFfExtension;1'] is undefined - HELP

    Have updated to F.F.5. and I now get this error every time I use it.
    Message: [Javascript Application] TypeError: Components.classes[@softage.ru/skype/SkypeFfExtension;1'] is undefined - HELP
    As do hundreds of others it seems. If you run a search on this error.
    Many thanks for your help over this.
    Sean

    That is caused by a problem with the Skype extension for Firefox.
    See:
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Have updated to F.F.6 I am still getting this error evertime I use it. Message: [Javascript Application] TypeError: Components.classes[@softage.ru/skype/SkypeFfExtension;1'] is undefined - HELP

    Every time I use F.F. I get this error. TypeError: Components.classes['@softage.ru/skype/SkypeFfExtension;1'] is undefined
    Does anyone else get this and or know how to remove it?
    Many thanks for your help and support

    This issue is caused by the Skype extension for Firefox.
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • Problem in HTMLB..Please Help...urgent....:(

    Hello All,
    Please refer to the below code:
    package com.sap.NewOrderAssignment;
    import java.io.Serializable;
    import java.util.Calendar;
    import java.util.Date;
    import java.util.Locale;
    import java.util.GregorianCalendar;
    import com.sapportals.htmlb.*;
    import com.sapportals.htmlb.enum.TableColumnType;
    import com.sapportals.htmlb.table.DefaultTableViewModel;
    import com.sapportals.htmlb.table.TableColumn;
    public class BeanOrderDetails implements Serializable
    {     public Date toDay, orderDate;
         public String toDayAsString;
         public IListModel deliveryAddress;
         public TextEdit address;
         public DefaultTableViewModel orderLines;
         public Locale locale;
         public String poNumber, model, qty;
         public Object colTitle[] = {"Model","Description","Qty (pcs)","AD Price","Net Price","Total amount","Indication ETA","12 NC","Part Del","GIM","# A-box","Pcd/A-box"};
         public BeanOrderDetails()
         {     Calendar cal = new GregorianCalendar();
              toDay = cal.getTime();
              String year = String.valueOf(cal.get(Calendar.YEAR));
              String month = String.valueOf(cal.get(Calendar.MONTH)+1);
              String day = String.valueOf(cal.get(Calendar.DAY_OF_MONTH));
              toDayAsString = year"-"month"-"day;
              deliveryAddress = new DefaultListModel();
              deliveryAddress.setSingleSelection(true);
              deliveryAddress.addItem("1", "Delivery Address1");
              deliveryAddress.addItem("2", "Delivery Address2");
              deliveryAddress.addItem("3", "Delivery Address3");
              //company address
              address = new TextEdit("Company Address");
              address.setRows(4);
              address.setCols(40);
              String line1 = "KPIT Cummins Infosystems Ltd.";
              String line2 = "MIDC, Hinjewadi";
              String line3 = "Pune, India";
              address.setText(line1line2line3);
              address.setEnabled(true);
              //Table creation
              Object data[][] = {{"HQ8894","Sensotec Dry Rota Shaver","500","1,512.00","1,498.00","749.00","08-08-2005","885889401710","N","Y","","50"}};
              orderLines = new DefaultTableViewModel(data, colTitle);     
              TableColumn columnModel = orderLines.getColumnAt(1);
              TableColumn columnDesciption = orderLines.getColumnAt(2);
              TableColumn columnQty = orderLines.getColumnAt(3);
              TableColumn columnADPrice = orderLines.getColumnAt(4);
              TableColumn columnNetPrice = orderLines.getColumnAt(5);
              TableColumn columnTotalAmunt = orderLines.getColumnAt(6);
              TableColumn columnETA = orderLines.getColumnAt(7);
              TableColumn column12NC = orderLines.getColumnAt(8);
              TableColumn columnPartDel = orderLines.getColumnAt(9);
              TableColumn columnGIM = orderLines.getColumnAt(10);
              TableColumn columnABox = orderLines.getColumnAt(11);
              TableColumn columnAmountInBox = orderLines.getColumnAt(11);
              TableColumn columnPcsBox = orderLines.getColumnAt(12);
              columnModel.setType(TableColumnType.INPUT);
              columnModel.setWidth("150");
              columnQty.setType(TableColumnType.INPUT);
              columnDesciption.setWidth("300");
         public void setLocale(Locale l)
         {     locale = l;
         public Locale getLocale()
         {     return locale;
         public void setOrderDate(Date od)
         {     orderDate = od;
         public Date getOrderDate()
         {     return orderDate;
         public void setOrderLines(DefaultTableViewModel mm)
         {     orderLines = mm;
         public DefaultTableViewModel getOrderLines()
         {     return orderLines;
         public void setAddress(String adr)
         {     address.setText(adr);
         public void setTextEditAddress(TextEdit adr)
         {     address = adr;
         public TextEdit getTextEditAddress()
         {     return address;
         public String getAddress()
         {     return address.getText();
         public void setDeliveryAdresses(IListModel model)
         {     deliveryAddress = model;
         public IListModel getdeliveryAddresses()
         {     return deliveryAddress;
         public void setPoNumber(String pon)
         {     this.poNumber = pon;
         public String getPoNumber()
         {     return this.poNumber;
         public void setModel(String m)
         {     this.model = m;
         public void setQty(String quantity)
         {     this.qty = quantity;
         public void getNewRow()
         {     Object data[][] = { {"","Sensotec Dry Rota Shaver ABC","","1,512.00","1,498.00","749.00","08-08-2005","885889401710","N","Y","","50"}};
              this.setQty("");
              this.setModel("");          
              TableColumn columnModel = orderLines.getColumnAt(1);
              TableColumn columnDesciption = orderLines.getColumnAt(2);
              TableColumn columnQty = orderLines.getColumnAt(3);
              TableColumn columnADPrice = orderLines.getColumnAt(4);
              TableColumn columnNetPrice = orderLines.getColumnAt(5);
              TableColumn columnTotalAmunt = orderLines.getColumnAt(6);
              TableColumn columnETA = orderLines.getColumnAt(7);
              TableColumn column12NC = orderLines.getColumnAt(8);
              TableColumn columnPartDel = orderLines.getColumnAt(9);
              TableColumn columnGIM = orderLines.getColumnAt(10);
              TableColumn columnABox = orderLines.getColumnAt(11);
              TableColumn columnAmountInBox = orderLines.getColumnAt(11);
              TableColumn columnPcsBox = orderLines.getColumnAt(12);
              columnModel.setType(TableColumnType.INPUT);
              columnModel.setWidth("150");
              columnQty.setType(TableColumnType.INPUT);
              columnDesciption.setWidth("300");
    The above code creates a table. It actually maps the various fields as the TableColumn.
    <b><u>Question:</u></b>
    I have added a button which appears below this table.
    Name of button = AddNewLine
    Now, when this button is clicked, a new empy row should appear in the table.
    <i><b>My stmts in method - getNewRow() are not working.</b></i>
    Please help me do so.
    Please help...its kinda urgent.
    Thanks and Warm Regards,
    Ritu R Hunjan

    Hi Ritu,
             First up all I don't see any code where exactly you have added a button in the table.
             Secondly as a general thing,looking on to ur scenario you have initialize the table on the event of clicking the button ie)in ur getNewRow() just initialize your code for building an empty row of the table.
    Regards,
    guru

  • I have downloaded Firefox 4.0.1. Upon opening the browser, I get the error message, JavaScript Application. Type Error. Components.classes[cid] is undefined Help. Thanks.

    I do not have this problem with my other browsers: Chrome, Opera, and Safari.
    I had no trouble like this with earlier versions of Firefox, before 4.0.1.

    That indicates you have an add-on that is not compatible with Firefox 4. For details of how to troubleshoot that see https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • HTMLB - Tableviews

    Hi, I'm having a problem trying to 'pass' values from one htmlb screen to another.  In screen 1 I've populated a tableview.  The user then selects multiple rows from the tableview and hits a button.  Upon hitting the button I would like to extract the rows the user has chosen and display them for confirmation on screen 2 however I cannot seem to do this.  Does anyone know of an example of this?  Do I have to use htmlb?  How would I be able to know of all the classes at my disposal within htmlb?  Any help will be appreciated.
    Thanks in advance,
    Kevin

    <a href="/people/brian.mckellar/blog/2004/06/11/bsp-trouble-shooting-getting-help">BSP Trouble Shooting: Getting Help</a> has all the pointers to the help for the taglibs (where your questions are answered) and to the test applications (where you questions are shown in action). Recommended reading.

  • Disabling a Check box

    In my BSP View am using two check box.
    I want to disable one check box when the other one gets checked and vice versa.
    Right now am doing with some logics and with server side events.I want to do this in the client side.
    In <b>Java script</b> how i can code this in my BSP page where the checkbox is created with the help of htmlb.
    Kindly help me in this regards.

    Hi,
    put this in your documentHead:
    <script language="javascript">
         function uncheckyes(){
          document.form_id.yes.disabled='TRUE';
          </script>
    <script language="javascript">
         function uncheckno(){
          document.form_id.no.disabled='TRUE';
          </script>
    and this in your layout (documentBody):
           <htmlb:checkboxGroup columnCount = "2"
                                         id          = "expense" >
                      <htmlb:checkbox text          = "Yes"
                                      id            = "yes"
                                      onClientClick = "javascript:uncheckno()" >
                      </htmlb:checkbox>
                      <htmlb:checkbox text          = "no"
                                      id            = "no"
                                      onClientClick = "javascript:uncheckyes()" >
                      </htmlb:checkbox>
                    </htmlb:checkboxGroup>
    grtz
    Koen

  • Error in searching field value by pressing enter

    Hi all,
    I am able to get a pop up with the values of the field and select in that pop up to the main screen on pressing enter.
    But i get all the values of the column present in the table and not the one which i want to search. Also the main screen gives error message if the cursor is in the field on main page and works properly  if the cursor is not there in the field.
    Error is as follows:
    <b>BSP exception: Access to URL /sap(bD1lbiZjPTAwMQ==)/bc/bsp/sap/z_startingwith/POST is forbidden</b>
    Does it have anything to do with <form method = "POST">
    as the values from main screen are not passing to the next screen!!
    <b>Find.htm:</b> (Main screen)
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <script language="JavaScript" type="text/javascript">
    document.onkeydown = function(){
    if(window.event && window.event.keyCode == 13)
                  popUp=window.open('help.htm','_blank', 'Emp Details','width=100,height=300');
    </script>
    <htmlb:content design="design2003" >
      <htmlb:page title="Add Employee Details " >
        <htmlb:form action="POST" id = "form1">
          Empid:
          <htmlb:inputField id          = "partner"
                            showHelp    = "true"
                           submitOnEnter = "true"
                            value       = "<%= partner %>" />
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    <b>Help.htm</b>
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page title="Test" >
        <htmlb:form id="my_window" >
          <%
      data TV_ITERATOR Type Ref To zcl_itr." - Iterator Function
      data iterator type ref to IF_HTMLB_TABLEVIEW_ITERATOR.
      create object tv_iterator exporting appl_cons = appl.
      iterator = tv_iterator.
          %>
          <htmlb:tableView id               = "pop"
                           width            = "200"
                           headerVisible    = "true"
                           design           = "alternating"
                           visibleRowCount  = "10"
                           fillUpEmptyRows  = "true"
                           selectionMode    = "SINGLESELECT"
                           selectedRowIndex = "<%= row_index %>"
                           onRowSelection   = "MyEventRowSelection"
                           showNoMatchText  = "true"
                           filter           = "server"
                           sort             = "server"
                           onHeaderClick    = "MyEventHeaderClick"
                           table            = "<%= details %>"
                           iterator         = "<%= iterator %>" >
          </htmlb:tableView>
          <%
      if partner is not initial.
          %>
          <htmlb:inputField id      = "checked"
                            visible = "True"
                            value   = "<%= partner %>" />
                <script for="checked" language="javascript" event="onLoad()">
                       opener.document.form1.partner.value = <%= partner %>;
                       window.self.close();
          </script>
          <%
      endif.
          %>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    <b>Oncreate:</b>
    select partner from zcrmm_buag into corresponding fields of table details.
    <b>OnInputProcessing:</b>
    DATA: IND TYPE I.
      DATA: TV TYPE REF TO CL_HTMLB_TABLEVIEW.
      DATA: EVENT1 TYPE REF TO CL_HTMLB_EVENT.
      EVENT1 = CL_HTMLB_MANAGER=>GET_EVENT( RUNTIME->SERVER->REQUEST ).
      TV ?= CL_HTMLB_MANAGER=>GET_DATA(
      REQUEST = RUNTIME->SERVER->REQUEST
      NAME = 'tableView'
      ID = 'pop' ).
      IF TV IS NOT INITIAL.
        DATA: TV_DATA TYPE REF TO CL_HTMLB_EVENT_TABLEVIEW.
        TV_DATA = TV->DATA.
        IF TV_DATA->SELECTEDROWINDEX IS NOT INITIAL.
          FIELD-SYMBOLS: <row> LIKE LINE OF details.
        READ TABLE details INDEX tv_data->selectedrowindex ASSIGNING <row>.
    if <row> is assigned.
    partner = <row>-partner.
    endif.
        ENDIF.
      ENDIF.
    Any help is welcome.
    Regards,
    Rohit Khetarpal

    <i>actually when the pop up comes,the page on the back(i.e. Find.htm) shows error message as mentioned below..
    BSP exception: Access to URL /sap(bD1lbiZjPTAwMQ==)/bc/bsp/sap/z_startingwith/POST is forbidden</i>
    -->Remove "method="post" in FORM tag. I tested.
    <b>To pass the value from Find.htm to Help.htm</b> - see the below code
    <script language="JavaScript" type="text/javascript">
    document.onkeydown = function(){
    if(window.event && window.event.keyCode == 13)
    var val;
    val = document.getElementById("partner").value;
    * Here the VAL will have the value of query value(what user entered as Filter value) from Find.htm
    popUp=window.open('help.htm?partner'+val,'_blank', 'Emp Details','width=100,height=300');
    </script>
    <b>And also make the "Patner" in help.htm as "AUTO parameter.</b>
    Hope this will solve your peoblme.
    Raja T
    Message was edited by:
            Raja Thangamani

  • Regarding popup in bsp

    Hi Gurus,
    I am not getting gud help from any blogs..so pls dont send me blog links..
    My scenario is like am selecting a value from popup screen(f4 help).Am using MVC pattern. Input field is in "find.htm". It will call 'emppop.do' and eventually it calls the view 'emppop.htm' using the method DO_REQUEST.
    1) But my popup screen is coming with short dump
    2)Dont know how to select a value from popup screen.
    find.htm
          <htmlb:inputField id          = "empid"
                            showHelp    = "true"
                            value       = "<%= empid %>"
                            onValueHelp = "javascript:window.open  ('emppop.do', '_blank', 'Emp Details','width=100,height=300');" />
    Hope this is correct since I got it from Raja's post.
    emppop.do(DO_REQUEST)
      SELECT * FROM Z12_EMP_PER INTO TABLE IT_EMP.
      DATA: POPVIEW TYPE REF TO IF_BSP_PAGE.
      POPVIEW = CREATE_VIEW( VIEW_NAME = 'emppop.htm').
      POPVIEW->set_attribute( name = 'it_emp' value = it_emp ).
      CALL_VIEW( POPVIEW ).
    emppop.htm
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page title=" " >
        <htmlb:form>
          <htmlb:tableView id    = "pop"
                           table = "<%= it_emp %>" >
          </htmlb:tableView>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    Pls help me to correct this and also help me to select a value from this popup.
    Thanks in advance...

    Hi,
    Try the following.
    Define the DO_INIT method of emppop.do
    write following code inside it.
    emppop.do(DO_INIT)
    SELECT * FROM Z12_EMP_PER INTO TABLE IT_EMP.
    emppop.do(DO_REQUEST)
    dispatch_input( ).
    Define POPVIEW type  IF_BSP_PAGE. as  the attribute of class
    POPVIEW = CREATE_VIEW(  VIEW_NAME = 'emppop.htm' ).
    POPVIEW->set_attribute( name = 'it_emp' value = it_emp ).
    CALL_VIEW(  POPVIEW  ).
    emppop.htm
    eevn mention form name
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
    <htmlb:page title=" " >
    <htmlb:form>
    <htmlb:tableView id = "pop"
    table = "<%= it_emp %>"
    selectionMode   = "SINGLESELECT" >
    </htmlb:tableView>
    </htmlb:form>
    </htmlb:page>
    </htmlb:content>
    And the problem for selecting the value from POPVIEW to find.htm
    I can only provide you the logic First you can get the value that is selected in the DO_HANDLE_EVENT.
    in the popup.htm page use the opener tag of javascript that gets the value from the popup menu to the parent menu.
    Write this code in the emppop.htm
    <script language="JavaScript">
    window.opener.document.all("<b>empid</b>").value = "Value that you get from the DO_HANDLE_EVENT on click in POPUP view intableview.";
    window.close();
    The empid that is bold is ID OF your find.htm page inputfield id.
        //-->
    </script>
    Assign Points for helpful answer.
    Thanks & Regards
    Aashish Garg

  • How to Open BSP page in a new window?

    Hi All,
    I am creating a BSP application wherein i have a htmlb button for "help".
    I want to open this help page in a new window, so that alongwith the help page the user can
    view other pages also simultaneously.
    Is there any way by which i can open this BSP page into a new window without loosing
    the contents of the current page on which the help button is present.
    A sample code for opening page in new window will be of great help.
    Thanks in Advance for your help.

    Hi Mahima,
    Use the onClientClick event of the button.
    on_Client_Click="callwindow();"
    <s cript>
    function callwindow()
    win_dow.o_pen("www.sap.com");
    </s cript>
    Please remove the underscores from code.
    Regards,
    Anubhav

  • Open a bsp page in a new window?

    Hi All,
    I am creating a BSP application wherein i have a htmlb button for "help".
    I want to open this help page in a new window, so that alongwith the help page the user can
    view other pages also simultaneously.
    Is there any way by which i can open this BSP page into a new window without loosing
    the contents of the current page on which the help button is present.
    A sample code for opening page in new window will be of great help.
    Thanks in Advance for your help.

    Hi,
    Pls try the below logic :
    <htmlb:button id = "help"
    text = "Help"
    design = "standard"
    onClientClick = "window.open('http://www.sap.com')"
    tooltip = "Help"
    />
    This will work for you.
    Regards
    CSM Reddy

  • BSP extension on Pocket PC2003 doesn't work

    Hello,
    i have to write some mobile applications for t-moblie mdaII on Pocket PC2003-Platform. We work on webas SP 41.
    All application with bsp-extension are dumping:
    An exception occurred. This exception is dealt with in more detail below       
    . The exception, which is assinged to the class 'CX_BSP_ELEMENT_EXCEPTION', was
    not caught,                                                                   
    which led to a runtime error.                                                  
    The reason for this exception is:                                              
    <htmlb:content>:  (*) This browser is not supported.                           
    (IE>=550;NN>=700;Mozilla>=9999;IE=401)                                                                               
    What about the SAP Message to support mobile platforms?
    Does anyone knows how to fix this problem?
    Best regards, Stefan

    Stefan,
    I am interested in the solution that you mentioned in your last post. I made the change to the registry on a test iPac and was able to circumvent the error message, but find that no events are triggered once the page is loaded in the application.
    This is the content of the page:
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="classicdesign2002design2003" >
      <htmlb:documentHead title="Asset Inventory" >
        <link rel="stylesheet" href="../PUBLIC/BC/BSP/Styles/z_asset.css">
        <H1><LO>
        <htmlb:image src="../PUBLIC/BC/Icons/z_duke_icons/z_dukesh.JPG" />
        </LO>Asset Inventory</H1>
    <script language="JavaScript">
      </htmlb:documentHead>
      <htmlb:page title="Asset Inventory Main Page" >
        <htmlb:form>
          <P>
          <htmlb:button id      = "view"
                        text    = "View / Change Asset"
                        onClick = "onView" />
          </P>
          <P>
          <htmlb:button id      = "list"
                        text    = "Inventory by Department"
                        onClick = "onList" />
          </P>
          <P>
          <htmlb:button id      = "legend"
                        text    = "Icon Key"
                        onClick = "onLegend" />
          </P>
          <P>
          <htmlb:button id      = "help"
                        text    = "Application Help"
                        onClick = "onHelp" />
          </P>
        <a href="https://sapitsdev.oit.duke.edu/scripts/wgate/sapextauth/!?modwebauthcookiemagic=logout"
           style="font:10pt Arial; background:#F5DEB3;color:black; "
           onClick=exitBSPApplication('session.htm'); >Logoff</a><br>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    Do you have any suggestions as to why the buttons don't trigger the event?
    Thanks for your input,
    Joanne.

  • Javascript window.open in BSP: new window is opened behind the main window

    Hello,
    I use following code to open a new window in my BSP application:
              window.open("<%= controller->display_url%>").focus();
    The new windows is openned up, but hide behind the main window, I need the new window to stay at the front, any idea?
    On one computer running IE7, the new windows is opened and stay at the front. But not for all other computers running IE6.
    Thanks, Jinjin

    Hi,
          We used the below logic :
    <htmlb:button id      = "help"
                        text    = "Help"
                        design  = "standard"
                        onClientClick = "window.open('http://www.sap.com')"
                        tooltip = "Help"
                        />
    It worked fine for us.
    Try this.
    Thanks,
    Greetson

  • AddWatermarkFromText   syntax error

    I am trying to extract pages and add headers  with a script.
    I run the script by hitting cTRL+ENTER at each semicolon (in the acrobat_x_pro javascript window).
    The extraction and saving of files works just fine.
    But the header (this.addWatermarkFromText) will not work.
    I am getting a SyntaxError with this Source code  is:
    SyntaxError: syntax error
    1:Console:Exec
    undefined
    //================================================
    this.extractPages(0,0);
    this.saveAs("/btc-nas1/jyoung/_24X_fall_2012/pdf/INST240_sec1/INST240_sec1_fm.pdf");
    this.closeDoc(true);
    this.extractPages(23,48);
    var strFilename = "INST240_sec1_day1";
    this.addWatermarkFromText({
    cText: strFilename,
    nTextAlign: app.constants.align.right,
    nHorizAlign: app.constants.align.right,
    nVertAlign: app.constants.align.top,
    nHorizValue: -72, nVertValue: -72
    this.saveAs("/btc-nas1/jyoung/_24X_fall_2012/pdf/INST240_sec1/INST240_sec1_day1.pdf");
    this.saveAs("/btc-nas1/jyoung/_24X_fall_2012/pdf/INST240_sec1/INST240_sec1_day1_quiz.pdf") ;
    this.closeDoc(true);
    //================================================
    I get a similar error when I try to insert a page:
    this.insertPages ({
    nPage: -1,
    cPath: "/btc-nas1/jyoung/_24X_fall_2012/pdf/INST240_sec1/INST240_sec1_fm.pdf",
    nStart: 0
    SyntaxError: syntax error
    1:Console:Exec
    undefined
    Help  would be greatly appreciated.

    Exactly, that's one of the problems with the code.
    Actually, Acrobat isn't always very consistent on this issue and it's best
    not to rely on the "this" object when working with multiple documents. In
    such cases I prefer to maintain a variable pointing to each document that I
    want to work with, since sometimes the "this" object changes during
    execution, and at other times it doesn't (and no, this is not very well
    documented).
    For example, if you extract some pages of a document to a new file, the new
    file is opened and becomes active, but is not pointed to by "this". So
    running this code (as a whole script!):
    this.extractPages();
    app.alert(this.path);
    Will show the path of the original file, not the newly extracted document.
    But if you run the same code one line at a time, the alert will show the
    path of the new temporary file created by the extractPages command...

  • Object for header and item

    Hi guys,
    Anybody knows which object may i use for show up a document and its items? I've looking in SBSPEXT* examples.. but i did not find anything interesting.
    My own solution should be in HTMLB.
    Any help will be rewards,
    Alexandre

    Did you check my weblog on that..?
    Display Hierarchy Report in BSP using TableView and Tableview Iterator
    Check it once, may be you are looking for the similar kind of output..

Maybe you are looking for

  • Graph is not getting displayed in R12

    Hello folks, Cureently m working on R12 upgrade project. And we have a report which is working fine 12 but the graphs are not getting displayed as like 11i. Could you plz any one help how to fix the issue. Note: There is no error is coming up. But in

  • Progress Bar or Progress Monitor for a system command

    Hello, I am running a DOS copy command in a Java Swing application. I understand that I can implement a Progress Bar or a Progress Monitor if I open the first file, read it, and write to a second file. But if I have a need to use the DOS copy command

  • Mail and Password Troubles. No good.

    I changed my Gmail password and now both my macbook and ipod will not accept the new password to sign in in Mail. I am 100% sure I'm entering them correctly, and I can sign in on a browser just fine. They tell me the "imap server" is incorrect. Pleas

  • Project manager question

    I'm doing multicam work, with lots of footage. PPro seems to be bogging down my system. Therefore, i've decided to export my multicam sequences into separate projects. My question is, if i grab the Main project, and the multicam pre-comp, does premie

  • Dynamic images and text flow

    Hi all, I have a project where I'm loading some HTML into an HTML-enabled dynamic textbox, along with some images, using the img tag. The problem I have is that no matter what I do, the text tries to flow down one side of the image (depending on whet