Idoc Script question.

Hi,
Can some of explain what exactly this mean in sitestudio?
<!--getValue("#active", ssFragmentInstanceId & "_ssFragType")-->
Thank you,

It is trying to evaluate the value of variable. The variable name is being dynamically built so the line of code has some portability (in this case it would work for multiple fragments).
getValue(arg1,arg2) is a function that will return the value of a variable by name. arg1 is a sort of scope and arg2 is the variable name
In your example lets break down the important bits
arg1=#active indicates the scope and order of where to search for the variable.
arg2 the variable name is being built dynamically from two parts:
ssFragmentInstanceId is a variable that contains the unique name you gave this instance of the fragment when you dropped it on the page
"_ssFragType" is a string literal which is concatentated onto the end
In summary this is going to return the value of the 'type' of fragment that 'this' is. Presumably if it is a dynamic list, navigation etc.
if ssFragmentInstanceId=myFragment then the following tow lines of ode are basically equivalent
<$getValue(#active,ssFragmentInstance & "_ssFragType")$>
<$#active.myFragment_ssFragType$>
Does that help? If so please mark this as answered to help people find this solution in the future
Tim
Edited by: Tim Snell on 21-May-2010 03:43

Similar Messages

  • Idoc scripting in workflow tokens

    Greetings,
    A question for developers: up to what extent of Idoc Script calls can be made inside Workflow tokens? Only the function wfAddUser or other Idoc Script functions as well?
    I'm trying to develop a dynamic workflow component that involves reading possible user, alias or ad-hoc metadata values from a database table using a custom Idoc Script function, into a token. So basicly, something like this:
    <$wfAddUser(customIdocScriptFunctionToFetchUsers(dDocType),"user")$>
    Is anything like this possible at all? Tests done so far result in the content item entering and exiting the workflow automatically due to probably being unable to load the users, the strange thing is that no erros are being output, not even in the content server output with "workflow" or "idocscript" sections being traced...
    The point of this mechanism is to avoid having to create large ammounts of (hidden) metadata to serve as support to store users/alias to be loaded into workflow steps as tokens. Feel free to suggest any other alternatives tho :p
    Thanks in advance,
    - Tiago Vidigal

    Hey Tiago,
    Typically you try to limit your token script to just wfAddUser. It is possible to use basically any idoc script in a token but any failure at all will result in the behavior you are seeing with the item skipping straight through the step.
    Using your current design here is what I would do:
    -In the entry script for that step make your call via the custom script function
    -Store the result of the lookup into a workflow variable: <$wfSet("usersForStep", getCustomUsers(dDocType))$>
    -do your wfAddUser in the token: <$wfAddUser(wfGet("usersForStep"), "user")$>
    -Sidenote: You can add multiple users at once in one wfAddUser call if you pass a comma delimited string of the usernames
    Reason this works: the Entry script is always evaluated before a token when entering a step, meaning you can put any complex logic there where it is easier to debug and keep your token code clean.
    Hope that helps,
    Andy Weaver - Senior Software Consultant
    Fishbowl Solutions < http://www.fishbowlsolutions.com?WT.mc_id=L_Oracle_Consulting_amw >
    Edited by: Andy Weaver on May 18, 2009 10:55 AM
    (Fixed one of my code snippets)

  • Implement Oracle UCM 11.11.5 Workflow (idoc scripting)

    Hi guys,
    We are using Oracle UCM 11.1.1.5.
    We have a 3 stages workflow. The stages are called as "Preparation", "Verification" and "Approval". We use Aliases. Users can be a members of many Aliases. But our requirement is a same user can't approve two subsequent steps. Lets say a user is member of all aliases. Hence he will be able to approve all stages of the workflow. But our requirement is the document who prepared should not be allowed to approve it in the verification stage. The system should throw a warning message. in the same way the person who approves in the verification stage should not be allowed to approve it in the "Approval" stage. Can we use idoc scripting to do that? Please give some idea and sample scripts to do this.
    The question we have are how we can identify the previous stage approver and how we can display warning message on the screen when a same approver trying to approve again in the subsequent stages?
    Thanks in advance
    With Regards
    Jacob
    Edited by: user8778076 on Aug 29, 2011 8:39 AM
    Edited by: user8778076 on Aug 29, 2011 9:04 AM

    Hello VJ,
    Please see details on using Rapid Clone -
    FAQ: Cloning Oracle Applications Release 11i [Doc ID:216664.1]
    Cloning Oracle Applications Release 11i with Rapid Clone [ID 230672.1]
    Regards,
    Debbie

  • IDOC script in custom element forms

    Hi,
    I am using Site Studio 10gr4.
    I was wondering if its possible to use IDOC script inside custom element forms. What I want to acheive is to display a combox box inside a custom element in a static list. The values inside the combobox are retreived from one of the views (created inside Configuration Manager in the content server).
    Your help will be appreciated.
    Many Thanks

    OK, I found the answer :).
    I checked in the custom element element form as an HTM. Chaning it to HCSP fixed the issue :).

  • Quick SAP Script question New Page Print

    Quick SAP Script question
    I have added a new page to an existing SAP Script BUT only want it to print if a condition is true.
    I need to do this from within the form as the print program is SAP Std.
    Any idea how I can prevent the new page from printing?
    i.e. I need the form NOT to call the new page if the condition is false. Is there a way of forcing an exit or stop from with in the form?

    Hi,
    To trigger a new page, there is script ediotr command NEW-PAGE.
    so find where is that command is triggered and use the below code for trigger it on any specific condition....
    if &condition& = 'True'
    /*  NEW-PAGE
    elseif
    /: NEW-PAGE   
    endif
    so it means if condition is satisfied your new page will not work.. else it will...
    Hope you got it...
    Try this..
    Best luck..
    Regs,
    Lokesh.

  • How to manipulate the date in idoc scripting?

    how can we manipulate date in idoc scripting? How to retrieve the year, month, date from the date? How can we update the year of the particular date in idoc scripting.

    There are a bunch of date / time functions that you can find in chapter 5 of the Idoc Script Reference (the bible for this sort of thing)
    For the sort of things you need to do I would recommend you look at formatDateWithPattern()
    for example to retrieve the year of 'now'
    <$year = formatDateWithPattern(dateCurrent(),"yyyy")$>
    month
    <$month = formatDateWithPattern(dateCurrent(),"MMM")$>
    the patterns for the same rules as Java date formats (unsurprisingly)
    If you want to update the year then I think you need to build the date as a string and the use the parseDate or parseDateWithPattern functions to actually create something that Idoc will recognise as a date object.
    Tim

  • Making Custom Idoc Script function

    Hi all,
    I am making a custom Idoc Script function. I have merged the resource
    table into the core IdocScriptExtensions table. But i am not able to call the custom function in SiteStudio. Find below the steps that i have taken
    step1) I have added a resource (Static Table) in my component which merges to "IdocScriptExtensions" fucntion.
    Step2) I have already created the java class.
    Step3) Edited <td>Myname</td><td>Myclass</td><td>MyloadOrder</td> in the resource with corresponding values.
    Step4) From component settings added the custom classes.
    Step5) made a build of the component.
    Step6) Installed the component in my server.
    now when i go to SS Designer and call this function then no response is generated.
    This component will return me a boolean by quering DB. I have number of sysouts and traces but none of them is printed on the console. Can somebody please provide insited into what probably might be amiss here.
    ANY pointers will be hightly appriciated. waiting for a quick response.
    reagrds,
    sapan

    Hi Sapan,
    For the most part your steps look correct. Personally I would probably do the following:
    1. move your component's classes folder back inside the component
    2. register the folder in the component
    3. add the folder to the class path
    4. in the component's hda file, check to make sure there the merge rule is set for your IdocScriptExtensions entry.
    if all of those are correct, occasionally the content server can be tempermental when new classes are added and so I would try disabling the component, restarting, then enabling and restarting.
    If everything is compiled, it has to be either a classpath issue or an issue merging your IdocScriptExtensions table.
    Also, if you go to Administration>Configuration Info, expand enabled components and find yours, it will tell your the classpath registered for your component(though your code is in the content server classes folder).
    Sounds like you are really close though...did you get the debugger working?
    David

  • Calling GET_WORKFLOW_INFO_BYNAME service from idoc script

    Hi, i need to call service GET_WORKFLOW_INFO_BYNAME in custom idoc script on documents to determine if the document is in workflow. If it is there is no problem. But if it is not, calling if GET_WORKFLOW_INFO_BYNAME cause exception which is writen to server log.
    I don't want to write this exception to log because of log size.
    Is there any way how to suppress the exception or other method to find if the document is in workflow?
    Best regards

    Hi
    I guess you can check the status of the content to verify if a content is any WF or not . If the status is Review / Edit etc then it indicates the content to be part of a WF .
    Hope this helps .
    Thanks
    Srinath

  • Include Idoc Script in another

    Hi,
    Do we have a way to include (like a library) an .idoc script inside another idoc script ?
    Thanks,
    Sunil

    Absolutely!
    iDocScript contains a feature called include. For more details see http://docs.oracle.com/cd/E23943_01/doc.1111/e10726/c02_application.htm#CSIDO118

  • Deleting several documents in idoc script

    Hello,
    I need some help about one of my customization.
    I would like to create a page on which a user would choose a website
    section and then after choosing it, all the documents of this website
    section would be deleted.
    So, in idoc script, I created a service called "DELETE_DOC_SCRIPTABLE"
    which is the same as "DELETE_DOC" but it is scriptable.
    I also created a service which retrieves all the documents and then I
    loop on the resultset generated and I call the service
    "DELETE_DOC_SCRIPTABLE".
    My first results is then deleted but then, after the first loop, UCM
    doesn't recognize my resultset anymore and so the other results are
    not deleted.
    Here is my code :
    <$loopwhile getValue("RST_DOCS_SECTION_A_SUPPRIMER","#isRowPresent")$>
    <$dID=RST_DOCS_SECTION_A_SUPPRIMER.dID$>
    <$executeService("DELETE_DOC_SCRIPTABLE")$>
    <$exec rsNext("RST_DOCS_SECTION_A_SUPPRIMER")$>
    <$endloop$>
    Here is my error in etc/log file
    "suppression_contenus
    /produits/ucmIntra/dev/custom/GestionSectionsSite/resources/gestionsectionssite_\
    ressources_supprimerContenus.htm
    [ligne 23, car 7]
    An error occured in the file
    '/produits/ucmIntra/dev/custom/GestionSectionsSite/resources/gestionsectionssite\
    _ressources_supprimerContenus.htm'
    q la ligne 98 et au caractre 10. Unable to evaluate the function
    'rsNext'. Unable to find result set 'RST_DOCS_SECTION_A_SUPPRIMER'.
    -> <$exec rsNext("RST_DOCS_SECTION_A_SUPPRIMER")$>
    -> <$endloop$>
    -> </table>
    Thank you in advance if you have any clue about this,
    Regards,
    Julian

    I`ve gotten a little bit closer by hacking at the code..
              <$rsMakeFromString( "rsDeleteDocsBydID", xdID, "dIDstored")$>
              <$numFields = rsNumRows("rsDeleteDocsBydID")$>
              <!-- numFields == <$numFields$> -->
              <!-- To Delete = <$dIDstored$> -->     
              [[%This Works when uncommented %]]
              <!--$dID = dIDstored$-->
              <!--$executeService("ETHER_DELETE_DOC")$-->
              [[%This does not execute the service again? - But returns dIDs correctly??%]]
              <$xnumFields = 0$>
              <$loopwhile xnumFields < numFields $>
                   [[%Recreate RS as Delete_doc service clears all RS?%]]
                   <$rsMakeFromString( "rsDeleteDocsBydID", xdID, "dIDstored")$>
                   <$exec rsSetRow("rsDeleteDocsBydID",xnumFields)$>
                   <$dID = dIDstored$>
                   <!-- Delete this dID = <$dID$> -->
                   <$executeService("ETHER_DELETE_DOC")$>
                   <$xnumFields =(xnumFields +1)$>
              <$endloop$>
    I may look at using the subservice DELETE_BYNAME anyone tried using this instead?
    Thanks

  • Can we execute an idoc script from a custom service?

    Is it possible to execute an idoc script while executing a custom service?
    -Pratap

    There are several ways to execute iDocScript from Java, but in this quick example we will use a PageMerger object. There are several ways to get ahold of a PageMerger object. If you are executing in a context where a service object is readily available you may be able to get a PageMerger object reference with code like this:
    PageMerger pm = m_service.m_pageMerger;
    If that doesn't work for you I would try something like:
    PageMerger pm = new PageMerger(databinder, executioncontext);
    Now that you have your merger object you can execute all kinds of iDocScript code, an example of which might be:
    pm.evaluateScript("<$lc(\"wwMyString\")$>");

  • Idoc script function to count string

    Hi,
    Does anyone know if there is any build in function in idoc script to count the number of string.
    For example:
    A, B, C, D, E
    I want to count how many comma's are there using idoc script. If there is no build in function, what would be the best approach to achieve this.
    Many thanks.

    There is no built in function, but I would simply do this:
    <$rsMakeFromString("MyStringRS", "A, B, C, D, E")$>
    <$numCommas = MyStringRS.#numRows - 1$>
    Good Luck, and please award points as you see fit.

  • Idoc Script Study Material

    Hi,
    Can anyone suggest materail/book for Idco Script Starter
    Thanks
    AR
    Edited by: 838623 on Mar 29, 2011 2:25 AM

    Hi,
    Below URL provides entire Oracle UCM documentation http://download.oracle.com/docs/cd/E10316_01/ouc.htm
    Refer documentation for Idoc Script Reference Guide.
    Thanks,
    Ravinder

  • Scripting Question - Very Basic

    Hello, I'm using the trial version of InDesign and am wondering if because it's the trial version that I can't load custom scripts from Adobe?  I've downloaded and installed a Custom Calendar script [I can see the extracted files in/on my PC] but the app apparently doesn't see it.  Any help you can offer is greatly appreciated.  Thanks, 

    Thank you so much, you were spot on. 
    From: Peter Spier <[email protected]>
    To: Friar5 <[email protected]>
    Sent: Monday, December 12, 2011 3:18 PM
    Subject: Scripting Question - Very Basic
    Re: Scripting Question - Very Basic created by Peter Spier in InDesign - View the full discussion
    Have you put thew script in a location that InDesign uses for scripts? See How to install scripts in InDesign | InDesignSecrets
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4079869#4079869
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4079869#4079869. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in InDesign by email or at Adobe Forums
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • IDOC script to get list of users in alias

    Hi ,
    In Workflow script, I want to check if dDocAuthor exists in some alias. IF exists then do some processing.
    I am not able to compare dDocAuthor with users in alias. Infact I could not find any IDOC script function that returns users in alias.
    Please help.
    thanks

    Check out my blog post on how to bypass workflow via idoc if the author is part of a specific alias (:

Maybe you are looking for

  • My 2007 MacBook Pro keeps receiving "you must restart you computer" screen upon start up

    It all started when i was watching videos online and the screen froze. It did this a couple more times and in between these freezes the computer would occasionally freeze during start up while the gray wheel was spinning. I was running lion. i decide

  • Upgrade 11.09 installed isn't working

    Windows automatic update installed newest version of Reader.  It's not working, so it was uninstalled, downloaded from Adobe, and re-installed.  And it's still not working at all.  Any suggestions?  (Windows 7 Professional, 32 bit system)

  • External screen with no power on macbook

    It's so ridiculous that I can't have just an external screen on my macbook without power connected. Any software/pkg that fixes this?

  • Zen Nano Plus:Random Shut-Do

    Hi there, I've had my Nano since last April and a problem just occured. The Nano keeps shutting off by itself. I'll turn it on and about 3 seconds later it shuts off. The longest time it stayed on was 2 minutes -then it shut off again. I've tried usi

  • Correct way to use SSL?

    I have just implemented a SSL certificate on my site. By default, site striucture is such that I have a HTTPDocs foder where I keep all my web pages etc but I also have a HTTPSDocs folder which is empty. The HTTPSDocs folder appears to be a mirror of