Use a script to update the MaxL substitution variables

We use the Essbase 11.1.1 version. Can we use MaxL script for updating the substitution variables rather than using the EAS web console? We want to put the MaxL script in a batch file and plan its Windows scheduled task.

Thanks for your help!

Hello-

Yes. Here is an example of script maxl-

connection "Hypadmin" "#" on myessbaseserver.
spool to 'mymaxl.log ';

/ * Definition of the substitution variable * /.
ALTER database appname.databasename set variable "CurMonth" "August";

variable display;

spool off;
Disconnection;
Exit;

You can call this maxl from a batch file at the request of windows scheduled task.

Concerning

Tags: Business Intelligence

Similar Questions

  • Update the #NOTIFICATION_MESSAGE substitution string #.

    Hello

    I use a process that updates a report based on provided information of editable columns.
    The problem is that, if in this process, I encounter an exception, for example 'ORA-01843 a month not valid' and I manipulate it in the EXCEPTION block
    WHILE OTHERS then
    IF (SQLCODE =-1843) THEN
    +: P_ERROR: = ' error: some dates do not months contain valid (DD-MON-YYYY)'; +
    END IF;
    +...+

    the process 'Error Message' Message the process section, appears only in the error page, but I want to show the error in the same page of the report.
    So I think to update the #NOTIFICATION_MESSAGE substitution string # with my text from the + & block handle P_ERROR. + I've initialized in the exception.
    How can I do?

    Thank you very much
    Adela

    Hello

    How about if you check how to use apex_application.g_notification instead of the own element?

    Could help you
    Notification/success message of the parameter when using owa_util.redirect_url
    Re: apex_application.g_notification or g_print_success_message does not work

    BR, Jari

  • [Req] script to update the links in Indesign using spotlight

    Hello

    I have a challenge, can someone help me please?

    I'm a graphic designer from Holland and I work with a lot of Indesign documents

    which links are missing because they are displaced, so that they are some share on our server.

    I have several scripts to connect the missing links, but they are slow,

    because they each directory and in each subdirectory. It takes some time.

    The apple search engine, Spot, is much faster.

    So I think that I have this great idea, I thought about the following:

    I select a missing link in the linkpanel in Indesign.

    Then I run the script.

    The path of the missing link is copied and ready to just the name of the file

    The name of the file is then copied to the Clipboard.

    The script then opens the dialog window to repeat the missing link.

    It the name of the image is pasted into the spotlight search engine.

    Here, the script stops.

    Click the correct file (if there is more choises) and recreate it a link is done.

    I think that this way of restoring links can be much faster.

    And you can also work with predefined smart windows (to limit results), for example:

    -a witch only shows jpg

    -a witch only shows tiff

    -a witch only shows pdf

    I know a very small little scripting, but this one I can't understand yet.

    Can someone give me help please?

    Best regards, Eric

    PS. I'm still working in CS4

    Although you have a solution and sorry for quitting yout ID should have tested more then once, it was a pretty old script and I just copy and paste...

    just rewritten my old script a little to run on ID CS OSX 10.7.4 5.5

    Should pass on missing links in the Active Document, use mdfind to search for files with simular names as name of missing link in the given directory, reveals possibly the file in the finder and shows / selects currMissingLink in ID-file. If 'ok' rebuild the missing link (without leaving ID ;-) I hope).

    global myFolder
    
    set tid to AppleScript's text item delimiters
    
    tell application "Adobe InDesign CS5.5"
        set currDoc to active document
        set theMissingLinks to every link of currDoc whose status is link missing
        if theMissingLinks is not {} then set myFolder to choose folder with prompt "Where to search for the missing links?" --select a mounted volume, folder ...
    
        repeat with missingLink from 1 to count of theMissingLinks
            set currMissingLink to item missingLink of theMissingLinks
            set currFileName to name of currMissingLink
            set theResultList to my mdFind(currFileName)
    
            if theResultList is not {} then
                repeat with i from 1 to count of theResultList
                    set theItem to (item i of theResultList)
    
                    set currDialog to display dialog theItem with title "Relink this file?" buttons {"OK", "Cancel", "Show in Finder first"}
                    if button returned of currDialog is "OK" then
                        try
                            relink currMissingLink to POSIX file theItem
                        on error e
                            display dialog e
                        end try
                    else if button returned of currDialog is "Show in Finder first" then
    show  currMissingLink --select the missing link in ID
                        my revealInFinder(theItem) --show the found file in finder
                        activate
                        set currDialog to display dialog theItem with title "Please switch to Finder to see the file. Relink the file shown in Finderwindow?" buttons {"OK", "Cancel", "Continue searching"}
                        if button returned of currDialog is "OK" then
                            try
                                relink currMissingLink to POSIX file theItem
                            on error e
                                display dialog e
                            end try
                        end if
                    end if
                end repeat
            end if
        end repeat
    
    end tell
    
    on mdFind(currFileName)
        set AppleScript's text item delimiters to return
        set PathToAllFiles to every text item of (do shell script "mdfind -onlyin '" & quoted form of POSIX path of myFolder & "'" & space & " -name '" & currFileName & "'")
    
        set PathToAllFiles to my cleanList(currFileName, PathToAllFiles)
    end mdFind
    
    set AppleScript's text item delimiters to tid
    
    on cleanList(fileName, listOfFilePaths)
        set myCleanList to {}
        set AppleScript's text item delimiters to "/"
        repeat with p from 1 to count of listOfFilePaths
            set aName to (text item -1 of (item p of listOfFilePaths))
            if aName is equal to fileName then set end of myCleanList to (item p of listOfFilePaths)
        end repeat
        return myCleanList
    end cleanList
    
    on revealInFinder(somePosixPath)
        tell application "Finder"
            set myAlias to (POSIX file somePosixPath) as alias
            activate
            reveal myAlias
        end tell
    end revealInFinder
    

    Hope it will work

    Hans-Gerd Classen

  • Convert [VB Script] link updated the script to CS to CS4

    Hello

    I have problems with my old VB script conversion to a CS4 version.

    The part that updates the links in my document is no more compatible with CS4.

    I know that CS4 manages files related differently than previous versions, but I find a way to make it compatible CS4.

    My script does the following:

    -Open InDesign

    -Open the file

    -update all links (these are +/-75 tagged text files)

    -Save the file as EPS file

    -close InDesign file without saving changes

    -close the application InDesign

    The script:

    REM InDesign open and file

    Set myInDesign = CreateObject ("InDesign.Application.CS4")

    The value of myDocument = myInDesign.open("C:\files\InDesignDocument.indd",False)

    REM update all links

    For each link in myDocument.Links

    link. Update

    Next

    Error resume next

    REM, save the file as EPS

    myInDesign.EPSExportPreferences.EPSColor = 1129142603

    myDocument.Export "EPS","C:\export\InDesignDocument.eps".

    REM, close the document without saving changes and quit InDesign

    myDocument.Close 1852776480

    myInDesign.Quit 1852776480

    Y at - there someone who can help me with this?

    Thanks in advance,

    Bastiaan

    in CS4 - you cannot update link - if she does not need to be updated, bug or feature

    Try this:

    error resume next

    for a = myDocument.Links.Count to 1 step - 1

    call the myDocument.Links.Item (a). Update

    Next

    on error goto 0

    and - as in my example - don't use for each because there is bug - no more 255(256?) elements will be processed

    Robin

    www.adobescripts.co.UK

  • SQL script to update the Peoplesoft database information

    Hi all

    I'm a new DBA for a charity running both PS financials & HR which often must create test, training and instances of dev of our production environments. Doing so currently requires a number of manual steps to update the different nodes and paths to those required for the new instance, and naturally I did not become a DBA to do manual work ;-)

    I'm looking for these steps, but the schema PS script being what it is, I'm not having much joy to find where relevant data could be. If someone had a script to do something similar, or could point me in the direction of the tables, I would be extremely grateful. The kind of things that we currently do through the interface are:

    PeopleTools > Integration Broker > Configuration of integration > nodes
    PeopleTools > Security > security objects > Single Sign-on
    PeopleTools > Public Services > Administration > URL
    PeopleTools > Integration Broker > Configuration > Quick Setup > Integration Broker areas
    PeopleTools > Portal > node definitions
    PeopleTools > the Ren Server Configuration > Ren Server Cluster

    We are currently running MS SQL Server, but all the PL SQL scripts would be great - I just need to know what are the tables contain the data.

    Thank you very much


    Andy

    Well, it is very dependent on version Peopletools.
    An easy way might be to open the corresponding page that you speak, and then display the definition of page and the associated record. At least that is what I use to do.
    Then, update you the table background and see if she takes your new values.

    To be brief, here is an excerpt of these tables (non-exhaustive list, PT.48):
    Node of single sign - we built: pstrustnodes
    Scheduler process definition: ps_serverdefn
    Run the command: psprcsruncntl
    Message channels: pschnldefn
    The e-mail table of contents: psapmsgpub *, psapmsgsub *, psapmsgarc *.
    Definition of message node: psmsgnodedefn
    URL: psurldefn
    Definition of employment: ps_prcsjobdefn
    OPRID (e-mail address): psoprdefn
    ...

    Then fill out your own list with the method that I gave above.

    Nicolas.

  • Satellite A210 - 16G (PSAELE) - how to use 4 GB and update the BIOS?

    Hello! I hope someone can answer a few questions for me.

    First of all is: How can I turn on my laptop to use all the 4 GB of RAM? OS is Win Vista Ultimate 32-bit with Service Pack 2. Now Vista all show the 4 GB of RAM, but don't use it. I activated the EAP in Vista, but still nothing. As I saw, I need to turn it on too memory remapping in BIOS but there is no option (my BIOS is ver.1.70).

    The second question relates to the BIOS. Because my version is 1.70 and there are more recent version 2.00; I get benefits if I update to BIOS? Someone has updated to version 2.00? And there are more options in the BIOS after update to version 2.00 (for example the memory remapping or a similar option)?
    I'm a little afraid to update BIOS, because sometimes my Toshiba freezes, and I would not hang during the update of the BIOS.

    And the final question is there any changelog to the BIOS? So I can see what is added and changed, and what's new in the new version of the BIOS. Because I could not find anywhere.

    Thanks for the responses to come.

    Hello!

    (1) you can use the entire 4 GB of RAM on a 32 bit OS. It is a due limitation of 32-bit technology. Windows Vista with Service Pack 2 may recognize the full 4 GB of RAM but not use it, more than 3.2 g.
    Here you can find more information about this limitation:
    http://APS2.toshiba-tro.de/KB0/TSB82022E0000R01.htm

    (2) about BIOS updated I can tell only must be made only if you have problems with the laptop. A BIOS update should never be done just for fun, because it of still a little risky. In the worst case, you can destroy the ROM module or complete motherboard.
    Update the BIOS doesn't normally contain new features or options. It s bug just setting. In addition it can t solve the problem with 4 GB of RAM and Vista 32 bit if you think that ;)
    If your laptop does not have 100% stable you shouldn't t update because it s too risky. Before the update, you should try to solve the problem of gel.

    (3) If a change log is available you can find it on the Toshiba site. If you can t find, there isn t available.
    That s all about this.

    I hope I could help a bit.

    Good bye

  • Cannot use the #A01 substitution variable # in dynamic list

    Greetings...

    I want to generate a dynamic list on the page.  The list will contain an indicator that specifies whether or not the entry in the list is in fact hidden from the user.  If it is hidden to the user, then I want to apply a particular to this entry from the list class when rendering.

    The dynamic list has the following SQL code:

    SELECT null lvl,

           menu.menu_nm label_value,

           q'!javascript:$s('P32_MASTER_MENU_ID', '!' ||

              menu.menu_id || q'!');!' target_value,

           null image,

           null image_attribute,

           null image_alt_attribute,

           case when menu.hidden = 'Y'

                  then 'class="hiddenNode"'

                  else null end attribute1

    from ( select 'N' hidden, vis.* from std_vw_apex_menu vis

            union all

           select 'Y' hidden, hid.* from std_vw_apex_menu_hidden hid ) menu

    where menu.menu_ty = 'MAINMENU'

    order by menu.sort_order

    I then use a list template with the following as the entrance to the "current": list

    <li class="active"><a href="#LINK#"><span #A01#>#TEXT#</span></a></li>

    ... and list the following as the "Non-Current" entry:

    <li><a href="#LINK#"><span #A01#>#TEXT#</span></a></li>

    I see in the rendered however page result is that substitution does not, as it is shown in the following snippet:

    <li><a href="javascript:$s('P32_MASTER_MENU_ID', '18893191201');"><span #a01#="">Education</span></a></li>

    We are on ApEx 4.2.1.  What I'm doing wrong as I've seen other threads indicate that it is possible for dynamic lists to use substitution variables, as in their list templates.

    Shane.

    I found the solution to the attribute replacement does not not in the models of dynamic lists.

  • The use of Scripts to detect the size of the document in inches?

    Is it possible that a script detects the size of the document in inches not in pixels?

    Thanks for the help!

    The size of an Image will print is a simple calculation the numbet of Pixel wide divided by the resolution in DPI imageg courses. And numbet of high Pixel divided by the resolution in DPI imageg courses. You can always change the DPI while maintaining the same number of pizels using checked DO NOT resample Image size to change the print size of the image. All information can be extracted in a script, and the script can change the print size of the image with or without resampling the image.

  • CRUD using ADF fails to update the database table

    Hi all

    I am very new FAD and JDev. I use JDev 11.1.1.2.0 and oracle 10g DB.

    I created the necessary
    1 model, view, control files of data using JDev to a DB table control.
    2 .jspx file having a "Panel Accordin ' and a page layout"Panel formLayout"to display the fields in table required on the page."

    I use Panel corre layout to display data with buttons of browsers and works very well.
    In the the Panel layout form, after posting the fields I added the button 'submit '. I've linked this button with the operation "Commit" by drop and simple drag.
    PS: I've added the fields by simple drag / drop control of the data file maps to the table in question.

    The performance of the page I find things work fine until I want to use the submit button. It just updates the UI front, but when I check in my database table I find that it has not been updated.

    I am naïve. Pls Guide.
    A site with step - by - development of end to end step will be very large.

    Desperately waiting to get this resolved.

    Thank you all

    Published by: user8925296 on January 16, 2010 02:13

    The performance of the page I find things work fine until I want to use the submit button.

    See if your button submit has an EL expression in its property "disabled".
    Depending on how you want it, delete this EL expression or add partialTriggers button to make it refresh partially each time that a field can be changed on your page changes...
    (Assuming it's all ADF faces that you use. Also, see more here: Re: activate/register button )

  • Using command line to update the certificates of fglam

    We try to change all of our FGLAMs to use a private communication to the FMS certification authority, but I'm unable to get the command line parameters to work.  The documentation is vague on the use of all parameters.

    fglam - configure - headless - fms address = https://someaddress:port ssl-enable-self-signed = false ssl-cert-name common CertName compressed

    "I receive an unrecognized command line argument ' ssl-enable-self-signed = false ssl-cert-name common = compressed CertName". "

    FMS: 5.6.10

    FGLAM: 5.6.11

    actually I take that.

    We use the compressed argument, but looking at the doc, it seems the thought that is set to true by default, else, you must specify it as false, so you may be able to remove this setting all together.

  • Translate the report by updating the session WEBLANGUAGE variable

    Hi all

    My requirement is to have a report in different languages. The easiest way to do so is to create different versions of a report by language. But I think that this is not the ideal solution, because OBIEE can deal with different languages.

    I won't translate the full presentation layer, because it's for one report only. So, do not use the metadata externalize strings feature. I'll use the captions feature translate rather, as described here: http://gerardnico.com/wiki/dat/obiee/localization/obiee_webcat
    It works very well.

    Now, I want to go a little further. To see the report in another language, the user must change the language of its session (NQ_SESSION. WEBLANGUAGE). Using the standard features, the user must go to the screen of my account, change, its language, then we must refresh the dashboard.

    I don't think that it is very user friendly, so I want to simplify this, by adding a language invites to the dashboard. My idea is to update the session variable WEBLANGUAGE with a variable of presentation in a line of dashboard, as described here: http://oraclebizint.wordpress.com/2008/02/25/oracle-bi-ee-101332-updating-session-variables-from-dashboards-using-presentation-variables/

    But the result is the session variable is updated, but the captions are not translated. So it doesn't seem to work...

    Have you any ideas on why it does not work, or you have another solution?

    Thank you!

    Kind regards
    Stijn

    No, your answer is completely stupid.

    For me, it works on a dashboard page:

    In French:
    http://host:9704/Analytics/saw.dll?dashboard&PortalPath=YourPath&page=YourPage&locale=FR

    To Engels:
    http://host:9704/Analytics/saw.dll?dashboard&PortalPath=YourPath&page=YourPage&locale=en

    In Dutch:
    http://host:9704/Analytics/saw.dll?dashboard&PortalPath=YourPath&page=YourPage&locale=NL

    Then we must work for the Url to go but your edit the local for the complete environment variable.

    And it made me think to have a complete translation, you must use the LOCAL variable
    and not WEBLANGUAGE.

    See you soon
    Nico

    Just to add that the local value is maybe better with en_GB, fr - fr,...

    Published by: gerardnico on July 13, 2010 11:58 - bad locale value

  • Difficulties to use Task Scheduler to update the database of the program

    Hello

    I would like Win 7 Task Scheduler to cause Locate32.exe Explorer file update there database every 45 minutes when I am connected. (Locate32 can do it by itself, but must operate continuously in the background to do).  I'm obviously not in the right info, because it does not work for me. I got the details to enter another site, as I am not familiar with the Task Scheduler.

    Task field name walked - locate32.

    In trigger I select daily

    then by selecting a time of 5 minutes before present, to test works

    then, in the action, I'm selecting Start a program

    then in program/script I enter 'C:\ProgramFiles\Locate\locate32 '.

    then in arguments - U

    Usually it is a notification when I update of database Locate32. This does not occur with the scheduled task, and when I look in the Task Scheduler for tasks that have been made, this one does.

    I checked the user information is correct.

    Please could someone tell me what I should do instead? Thank you, Jay

    Hello

    We apologize late in the response. This problem can be caused by incorrect settings.

    To display hidden scheduled tasks, follow these steps:

    1. Click Start. In the search box, type Task Scheduler. Then, in the list programs, click Task Scheduler.

    2. On the view menu, click Show hidden tasks.

    Try to re-create the task and check if it helps:

    1. Press the Windows key + R > type taskschd.msc and press enter (it will launch the Task Scheduler)
    2. Click with the left button of the right pane on the Task Scheduler Library > open Action on the menu at the top of the page > new folder... > name MyTasks > click OK
    3. Left-click on the MyTasks > menu, choose Action > create a basic task (it open Assistant tasks)
    4. You can enter the name , for example "restart" and press Next
    5. In the trigger section, you can specify when you want to run your task, for example:
      • Select daily and press Next
      • Now, you can specify the day, time and the game to be repeated daily, after that press Next
    6. In the Action section, you can choose what you want to run, for example, restart your system to do this:
      • Choose start a program and press Next
      • in the area of program/script, type shutdown /r and press next
    7. And that's all, you can press Finish

    Let us know the status.

  • How can I use a script to set the variables?

    I have a script to set a few variables and I need to run the script multiple times throughout the form, for different users at different times.  How can I configure the script as an object in the Variables and call it when I need to run it?  Appreciate all help.  I use SS3.

    var emailSubject = "";
    var cleanDate = Page1.EventDetails.Block2.SpeakingDate.rawValue.replace(/[\/]/g, "-");
    var eventName = Page1.EventDetails.Block1.EventName.rawValue;
    var eventCity = Page1.EventDetails.USaddress.CityEvent.rawValue;
    var eventState = Page1.EventDetails.USaddress.StateEvent.rawValue;
    emailSubject = cleanDate + " - " + eventName + " - " + eventCity + " - " + eventState;
    

    To create a function to be able to reuse the code easily right click in your hierarchy (for example, on your "form1"), click "insert a Script object.

    A new script object will be created, just rename it to something appropriate and then create a function both inside and

    function myFunction(var1,var2,var3){
    ' just an example '
    page1.textfield1.rawValue = var1 + var2 + var3
    }
    

    (I didn't fully understand the significance of the date and the event and the city, and exactly what your function is supposed to do, but it's how you declare a function).

    To call this function you simply reference as form1.scriptobjectname.myFunction(123,"asdf",variablename)

    (just one example of the possible arguments).

    I hope that's not too hard to follow,

    Best regards, Mattias

  • Using a script customized to the translator.

    I need help to create a translator of encryption. Basically, I have a version coded English alphabet I want to use. I have two text fields set up on the scene, one on top one on the bottom. When you tap the top text field, I want the background for type along the side of the user but the output using the encrypted script I have. For example, if the user types "Apple" in the outputs low upper field 'a effra' type along side the user in real-time. I tried to use the String.replace (); command, but I don't know how to set up an array of strings in it to get the results I want. Any help is greatly appreciated.

    Thanks in advance.

    Use the code that I proposed:

    inputWindow.inputTxt.addEventListener (Event.CHANGE, translateText);

    var normalAlphabetS:String = "aeioubcdfghjklmnpqrstvwxyz";

    var cipher: String = "iaeuobcdfghjklmnpqrstvwxez";

    var normalAlphabetA:Array = normalAlphabetS.split("");

    var cipherA:Array = cipherS.split("");

    function cipherF(s:String):String {}

    return cipherA [normalAlphabetA.indexOf (s.toLowerCase ())];

    }

    function translateText(e:Event):void {}

    var inTxt:String = inputWindow.inputTxt.text;

    var outTxt:String ="";

    for (var i: int = 0; i

    outTxt += cipherF (inTxt.substr (i, 1));

    }

    outputWindow.outputTxt.text = outTxt;

    }

  • How to use a script to validate the same field with different addresses in different pages?

    I have a script that is applied to a field 'email '.

    The script asks to check the address, if it is not well written.

    But this field is present in many pages for different guests filling in this information.

    How can I adapt this script? (without changing the name of each field of each page and therefore to change the value in the script to a page that ...)

    function confirm_email_OnValidate (element)

    {

    Event.RC = confirm_email_Validate (Element, event.value);

    }

    function confirm_email_Validate (Element, newvalue)

    {

    If (newvalue.length < = 0)

    Returns true;

    Model = newvalue.replace (/ [a-zA-Z0-9] + ((\.| _ | \-) [a-zA-Z0-9] +) * @([a-zA-Z0-9] +(\.| \-))+[a-za-Z]{2,}/, «»);)

    If (Dummy.length! = 0)

    {

    InputError (element, 'Check this address');

    Returns false;

    }

    Returns true;

    }

    function confirm_email_Format (element)

    {

    Returns true;

    }

    You can use the eMailValidate built-in function to simplify this. For example, you can use the custom following validation script:

    if (event.value && !eMailValidate(event.value)) {
        app.alert("Check this address");
        event.rc = false;
    }
    

    It provides a validation better than the regular expression that you have demonstrated.

    Without knowing how you use the parameter of the element and the operation of the function InputError, it is difficult to offer something more.

Maybe you are looking for

  • I send a text, it reads delivered, then read and return to delivered.

    I sent a text to my iphone to another iphone and my phone said, delivered, read, and then return to delivered. Why? Fact they read my text then delete my message?

  • Slow Pro

    My pro is running slower and slower. A major problem is I inherited this from my partner and have been using its identifier. A lot of updates is necessary, but he has forgotten his password. I backed up my personal files now I want to erase everythin

  • After Windows Recovery virus, all programs, folders, and documents are hidden

    Hey there. I think I just cleaned my old machine to windows XP from a virus apparently known as Windows Recovery using software Malwarebytes' Anti Malware. I have two questions:1. How can I be sure that I deleted everything about the virus?2. the vir

  • HP Photosmart 7515 black lines

    When making copies of doc feeder is veticle black lines. Only occurs when copies. Clean the rollers & reset the printer but did not help. HP Photosmart 7515 using Apple Lion OS.

  • How to make a menu button to connect to a different Web site?

    Hello worldI'm working on a Web site, and I need a menu button, click here for a different Web site. I don't want there to be a page here at all, just sent directly to another site. Is there a way to Muse to do this?I also have another button of menu