Add annotations with JavaScript

Hello,
I'm currently writing a JavaScript function (that will be executed in a JSP page) to add annotations to PDF files. So far, so good. Actually everything is working as intended except one thing: the position of the annotation. Somehow, it always ends up at position 0,0 (bottom left) of the document with a size of 0, but I know it's there because I can see it in the list of comments. Here is my JavaScript function:
function annotPdf(src)
     // Create the ActiveXObject
     var pdf = new ActiveXObject('AcroExch.PDDoc');
     // Variables
     var pdfJS;
     var annot;
     var printParams;
     var page;
     var rectSize = new Array();
     // Open PDF
     pdf.Open(src);
     // Determine where to place the annotation
     page = pdf.AcquirePage(0);
     page = page.GetSize();
     rectSize[0] = 25;
     rectSize[1] = page.y - 50;
     rectSize[2] = page.x - 25;
     rectSize[3] = page.y - 25;
     // Get the JSObject
     pdfJS = pdf.GetJSObject();
     // Add the annotation
     pdfJS.addAnnot({page: 0, type: 'FreeText', rect: rectSize, author: 'Automated', contents: 'Test'});
     // Printing
     printParams = pdfJS.getPrintParams();
     printParams.interactive = -1;
     printParams.firstPage = 0;
     printParams.pageHandling = printParams.constants.handling.fit;
     // pdfJS.print(printParams);
     // Save instead of printing for testing
     pdf.Save(1, "C:/Tempo/test.pdf");
     pdf.Close();
Again, everything works. The annotation is created, but not positioned (as if rect was not doing its job). Now, if I open the same PDF document with Adobe Acrobat 9 and go into the JavaScript Debugger and put:
this.addAnnot({page: 0, type: 'FreeTest', rect: [25,742,1199,767], author: 'Automated', contents: 'Test'});
It correctly adds the annotation to the position I want. My theory is that passing an array with Javascript to add an annotation is bugged, because I can do the exact same thing with VB (Pass an array of Integers to rect) and it works perfectly!
Anyone could help me find a way to make my function work?
Thanks, Rukk.

Oops, my bad. It's installed on client not server. My mistake.
As I said, the ActiveX has no problem to instantiate. That part works. As I said in my first post, I can open my PDF file, add an annotation to it, print it, etc. The problem I have is that I can't decide where to put my annotation (with the rect property). Please refer to my first post.
Again, thanks for your answer.
Edit:
I had to retype it, because when I did copy & paste it added lot of extra blank line (that I wasn't able to delete) and formatting was a bit weird.
It' a typo.
Message was edited by: Rukk

Similar Messages

  • How can I group two annotations with JavaScript?

    I create two annotations with JavaScript:
    var annot1 = this.addAnnot({
                      page: 0,
                      type: "Square",
                      rect: [150, 150, 180, 180],
                      name: "OnMarketShare",
                      author: "A. C. Robat",
                      contents: "This section needs revision."});
    var annot2 = this.addAnnot({
                      page: 0,
                      type: "Square",
                      rect: [200, 200, 300, 300],
                      name: "OnMarketShare",
                      author: "A. C. Robat",
                      contents: "This section needs revision."});
    How can I group them with JavaScript?

    Can I select them in JavaScript Code?
    like:
    annot1.selected = true;     //wrong JavaScript code.
    annot2.selected = true;     //wrong JavaScript code.
    annot3.selected = true;     //wrong JavaScript code.
    annot4.selected = true;     //wrong JavaScript code.
    If I can do these, I can group them easily : right-click them, and then, click "group" button.

  • Add annotation with Adobe Reader

    Hello,
    We have gotten the RIKLA from Adobe.It is said that PDPageAddNewAnnot will work on any PDF document which has been Reader-Enabled for commenting.But I found it can't work.Is there other method to add annotation? Or maybe I use the wrong method.
    Best regards!

    Thanks all.
    I can make the transformation now. But there is still a big problem. After add annotation using COS API, how to notify Acrobat to redraw? Each time I had to minimize the Acrobat to make the annotation show.
    Leonard Rosenthol said there are some functions to do that. I have tried some function such as PDPageNotifyContentsDidChangeEx,also used these function:
    AVDoc avDoc = AVAppGetActiveDoc();
    AVPageView page = AVDocGetPageView(avDoc);
    AVPageViewInvalidateRect(page, NULL);
    AVPageViewEndOperation (page);
    AVPageViewInvalidateRect(page, NULL);
    AVPageViewDrawNow(page);
    ,but still can't . Can you tell me how to let the annotation show immediately?
    Best Regards!

  • Is it possible to add color context row with javascript?

    Hi,
    Is it possible to add color context rows for a graphic object with javascript?
    Thanks.

    The match syntax changed between version 12.0 and 12.1, so my recommendation to you is to build an iGrid template the way you would like to do it with javascript, then export the display template from the workbench. 
    Open the template in a text editor and observe the format for the MatchValues, MatchColumns, and MatchColors strings.
    Then your javascript will follow the document.APPLET.gridObject().setMatchXXX("xxxx"); as shown in the script assistant.

  • APPCRASH in Acrobat.dll after adding annots with AFExecuteThisScript()

    I have a C# app that displays PDFs in a WebBrowser control.   I also have a plug-in that loads annotations into the PDF (i.e. doc.addAnnot(<propertys>)) via calls to AFExecuteThisScript().  It works; the annots are loaded successfully.  However, whenever I do this, I get an APPCRASH after the app has terminated. Since it happens after the app exits, it's out of the debugger's scope.
    Since this problem happens only after my plug-in adds annots to the PDF, I'm thinking that something Javascript-related is not being released before the app exits.  I've tried doc.dirty = false after adding each annot, and also docClose() in my plug-in's AVDocWillClose callback, but it doesn't do any good.
    This is NOT caused by AFExecuteThisScript() per se.  In other words, I can do AFExecuteThisScript with or without a return value and there's no APPCRASH.  It only seems to happen when I modify the PDF (i.e. add annots) via AFExecuteThisScript().
    This is not a showstopper for me but merely an irritant, because it always happens when the application terminates.  Incidentally, it did not seem to happen in Acrobat 8.
    Here is the problem signature that is produced in VS 2005 after the app terminates.
    Problem signature:
      Problem Event Name:    APPCRASH
      Application Name:    DrsDisposition.vshost.exe
      Application Version:    8.0.50727.42
      Application Timestamp:    4333d898
      Fault Module Name:    Acrobat.dll
      Fault Module Version:    9.3.0.148
      Fault Module Timestamp:    4b3074b9
      Exception Code:    c0000005
      Exception Offset:    0013286c
      OS Version:    6.1.7600.2.0.0.256.48
      Locale ID:    1033
      Additional Information 1:    0a9e
      Additional Information 2:    0a9e372d3b4ad19135b953a78882e789
      Additional Information 3:    0a9e
      Additional Information 4:    0a9e372d3b4ad19135b953a78882e789
    Can anyone help?
    Thanks.

    I modified my plug-in to enable it when I open a PDF from the file system with Acrobat.exe, and then create a single annot with AFExecuteThisScript().
    Everything works fine, the annot is created, and there is no APPCRASH when I quit Acrobat.
    I just needed to modify my AVDocDidOpen and AVIdle callbacks to make this work (to allow me to work with PDFs opened in Acrobat.exe from the file system), so everything else about the plug-in (initialization through cleanup) is the same.
    One of the last lines of output was:
         'Acrobat.exe': Unloaded 'C:\Program Files\Adobe\Acrobat 9.0\Acrobat\Acrobat.dll'
    It seems to me that the problem is related to the WebBrowser control, which apparently does not release Acrobat.dll when it destructs.  I've tried manually releasing Acrobat.dll in my app code after Application.Run(theForm); returns, i.e.
         IntPtr handle = GetModuleHandle("Acrobat.dll");
         if (!handle.ToString().Equals("0"))
              FreeLibrary(handle);
    but that causes the app to crash on FreeLibrary().
    I wonder if it would make any difference if I were to manually load Acrobat.dll in my code, rather than waiting for the WebBrowser control to do it when it opens the PDF.  I noticed that one of the first output lines from Acrobat.exe (after the windows libraries are loaded) is
    ADOBE_READLOGGER_CMD:COMMENT:BeforeOROADOBE_READLOGGER_CMD:COMMENT:AfterORO'Acrobat.exe': Loaded 'C:\Program Files\Adobe\Acrobat 9.0\Acrobat\Acrobat.dll', No symbols loaded.
    Incidentally, I'm unable to debug my plugin when I run my app in VS 2005.  There's no process that I can attach my plug-in debugger to, probably because Acrobat 9 uses in-process DLLs to render PDFs in browsers.

  • Remove or isolate part with JavaScript?

    Hi folks,
    as you know you can remove or isolate parts in the modelhierarchy with a few clicks. Now I want to do exacactly the same with JavaScript to add this function to a button or something similar.
    So I can have a button like "show part xy" and only this part is shown in the 3D view and other parts are not visible.
    Is there any chance to do this?
    I think there's a workaround with creating an animation like an exploded view where certain parts are removed. But a simple funtion would be much more easier I think.
    thx in advance,
    Tobias

    Hi,
    I didn't check whether the following code actually compiles and works, but maybe it does what you're trying to accomplish...
    [3D annotation JavaScript code, associated with the container for Your embedded U3D model]
    function makeAllMeshesInvisible ( )
    var howManyMeshesInScene = scene.meshes.count;
    for ( m=0; m < howManyMeshesInScene; m++ )
    var myMesh = scene.meshes.getByIndex(m);
    console.println("Making mesh " + myMesh.name + " invisible.");
    myMesh.visible = false;
    function makeMeshVisible ( meshName )
    var myMesh = scene.meshes.getByName(meshName);
    if ( myMesh )
    myMesh.visible = true;
    else
    console.println("There is no mesh named " + meshName);
    [Document JavaScript code, e.g. associated with a button]
    // getAnnots3D(pageNum)[annotIdx]
    context3D = getAnnots3D(0)[0].context3D;
    context3D.makeAllMeshesInvisible();
    context3D.makeMeshVisible("nodeName");
    Please note that the 3D viewer must be active for the button to work properly...
    I hope it works and helps!
    Sebi

  • Links that open a new window with javascript:void(null); do not work in 3.1

    I've been noticing that any site I go to that opens content in a new window with "javascript:void(null);" will be ignored by Safari 3.1. The links work in Firefox and used to work in Safari as well. Any suggestions?

    General rule of thumb in the Mac universe...
    When Safari is updated most if not all third party add-ons break. That's because most don't play by the rules. The developer thinks they know how to do it better than Apple so they just do it their way. So the first rule of survival is to KNOW what you have installed on your machine at all times. Use something like textedit to create a document listing all of the third party stuff you have installed and religiously update the list. Second rule is to wait a few days before applying an update. Third rule is to visit your third party developers' sites and make sure their little gadget is compatible with the new Safari update.
    Being aware of things will make life much easier for you in the long run.

  • How to get real value from selectOneChoice with javascript?

    Hi,
    How to get real value from selectOneChoice with javascript? The event.getNewValue() only gets me the index of the selected item, not the value/title.
    JSF page:
    <af:resource type="javascript">
    function parseAddress(event)
    alert("new value: " + event.getNewValue());
    </af:resource>
    <af:selectOneChoice label="Location:" value="" id="soc4">
    <af:clientListener type="valueChange" method="parseAddress" />
    <f:selectItems value="#{Person.locations}" id="si7"/>
    </af:selectOneChoice>
    HTML :
    <option title="225 Broadway, New York, NY-10007" selected="" value="0">225 Broadway (Central Office)</option>
    <option title="90 Mark St., New York, NY-10007" value="1">90 Mark St. (Central Office)</option>
    Thanks a lot.

    Something I was missing ,
    You need to add valuePassThru="true" in your <af:selectOneChoice component. I have personally tested it and got the actual value in alert box. I hope this time you got the real solution. You can also test the following code by your end.
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1">
    <af:form id="f1">
    <af:panelBox text="PanelBox1" id="pb1">
    <af:selectOneChoice label="Set Log Level" id="soc1"
    value="#{SelectManagedBean.loggerDefault}"
    valuePassThru="true">
    <af:selectItem label="select one" value="First" id="s6"/>
    <af:selectItem label="select two" value="Second" id="s56"/>
    <af:clientListener method="setLogLevel" type="valueChange"/>
    </af:selectOneChoice>
    <af:resource type="javascript">
    function setLogLevel(evt) {
    var selectOneChoice = evt.getSource();
    var logLevel = selectOneChoice.getSubmittedValue();
    // var logLevelObject = AdfLogger.NONE;
    alert("new value is : " + logLevel);
    //alert(evt.getSelection);
    //alert(logLevelObject);
    evt.cancel();
    </af:resource>
    </af:panelBox>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>

  • Web.show_document() with javascript

    Hi Guys,
    I'v been searched this forum about web.show_document() with javascript.
    I saw some threads said
    I can do like
    WEB.SHOW_DOCUMENT ('javascript:window.open("http://www.google.com","","fullscreen=no,titlebar=no,location=no,toolbar=no,menubar=no,status=no,resizable=yes");self.close()','_blank');
    and someone said it worked, but it doesn't work in my machine.
    also some one said the javascript engine is not included in Form 10.1.2, so I can not use WEB.SHOW_DOCUMENT function like above.
    My form builder is 10.1.2.0.2 (Production), os is xp sq2 ,ie 6.(ie6 has some tighter security)
    I want to get clarification about this function, can i use the javascript on it or not ? I really want the pop up window without toolbar and customize size. I need do some configuration in formweb.cfg also?
    Thanks in advance. I appreciated every response.
    Appcat

    Hi Jan,
    Thanks for your reply. I check the metalink about it.
    The first solution is
    1. Make forms Developer URL a trusted site in IE to allow script executions.
    For that open Internet Explorer->Internet Option-> Security.
    Select the "Trusted Sites" Option.
    Click on the Sites Button.
    Add the Developer Suite URL in that.
    for example
    http://<Yourmachinename>:8889/
    It doesn't work in my machine ,still can not activate the javascript.
    The second solution is
    2. Place the script invocation code in a html file in Oracle_home/forms/server directory and call it.
    For example :
    Create a simple form.
    In Forms Trigger :
    web.show_document('http://<Yourmachinename>:8889/file.html');
    In the file.html you may enter the code, for example:
    <HTML>
    <HEAD>Heading</HEAD>
    <BODY>
    <SCRIPT LANGUAGE="Javascript">
    window.open("http://www.yahoo.com","_self");
    </SCRIPT>
    </BODY>
    </HTML>
    It also doesn't work in my machine, the problem is http://<Yourmachinename>:8889/file.html can not be found, even i put it under the Oracle_home/forms/server folder, but i click it directly ,the javascript works. that means the URL http://<Yourmachinename>:8889/file.html is incorrect or I should put the html file into other directory. And I also checked the default.env,FORMS_PATH=D:\DevSuiteHome\forms.
    anything wrong with my env?
    Do you have any idea about it?
    Thanks,
    Appcat
    Message was edited by:
    user577805
    Message was edited by:
    user577805

  • The combination of report with javascript

    Hi guys,
    I want to use report combined with javascript as follows:
    <APPLET NAME="ASMGridAppAssembly" ...
    PARAM NAME="QueryTemplate" VALUE="..../Reports/PTSD/AsmNCMFRXQuery">
    <PARAM NAME="DisplayTemplate" VALUE=".../Reports/AsmGrid">
    <param name="Param.1" value=>
    <param name="Param.2" value=>
    </APPLET>
    document.ASMGridAppAssembly.getQueryObject().setParam(3,Param3);
    document.ASMGridAppAssembly.getQueryObject().setParam(4,Param4);
    Can I achieve this?
    Thanks,
    Tony.
    Edited by: Tony Hu on Aug 8, 2008 7:07 PM

    Mike - Huh?  If javascript is called to an active applet on the page that received Param.1 and Param.2 through param overrides in the html (like shown in Tony's post) they will absolutely override any static ones that are in the query template itself.
    Tony - you need to instruct the applet to run the query with your 2 new parameters, so add this line after setting param 3 and 4:
    document.ASMGridAppAssembly.updateGrid(true);
    Regards,
    Jeremy

  • PDF annotation with link, image doesn't show, only in print or Google Chrome, not Adobe Reader main

    We are creating PDF files with annotations, we are using the O2 Solutions PDF Library for C#. We used to create PDFStampAnnotations, but now we want to make the images clickable, to navigate to the URL belonging to the image.
    Therefore, we are now using PDFLinkAnnotations, with a PDFImageAppearance.
    We set the flags of the annotation to Print.
    However, the annotation won't show in the PDF in Adobe Reader. It does show in the Google Chrome inline PDF viewer.
    It also shows in the print preview window in Adobe Reader.
    But it does not show in the normal view in Adobe Reader. What we do see is, when hovering over the rectangle that should contain our image, our mouse cursor becomes a hand and a tooltip with the link is displayed. If we click, everything works as expected. But we don't see an image!
    What can we do about this? This is really annoying, as I don't have a clue why it won't work. Actually, to me, this looks like a bug in Adobe Reader?
    Old (working, without link):
    =================================================================================
    15 0 obj
    <</Contents (DEV-1)
    /M (D:20130222103743+01'00')
    /Subj (TigrisTag)
    /Subtype /Stamp
    /F 4
    /Name /Custom
    /AP <</D 16 0 R
    /N 16 0 R
    >>
    /CreationDate (D:20130222103743+01'00')
    /Rect [560.349976 10.000023 601.999977 51.650024 ]
    /NM (97c87adc-5494-440a-b0b4-eb606e358169)
    /T (name)
    /P 4 0 R
    /Type /Annot
    >>
    endobj
    16 0 obj
    <</Resources <</XObject <</ImageStamp 17 0 R
    >>
    /ProcSet [/PDF /Text /ImageB /ImageC ]
    >>
    /BBox [0 0 39.20008 39.20008 ]
    /Name /Form_4943204746964B4C8B728A4CBD79B339
    /FormType 1
    /Length 41
    /Src (XO:/Form_4943204746964B4C8B728A4CBD79B339)
    /Type /XObject
    /Subtype /Form
    /Matrix [1 0 0 1 0 0 ]
    >>
    stream
    39.2001 0 0 39.2001 0 0 cm
    /ImageStamp Do
    endstream
    endobj
    17 0 obj
    <</Width 245
    /ColorSpace [/Indexed /DeviceRGB 1 18 0 R ]
    /BitsPerComponent 1
    /Filter /FlateDecode
    /Length 471
    /Subtype /Image
    /Height 245
    >>
    stream
    (stream contents)
    =================================================================================
    New (not working, with link):
    =================================================================================
    18 0 obj
    <</Resources 4 0 R
    /Type /Page
    /Group <</CS /DeviceRGB
    /S /Transparency
    /I true
    >>
    /Annots [19 0 R ]
    /MediaBox [0 0 595 842 ]
    /Contents 23 0 R
    /Parent 3 0 R
    >>
    endobj
    19 0 obj
    <</Contents (TigrisTag)
    /A <</S /URI
    /URI (http://localhost:50830/publications/code/DEV-8)
    >>
    /M (D:20130225170939+01'00')
    /Subtype /Link
    /F 4
    /NM (6a41409d-b8fb-44b6-8a7c-ab1c73088869)
    /Name /Image
    /AP <</D 20 0 R
    /N 20 0 R
    >>
    /Rect [544.506958 9.999985 585.000015 50.493042 ]
    /BS <</W 0
    >>
    /CreationDate (D:20130225170939+01'00')
    /H /I
    /P 18 0 R
    /Type /Annot
    >>
    endobj
    20 0 obj
    <</Resources <</XObject <</ImageStamp 21 0 R
    >>
    /ProcSet [/PDF /Text /ImageB /ImageC ]
    >>
    /BBox [0 0 39.20008 39.20008 ]
    /Name /Form_119A6CEBB1C8452D962814D585C640CC
    /FormType 1
    /Length 41
    /Src (XO:/Form_119A6CEBB1C8452D962814D585C640CC)
    /Type /XObject
    /Subtype /Form
    /Matrix [1 0 0 1 0 0 ]
    >>
    stream
    39.2001 0 0 39.2001 0 0 cm
    /ImageStamp Do
    endstream
    endobj
    21 0 obj
    <</Width 245
    /ColorSpace [/Indexed /DeviceRGB 1 22 0 R ]
    /BitsPerComponent 1
    /Filter /FlateDecode
    /Length 467
    /Subtype /Image
    /Height 245
    >>
    stream
    (stream)
    endstream
    endobj
    =================================================================================

    Thank  you for your reply.
    Indeed, I tried saving a PDF that had the "default appearance", it shows exactly the same. So it looks like it "can't" show the image.
    However, of course, I do want the image to be shown. How can I achieve this? How can I tell Adobe Reader (and other PDF viewers) I really really realllyyyyy want to see that image there? I believe I'm not doing anything really exotic, right? There must have been tons of other people that wanted to do the same thing, I guess?
                        var annotation = new PDFLinkAnnotation
                                    Action = new PDFUriAction(this.GetCodeUrl(code)),
                                    Contents = AnnotationIdentifier,
                                    Appearance = new PDFImageAppearance(bitmapImage),
                                    DisplayRectangle =
                                        new DisplayRectangle(
                                        barcodeLocationInfo.X,
                                        barcodeLocationInfo.Y,
                                        barcodeLocationInfo.Tsw,
                                        barcodeLocationInfo.Tsh),
                                    Flags = Flags
                        pdfPage.Annotations.Add(annotation);

  • How can i optimize my SEARCH ENGINE???I use godaddy.i contact them and they give me this conclusion:Search engines are not pulling up your other pages on your website because it is created with javascript. the content on the pages, (photo gallery.....

    conclusion from godaddy:
    Search engines are not pulling up your other pages on your website because it is created with javascript.
    the content on the pages, (photo gallery, My Recipes/Blog, History, Friends) need to be formatted to HTML, PHP or CSS. No search engines (google, Yahoo, Bing) can crawl//analyze webpages built with javascript.
    See if Apple allows iweb to create the pages in HTML format and ask how to make those changes.
    I spend more then 1 hour on the phone with them but we didn't find the solution...
    please i need help because like this nobody can rich my website...
    www.chefdiego.com
    thank you

    The part of iWeb pages that give the search engines problem is the navbar.  That's javascript based.  One way to get around that is to create another blank page in the site that's not  included in the navbar. 
    Add a text based navbar in that page with just the other pages in the site. 
    Also you can use that page for creating the sitemap for Google at Create your Google Sitemap Online - XML Sitemaps Generator.
    Have you let Google know your site exists? This website describes how to get it recognized: Get your iWeb website found in search engines like Google Yahoo MSN and Bing.
    OT

  • C# control event handling with javascript

    How can I get javascript to execute for "onchange" / "OnSelectedIndexChanged" event instead of a CodeBehind method? I think "OnSelectedIndexChanged" event has to be handled by CodeBehind; but how can I replace that (or onchange) with
    a javascript event handler?
    I have the following in my xyz.ascx file:
    <asp:DropDownList ID="ddlTypeCar" CssClass="BatsRefAddressTypes" runat="server"
                      onchange="javascript: testAlert();"
                      OnSelectedIndexChanged="ddlTypeCar_SelectedIndexChanged"
                      AutoPostBack="True" />
    I could not get the javascript to execute, even though I removed OnSelectedIndexChanged="ddlTypeCar_SelectedIndexChanged" and/or set AutoPostBack="false".
    Additionally, I tried added the following in xyz.ascx.cs Page_Load() method.
    ddlTypeOfAddress.Attributes.Add("onchange", "javascript: testAlert();");
    which didn't help.
    Thanks for your help in advance.

    Hi,
    you can control client events instead of server events with javascript
    look this url for more information
    http://www.w3schools.com/js/js_events.asp
    Regards

  • Issue with JavaScript

    I keep on getting some popup messages saying that there is some illegal operation with Javascript.

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Change "choiseListe" values with javascript

    Dear,
    Is it possible to change "choiseListe"  values  with javascript.
    Exemple il have a choseListe :
         Country //// Values
          USA            us
          France         fr
          Spain           sp
    When il click in a botton i whant to change this choceListe :
         Country //// Values
          Morocco           ma
         Portugal           pt
    Thanks

    Hi,
    Listboxes and dropdowns can be scripted against without too much difficulty.
    You would need something like this in the click event of the button:
    listbox1.rawValue = null; //clear previous choice
    listbox1.clearItems(); //clear the list items
    listbox1.addItem("Moocco", "ma"); //add new list items
    listbox1.additem("Portugal", "pt");
    Hope that helps,
    Niall

Maybe you are looking for

  • Error while importing class form jar [SOLVED]

    Hi, I'm trying to import a class from a jar file in my java class. (import package.ClassName). After typing the ClassName, JDeveloper suggest to add the import statement. After clicking that option JDeveloper shows the following error: Title: Apply F

  • C7 - e-mail -i need a new mail-konto where i can ...

    hello, when i want to check my mails via my c7. i have a domain with a special mail-entry and a special outgoing mail server. when i want to add a new mailbox on my c7 i can only choose such as gmail.com and so on... I have one "konto" for voice mail

  • How to setup audittrial in R12.1.1

    Hi all I want to setup Audittrial for Payables and Recievables in R12.1. Please provide a document id or any alternate document. Thanks in advance.

  • Secure flex4 data requests

    hello. im using drupal as cms that generates for me the XML of the content to flex, i wonder how i can make the data secure as possible , or if no one has idea about drupal, i would like to hear about how you secure your XML data requests ..... im us

  • Changing device type of external Bluetooth speaker

    I have an Aura Blunote speaker. I am attempting to connect wirelessly. It will only connect as a 'headphones' type device. Can it be changed to a 'speaker' type device as this will drastically improve the sound quality? Changing the device type does