Problem with javascript in narrative mode

Hi gurus!

I'm trying to put conditional logic in a narrative view of my analysis. I found some advice and wrote that:

< script >

If ('@ {} {FIN01TIME}'== 'Period')

{

document. Write ("[b] fiscal year: [/b]@1 [b] Fiscal Quarter: [/b]@2 [b] fiscal year: [/b]@3 [b] Roll Up: [{/ b]@{FIN01ND} {} [b] cost center: [{/ b]@{FIN01CC} {} [b] currency: [{/ b]@{FIN01CURR} {}" "]]]]]]")

}

If (' @{FIN01TIME} {} '==' quarter ')

{

document. Write ("[b] fiscal year: [/b]@1 [b] Fiscal Quarter: [/b]@2 [b] Roll Up: [{/ b]@{FIN01ND} {} [b] cost center: [{/ b]@{FIN01CC} {} [b] currency: [{/ b]@{FIN01CURR} {}" "]]]]]")

}

If ('@ {} {FIN01TIME}'== 'Year')

{

document. Write ("[b] fiscal year: [/b]@1 [b] Roll Up: [{/ b]@{FIN01ND} {} [b] cost center: [{/ b]@{FIN01CC} {} [b] currency: [{/ b]@{FIN01CURR} {}" "]]]]")

}

< /script >

Everything works fine, but the problem happens when I "click" on my analysis paging buttons (see attached image: javascript_problem_paging.png). After clicking, it leaves me with a blank page that contains only view narrative. In addition, displays "error on page" message of warning in the status bar (see attached image: javascript_problem_afterclick.png)

I think that this problem occurs with the "onclick" javascript event. I tried to turn it off, but still does not work.

Any help will be appreciated.

Thanks for your time!

Kind regards

Fabian

Hi all!

I have my own answer, jeje.

Instead of using "document.write...". "I put another narrative with a view

control and set its content in "document.getElementById (.). innerHTML = "(le même code HTML)" ""

It works perfectly! I hope that this achievement will help someone else.

Kind regards

Fabian

Tags: Business Intelligence

Similar Questions

  • Mozilla is aware of the problem with protected in Flash Mode?

    Today I started to have problems to view integrated in Firefox 12 Flash content. I tried all the usual steps (for example to clear cache, disable extensions, update the plugin and then finally of this update to Firefox 13) but nothing worked.

    Then I found an Adobe forum which some contributors have experienced the same thing in the last days, and it seems to have had a problem with the Protected Mode in the latest version of the Flash player. I disabled this mode and everything now works perfectly again - so I thought I would bring it to your attention in case others have the same problem.

    The Adobe support article is here: http://forums.adobe.com/thread/1018071?tstart=0

    Hope you find it useful...

    Thank you, cor - el. Hope there is a fix before long, otherwise it doesn't seem to be that much interest in the application Adobe mode protected in the first place!

  • M30X: Problem with standby and hibernation modes

    Hello

    In my M30x, I configured my laptop to Hibernate when near the lid. However, when I turn on the computer after this hibernation, there is a problem with the sound settings - I cannot play any music or cannot use a microphone outside, unless I reboot. If reboot is required, then there is no sense to use this feature of hibernation. Also, sometimes after these Awakenings (turn on after hibernation) my mouse (touchpad) spontaneously turns off. This happens when I plug my pc on TV, then come back and close the cover. There someone experiencing similar problems and can help me? Thanks in advance

    [Edited by: admin on 8 May 05 08:02]

    Hello

    It is not easy to say what can be the cause of this problem. I very often use the hibernation mode and there is no problem that even several applications are open. You have this problem only if the device is connected to the TV or every time after hibernation mode?

    It will also be interesting to know if this occurs after each process of awakening or first several modes of hibernation.

  • Pavilion 15 laptop: problems with stop and "standby" mode.

    I upgraded from windows 8.1 for windows 64 bit home 10. I had problems with stop and goes into sleep mode and cannot be resolved, then I reinstalled windows 10. Everything worked fine for a few moments, and then the same problem reappeared. I can't stop or put my PC into sleep mode, unless I have first of all to make a restart. After a reboot, I am able to stop or go to sleep mode without problem. If I try to do either without a restart, the screen goes black and the indicator light remains lit. The only way I can get it to start then press on and hold the power button and force a shutdown down, then press the power button to restart the upward. I have another PC, a wafer think that Lenovox has been upgraded to windows Windows 7 10. This PC work fine with windows 10, no problem at all. It's just the HP Pavilion 15 who has these questions. It makes me crazy.

    Look through the tool of troubleshooting possible solutions here:

    http://support.HP.com/us-en/document/c03383935

  • Problem with the input query mode. FRM 41009, 40301

    Hi all

    I have a problem with the mode of input query. What can I say, I'm in the mode of input query, and I click on a button. I get the error THAT FRM-41009 displayed.

    Now, I've wanted handled. So I created a trigger of error in order to handle the error.

    IF ERR_CODE = 41009 THEN
    NULL;
    END IF;

    A problem is that when you use the null value, it will not terminate the mode of input query, and then I get frm-40301 error.

    Second, it's that I can't use exit_form in a trigger of the error.

    I am aware that I can press F4 to exit this mode, but I don't want to do whenever I'm sure I'll get the user complaints.

    Another solution would be to put the following code in the trigger when key pressed for each button in the form:

    If: system.mode = "ENTER-QUERY" then
    exit_form;
    end if;

    But I don't want to reproduce this code in my form.

    Please can you give me an idea how to handle this correctly?

    Thank you
    Michael

    PS: Version of the form = > ORACLE FORMS 10g (Forms [32 bit] Version 10.1.2.3.0)

    I have a problem with the mode of input query. What can I say, I'm in the mode of input query, and I click on a button. I get the error THAT FRM-41009 displayed.

    What is the code in the trigger of your button When-Button-Pressed (WBP)? Maybe you should check to see if the form is in the Mode query in your WBP rather than try and remove the error? In other words, eliminate error - do not delete it. :)

    If you want instead to remove the error, there is a technique to built-ins call restricted to a trigger that does not allow them. Do this by the use of a millisecond zero Timer. For example:

    /* Sample On-Error Trigger */
    DECLARE
      n_err_cd   NUMBER := ERROR_CODE;
      t_on_error TIMER;
      ZERO  NUMBER := 0;
    BEGIN
      IF ( n_err_cd = 41009 ) THEN
        /* Create Timer to execute Exit_Form() */
        /* to Cancel Query-Mode. */
        t_timer := Create_Timer('ON_ERROR', ZERO, NO_REPEAT);
      ELSE
        /* Handle all other errors here... */
      END IF;
    END;
    
    /* Sample When-Timer-Expired Trigger */
    DECLARE
      v_Timer  VARCHAR2(30);
    BEGIN
      v_timer := Get_Application_Property(TIMER_NAME);
    
      IF ( v_timer = 'ON_ERROR' ) THEN
        /* Notice, the timer name is case sensative! */
        Exit_Form;
      END IF;
    END; 
    

    I am aware that I can press F4 to exit this mode, but I don't want to do whenever I'm sure I'll get the user complaints.

    Well, it's just standard features of Oracle Forms. If you switch the Mode request form - you must run a query or cancel the query Mode! This is how it works. Your users need to understand that and accept it - just as they accept the functional also for other programs. ;) Another option would be to add a "Cancel request" button to your form and make it so it is enabled only when the form is placed in Query Mode. Just a thought...

    I personally prefer to prevent the occurrence of an error rather than remove the error. :)
    I hope this helps.
    Craig...

  • Problems with images in offline mode

    Hello, I'm coming back in video editing and I run into some roadblocks frustrating with Adobe Premiere Pro CS4.  I use one, what I discovered for cheap camera, Samsung SMX - F40. IM shooting resolution 'Fine TV', which I believe is 720 x 480.  By trial and error, I think I have a Preset of correct when creating my project sequence, because I successfully under the leadership and downloaded the video on YouTube that was my goal for this project. But he had problems all the time with the video going on offline so I had to re - change a lot.  Revisit the project final file only days laters, it is once more unusable because some clips are again in offline mode.  I try to re - link them, but the files are "format unsupported or damaged."  These are the same files with the same name in the same place that I used to create the video and he suddenly doesn't like them now.

    The files are .mp4, I read that this first seems to have problems with.  I used Bigasoft Total Video converter to change my .mp4 in .mp4 I read first would like better. But I still have the same issues. He's not either.

    I'm a bit lost and I was wondering if anyone has advice or solutions that could solve my problem.

    Welcome to the forum.

    This ARTICLE is about a bit of Offline media, but with this error message, it looks more like your fully-paid version of CS4 has been bitten with him back to Bug Trail. This has happened to multiple users and is mostly the result of the update of PrPro. A quick check, create a new sequence and see if you still all Presets of HD. It is likely that you do not have. This affects what it is MPEG, so HD or SD and it's just to quickly see what you have available.

    The "fix" is an operation of several stage and in this order:

    1. Disable, if possible (probably not, as the trial is not activated)
    2. Uninstall PrPro
    3. Download and run the Adobe CS5 of Tool Cleaner (latest version) several times, rebooting between each series.
    4. Install PrPro
    5. Immediately upgrade to the latest version before embarking
    6. Launch and test

    Good luck

    Hunt

  • It seems to be a problem with javascript on youtube (and other sites), because nothing happens when I click on my user name "tab" next to logout, when a menu needs to expand. I have unintalled FF, addons reinstalled, removed and checked the settings. Work

    Also on youtube, there is a problem with the bar of "James Blunt, live from London ' at the top of the page does not disappear when I click on the X.

    Check the dom.storage.enabled pref on the subject: config page and make sure that the pref is set to true.

  • Problems with Javascript on Mac, but not PC

    I run into some strange problems with a script in which Mac another user stops on a line nothing stores more than one State of history to the variable "actHist" while PC to run the script very well.  We will test the script one Mac to another later today, but I was wondering if there are any known issues with running scripts in Java on Mac vs PC database?  Here is a screenshot of the problem:

    MacError.png

    I can't understand WHY it stops on this area.  I tried of asigning the variable outside of the cause of the else statement that I was out of ideas, but it's the same no matter where I declare it.  The odd part is, that the same line is used elsewhere in the script without problems, it doesn't seem to work in the same place on a Mac (PC has no problems with it).  No idea why this is only a problem for the Mac and not any PC?

    Tom's right. It is a known problem and Adobe has been alerted to this topic. This error can also occur when you try to access the activeLayer of a document.

    I used this code for embarrassing lines like this and it worked for me:

    try {
       doc = app.activeDocument;
    } catch  (e) {
       $.sleep(500);
       var desc = new ActionDescriptor();
       desc.putEnumerated(cTID("Stte"), cTID("Stte"), cTID("RdCm"));
       executeAction(cTID("Wait"), desc, DialogModes.NO);
    
       doc = app.activeDocument;
    }
    

    It did not work for others. Someone suggested using the:

       try {
          doc =  app.activeDocument;
    
       } catch (e) {
          app.refresh();
          doc =  app.activeDocument;
       }
    

    I have not tried because I don't have a reproducible test case.

  • Problem with JavaScript coding.

    I'm new to JavaScript and even coding of the site. I am filling a form dynamically and manage with FF7.

    To begin I couldn't even pass the name of the form as an argument with FF7. After simplifying the code to see what is fundamentally wrong, I came to something funny.

    The code below at least the input element gets initiated, but if I just declares a variable then it doesn't!

    With IE8 and even IE6 all my original code worked perfect. I could fill the entire form, and then change dynamically.

    What I do that FF is not?

    Thank you.

    Rick Trelles

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html><head>
    
    <script type="text/JavaScript">
    function fillInput()
    {
    alert("entered to populate");
    
    // just by uncommenting this single line there is problem
    //var myform = dateform1;
    
    document.getElementById('tofill').value = 999;
    
    // of course this never works
    //myform.elements["tofill"].value = 999;
    }
    </script>
    </head>
    
    <body onload="fillInput()">
    
    <FORM NAME="dateform1">
    <b>Input:</b>
    <input id="tofill" size=4 maxlength=4  ></input>
    </FORM>
    
    </body>
    </html>

    Try announcement Web development / standards evangelism MozillaZine forum. The helpers there are better informed on the problems of development of web page with Firefox.

    http://forums.mozillazine.org/viewforum.php?f=25

    You will need to register and log in to post in this forum.

  • 4 b 2 is a problem with javascript

    Error after upgrade

    This has happened

    Each time Firefox opened

    After upgrading to 4 b 2

    User Agent

    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; .NET CLR 2.0.50727 .NET CLR 3.0.4506.2152; Trident/4.0)

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of your modules is causing your problem (switch to the DEFAULT theme: Tools > Modules > themes).
    See the extensions, themes and problems of hardware acceleration to resolve common troubleshooting Firefox problems and troubleshooting questions with plugins like Flash or Java to solve common Firefox problems

    If this does not work in safe mode and then disable all your extensions and then try to find out who is causing by allowing both the problem reappears.
    You can use "Disable all add-ons" window the startup of Firefox to solve the issues in Safe Mode to disable all extensions.
    You will need to close and restart Firefox after each change via "file > exit ' (Mac: ' Firefox > leave";) Linux: "file > exit ')

    You can also discuss issues with Namoroka 3.6 and 4.0 of minefield every night and alpha/beta builds on the MozillaZine Firefox Builds forum.
    This forum is designed to discuss these issues.
    You must register on MozillaZine forum site to post in this forum.

    See http://forums.mozillazine.org/viewforum.php?f=23

  • Problem with VI in Normal Mode, but not in execution to highlight

    Hi all

    This is my first post in this forum and I hope you can help me. I'm sorry for my bad English, English is not my main language.

    Now to my problem. I did a CNC with Labview machine, the machine has been built with a Lego Mindstorms NXT.

    The VI should read the lines in a text file, which a good movement for engines (G-Code). Mindsotrms LEGO NXT is connected via USB to the PC and the computer races VI target Mode. The VI is made in the 2011 Version of Labview with the Addon of NXT from Lego.

    Now the VI is finished, but he's going to correct work only in the Mode of execution to highlight (but he engines are not sync and his extremely slow). When I try to run the VI in normal mode, the engine for the port B does not work.

    Please can you help me.

    In the attachment, there is the VI (and an example of the G-Code (Code G example of Quadrat) file.

    Thank you very mutch.

    Kind regards

    Alex

    Your control loops seem to run (using all the CPU on the NXT loading) independent and probably cause famine across the loop.

    Add a delay here to minimize the problem.

    Not sure if it does help.

    BR,

    / Roger

  • Problems with Javascript Adobe CD on Mac

    over the past 18 months, I have created several forms several pages using Acrobat Pro X that have buttons with an icon image and use JavaScript. Users had no problems until recently. Now the CD Player Mac users cannot see the icons AND the s of Javascript do not work. Is this a common isue? Is there a solution? HELP Please!

    To ensure that users using Acrobat Reader, not Apple Preview.

  • problem with javascript in the page jspx

    Hello

    using the last jdev from RTO 11 g.

    I'll have more javascript which works fine if I try out jdev using a html file but fails when I run the page with the error:
    OracleJSP error: oracle.jsp.parse.JspParseException:
    Error: oracle.xml.parser.v2.XMLParseException (/ adflib/myapp/setup/ui/page/CloseBrowser.jspx):
    [Line no.: column 37 #: 28: name expected instead of].


    JavaScript:

    < af:resource type = "javascript" >
    function getCompId (name) {}
    name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); "
    regexS var = ' [------? &] ' + name + ' = ([^ & #] *)';
    var regex = new RegExp (regexS);
    results var = regex.exec (window.location.href);
    If (results == null) return "";
    otherwise return results [1];
    }
    < / af:resource >

    Hello

    JSPX is a strict xml page... the problem is that your function has a few characters that are interpreted as part of the xml...
    As far as I know using & in xml are not valid... you use & amp; instead...
    so, you should try including your script inside cdata like this

    
    
  • Problem with Javascript and ActionScript setting / getting variable timing

    Hello world

    The course

    I created a training course, which will run standalone on our intranet for internal staff. Despite the (known) limitations, I use Javascript to validate the form and open a window of e-mail, for the staff member to click Send confirm that they have completed the course. Without a web server or LMS to use, what seems easiest to obtain confirmation of completion of the course. The form itself works very well and we have tested it with some members of staff.

    I created a slide in Captivate that contains the form of confirmation with a "submit" button. I added a next button, which appears disabled until the user submits the form successfully.

    The problem

    When the user clicks on send, I call a conditional Action as follows:

    • If 1 = 1 (i.e. always do this)
      • Javascript call for:
        • Validate the form
        • If it is valid
          • Open e-mail window
          • Set m_VarHandle.Confirmation_Email = 1
    • If Confirmation_Email = 1
      • Select the next button

    Unfortunately, by filling out the form correctly and clicking on send, the next button is not enabled (the fine again active button). On further testing, it seems that the Javascript has finished running before ActionScript moves on the next decision. So when he checks the value of Confirmation_Email it has not yet been fixed and the next button is not enabled.

    Any ideas how I can fix this problem?

    Thank you

    Sarah.

    Hello world

    I bypassed this problem as follows.

    • Added a Clickbox that appears for 0.5 seconds with a break
    • Created a disabled button is visible in the output, which is displayed for 0.8 second
    • Updated the timeline, so that the next button (active) appears after 0.8 seconds for the rest of the slide
    • Added a second Clickbox located to 1.0 second with a break at the end of the slide (2.0 seconds)
    • Updated Javascript code to set cpCmndResume to 1 when the form is validated successfully

    This results in the desired behavior:

    • The slide plays up to 0.5 seconds and stops due to the first Clickbox
    • The user can fill out the form at their leisure and submit.
      • If the validation fails, the user must correct the form and click on submit
      • If the validation is successful, the reading recovery
    • When playback is resumed, he passes the 0.8-second mark. The following disabled button disappears and the next active button appears. Playback continues until the second 2.0 mark then paused because of the second Clickbox
    • The user can click on Next at their leisure

    Thanks for all the reading - hope it will be useful!

    See you soon

    Sarah.

  • Problem with javascript call

    Hi all

    I created a javascript function to show and hide a couple of divs as follows, it worked when I used radio buttons, but I had to exchange them for pictures and nothing happens

    < script type = "text/javascript" >

    function gcg_radio_check (form_type) {}

    If (form_type == 'pro') {}

    document.getElementById("devis").style.display = 'block ';

    document.getElementById("devis_part").style.display = 'none ';

    }

    If (form_type == 'part') {}

    document.getElementById("devis_part").style.display = 'block ';

    document.getElementById("devis").style.display = 'none ';

    }

    }

    < /script >

    I'm calling him but he does nothing... Here is the HTML code. Help, please!

    < a href = "javascript:gcg_radio_check (value); "name ="gcg_formtype"class = 'pro' value = 'pro' > < / a >

    < a href = "javascript:gcg_radio_check (value); "name ="gcg_formtype"class = 'part' value = 'part' > < / a >

    Thank you very much

    Martin

    OK problem solved, it was not recognizing the value, with the following HTML code, it works: -.

    Thank you to those who have watched

Maybe you are looking for