Subsitution Tag instead of Smart Text (2 issues)

In Oracle Portal:
1. I want to use the Current Date feature (available as a Smart text) but since I am using an HTML template, would like to use a Substitution tag for it. But couldn't find #CURRENTDATE# !
I have used Oracle PL/SQL code to overcome this issue, but since our site is translated to multiple languages, I am hoping the Current Date does a better job of Internationalizing the date translations.
2. When I use the Substituion Tag for Edit within an HTML template and make a Page use this, the Edit tag appears on the page irrespective of whether the user has permissions to edit the page or not. Although clicking on Edit does not allow unauthorized users to edit any region of the page, it is still annoying that it should exist.
If I were to initially use a Portal Template for the page and make it use the HTML template as a Skin, the Edit tag disappears correctly.
Is this a bug in Oracle Portal.
We are using 10.1.2 with all patches that upgrage it to 10.1.4.
Any help in this regard would be greatly appreciated.

I think I might have the answer to #2 for you. According to Oracle Metalink "Note:368720.1 - When ILS is Enabled the Edit Smartlink is visible to Users that are not entitled to see it", that is the expected behavior whether you are using the "edit" substitution tags or the "edit" smartlink on a page when the page has item-level access enabled. I can understand why that is the behavior since an end user may have access to manage/edit just one item on a page or just one tabbed region on a page but not the entire page and they'll need a way to put the page into edit mode in order to edit their item(s). If a user has nothing to edit on a page, then they won't be able to do anything in edit mode anyway.

Similar Messages

  • Text Box issue - displays XML tag instead of the value in EBS

    I need to use a textbox (or a autoshape with text) to place a data element in a specific position on the page in an RTF template. I tried using tables and it didn't help. This layout needs some elements to be placed at specific location and using an autoshape or a text box is easy. When I preview the pdf output on my desktop, it works fine. Once I upload the template into EBS XML Publisher, the value in the text box shows up as an XML Tag instead of the value in that tag. The same XML data when loaded and previewed locally shows the data instead of the tag.
    Any thoughts on this? Is there a patch or something we might need for this in EBS?
    Thanks,
    Vinay

    Thanks Tim for the quick response.
    Yes - the versions are same. Also, I tried giving the complete path. The issue is that it is not even reading the text in the text box as an XML tag. It seems to think the whole text box is an object and hence just display that text as is. If it was reading and not able to resolve it, I guess it would have displayed blank (and not the tag as is). Again as I mentioned it works fine in local preview on my machine.

  • Tablespace usage report generated with html tags instead of text

    Hi ,
    We have a unix shell script scheduled to find tablespace usage and sends the report to our mail id.
    For the past few weeks(no changes idone in the script) the report is coming with html tags instead of text as below.
    </head>
    <body>
    <p>
    <table border='1' width='90%' align='center' summary='Script output'>
    <tr>
    <th scope="col">
    TABLESPACE_NAME
    </th>
    <th scope="col">
    CUR_USE_MB
    </th>
    <th scope="col">
    CUR_SZ_MB
    </th>
    <th scope="col">
    CUR_PRCT_FULL
    </th>
    <th scope="col">
    FREE_SPACE_MB
    </th>
    <th scope="col">
    MAX_SZ_MB
    </th>
    <th scope="col">
    OVERALL_PRCT_FULL
    </th>
    </tr>
    <tr>
    <td>
    SYSTEM
    </td>
    <td align="right">
    268
    </td>
    <td align="right">
    500
    </td>
    <td align="right">
    54
    </td>
    Is this any settings issue or anything to be modified in the script.Could you please reply..
    Regards,
    Bharath.
    Edited by: 870384 on Jul 6, 2011 1:17 AM

    Hi Sven W,
    Please find the sql below that is generating the tablespace usage report. In the staring of the script markup is set to ON and at the end it is set to OFF.Do you suggest any changes to this..?
    SET ECHO OFF
    SET PAGES 999
    SET MARKUP HTML ON SPOOL ON
    col tablespace_name format a15 trunc
    col cur_use_mb for 999999999
    col cur_sz_mb for 999999999
    col free_space_mb for 999999999
    col max_sz_mb for 999999999
    compute sum of cur_use_mb on report
    compute sum of cur_sz_mb on report
    compute sum of free_space_mb on report
    compute sum of max_sz_mb on report
    break on report
    spool tablespace.html
    select tablespace_name,
    round(sum(total_mb)-sum(free_mb),2) cur_use_mb,
    round(sum(total_mb),2) cur_sz_mb,
    round((sum(total_mb)-sum(free_mb))/sum(total_mb)*100) cur_prct_full,
    round(sum(max_mb) - (sum(total_mb)-sum(free_mb)),2) free_space_mb,
    round(sum(max_mb),2) max_sz_mb,
    round((sum(total_mb)-sum(free_mb))/sum(max_mb)*100) overall_prct_full
    from (select tablespace_name,sum(bytes)/1024/1024 free_mb,0 total_mb,0 max_mb from DBA_FREE_SPACE group by tablespace_name
    union select tablespace_name,0 current_mb,sum(bytes)/1024/1024 total_mb,sum(decode(maxbytes, 0, bytes, maxbytes))/1024/1024 max_mb
    from DBA_DATA_FILES group by tablespace_name) a group by tablespace_name;
    select owner,segment_name,segment_type,bytes/(1024*1024) size_m
    from dba_segments
    where tablespace_name = 'SYSTEM' and segment_name='FGA_LOG$' order by size_m desc;
    spool off;
    SET MARKUP HTML OFF SPOOL OFF

  • CS5 hangs with smart text reflow during scripting

    Hello,
    I have a batch script that opens each input file in a folder one after another and saves them as indd and pdf.
    Now I have run across a problem.
    The script opens the input document (a special xml format for our plugin, this opens one InDesign template and places some content into a specific text frame), then run preflight to check if there are overflows etc. and then saves the content to indd and pdf.
    The input template has smart text reflow enabled, with adding new pages at the end of the document and deleting empty pages because I do not know how much content will be placed.
    I have some strange issues:
    In ID CS4, the script runs fine, but some times I got preflight errors for some documents (different ones on each run). If I open the documents afterwards, it seems the smart text reflow did not run before the script saved the indd (and so preflight found an text overflow).
    However in CS5, InDesign hangs at some time during the script - windows task manager says it is not responding. This happens at a random file (not the same each time), the first ones before came out as expected.
    Because of the preflight issues in CS4 I have made a test and created a new template with disabled smart text reflow and already added the maximum number of pages for my content. Now the script runs fine in CS5 (without hanging). But this way I have emtpy pages I do not want.
    My assumption is, that the smart text reflow does run some sort of asyncronous and gets in the way of saving/exporting to pdf the file. A "$.sleep(5000);" after opening/placing does not help either.
    Is there any way in scripting to force the smart text reflow or to wait for it until it is finished?
    Below is the relevant part of the script.
    Has anybody a solution or workaround?
    Best regards,
    Ingo
    // process documents
    for(var i = 0; i < alldocs.length; i++ ){
      try{
        // Opens document
        // this is a format that triggers our plugin which opens a specific indt-template and places the content
        var currentDocument = app.open( alldocs[i],true);
        // try to force document to be really ready - TODO: is there a better/working way? Some way to wait for smart text reflow?
        currentDocument.recompose();
        //$.sleep(5000); //Fallback - sleep for a reasonable time to let the document be opened - does not help either
        // process the document with the selected profile
        var process = app.preflightProcesses.add(currentDocument, Settings.preflightProfile);
        process.waitForProcess();
        // get the results
        var preflightResults = process.aggregatedResults;
        // each report is in the [2]-Array. First condition prevents NullPointer-Errors
        if((preflightResults.length > 0) && (preflightResults[2].length>0)){
          logLine(alldocs[i].name + ': Preflight problems');
        // save as InDesign
        var indesignFile = new File(Settings.outputDir.fullName+'/'+alldocs[i].name.replace(RegExp( '\.[^\.]{1,4}$' ), '.indd' ));
        currentDocument.save( indesignFile );
        // Export as PDF
        var pdfFile = new File(Settings.outputDir.fullName+ '/'+alldocs[i].name.replace(RegExp( '\.[^\.]{1,4}$' ), '.pdf' ));
        currentDocument.exportFile(ExportFormat.pdfType, pdfFile , false);
        currentDocument.close();
      catch(err){
        // if there was a problem, note filename to display later
        logLine( alldocs[i].name + ': Errormessage was "' + err.description + '"');

    Well.. it works. It's a ugly cludge, but at least it works. I'm posting a snippet of code, because i'we seen a lot of threads on the same subject, and maby someone else will find it usefull.
    // save old recompose and set new one
          var myOldSmartText = app.activeDocument.textPreferences.smartTextReflow;
          app.activeDocument.textPreferences.smartTextReflow = true;
          app.activeDocument.textPreferences.addPages = AddPageOptions.END_OF_STORY;
          app.activeDocument.textPreferences.deleteEmptyPages = true;
          //find docType headers and apply keep
          app.findTextPreferences = app.changeTextPreferences = NothingEnum.NOTHING;
          app.findTextPreferences.findWhat = "<docType:TaggedRTF>";
          app.changeTextPreferences.startParagraph = StartParagraph.NEXT_ODD_PAGE;
          myStory.changeText();
          //fix tables
          if (myStory.tables.length) {
    /* long code to process tables, not interesting
         //process style rules
    /* long code to preformat text, add/remove space after headings, lists, blocks etc.
          // save old preflight options, add new ones
          var oldPreflight = app.activeDocument.preflightOptions.properties;
          app.activeDocument.preflightOptions.preflightOff = false;
         // wait a maximum of 40 second for the preflight process. Before it runs, the (not so)Smart  Text Reflow should kick into action.
          app.activeDocument.activeProcess.waitForProcess(40);
          //stop preflight for a bit more performance?
          app.activeDocument.preflightOptions.preflightOff = true;
          //now check if story overflows? (maby you have a very large cell in a table? some wierd keep options? bad things happen
    Can i mark my own answer as correct?

  • Date format in current date (portal smart text)

    Where can I edit colour, format of current date (portal smart text)?

    Hi,
    This might be a caching issue .. What version of portal are you using..
    Can you also change the caching properties for the page so that its never cached..
    Thanks,
    Anu

  • Portal smart text and privileges

    Situation in Portal r2
    I created a page template with navigation page in Shared objects page group. Navigation page contains Portal Smart Text such as Current User and Current Date. Then I created a new page group from page template. So then I wanted other user to use the root page of the new page group as his homepage, therefore I granted this user privilege to view the root page, page tamplate and navigation page (without publishing them to public). If a user has only privilege to view the root page this message appeared instead Current User and Current Date: "Error: ORA-06503: PL/SQL: Function returned without value". Only way how to avoid this situation I found is to grant the user at least Mange with approval.
    Mila

    The "display name" colour needed changing.

  • My iPhone 5 won't display smart text options.

    My iPhone 5 won't display smart text. It did when I initially downloaded the new OS, now those options don't appear at all. Did I click something to make them disappear?
    I went into Settings to see if there was a component of it within Messages. I don't see anything.
    Thoughts please.....
    Thanks much
    Ginger

    Awwww......that's it....the dash! I tapped it. Tried to drag it up/down and it didn't move. Now I swiped and it's back!
    So I need to remember to drag up/down and now swipe.....
    Thanks much!
    Ginger

  • Text wrap issue:ShowDetaillItem chop-off in the PanelAccordion.

    Issue: Text wrap issue in ShowDetailItem header. Tittle of the S+howDetaillItem+ chop-off does not display completely in the PanelAccordion.
    I have a few texts that does not wrap in ShowDetailItem Header used for the panel accordion. I could not fix it after trying a few options like changing the css skin, and in the design property inspector.
    Please suggest a way to fix this.
    Oracle Jdeveloper 11.1.1.5 is the version.
    Windows XP professional sp3
    Edited by: 899970 on Nov 30, 2011 11:34 AM

    Thanks for your response.
    Yes, we dont have enough room on the page.
    I want the text to wrap and display in the second line as it has more no. of letters compared to the other texts available.
    Please suggest me a way to get the text displayed the way I want it to be.
    Thanks
    Sam
    Edited by: 899970 on Nov 30, 2011 3:13 PM

  • Can you change the default code that targets a new window to change the content in a div tag instead

    I created a database for store locations.  I was able to display the list of stores.  Here though I don't want the list to show the number in front of it...  I still need to find the CSS to edit my results for this one.  However, more importantly, I don't want to open my results in a new window, I want to be able to target a DIV tag instead.
    This is the code that is created to display the list of stores.
    {module_webapps,5665,a,,,_blank,,50,,1}
    Currently it opens a blank window.  I'd like to target a div tag on the right of the list area where the store info can appear.
    Perhaps the gurus at adobe can upgrade this feature?  Target DIVs instead of new or blank windows, or using frames. Below is the screen of the links created from the DB.
    Below is the blank window that it opens.
    Would like to make it open in a div to the right of the list.  Not sure how to change to core code that was created to make that change.

    I'm doing something wrong.  I have the list showing the stores in CA
    <div class="flip" id="woodcontainer" style="width: 160px; height: 23px;">
    <h1>CALIFORNIA</h1>
    </div>
    <div class="panel">
    <script>
      $("#infochange").load("{module_webapps,5665,c,41140}"); /* this creates the list of stores in CA where #infochange is the DIV I am targeting.
    </script>
    </div>
    <br />
    The code for the DIV where I want the details to load.
    <div id="infochange"></div>
    This doesn't make sense because I need to have something in the DIV as a holder of some sort? 

  • Can objects be anchored to boxes instead of/in text?

    I'm working on a newsletter and have created my "continued on page x" and "continued from page x" boxes to connect my articles together. I've been able to create Object Styles for each one and have anchored them to the text box. My problem is that if I should happen to resize the main text box which contains the article, for instance, the text obviously flows; and depending on where the anchors are, they may jump to the next text box. My workaround has been to place my anchors close to the middle of the text in the text box (especially after the first text box). Occasionally I run into problems if the text is edited or removed then I lose the anchors altogether.
    Is there a way to anchor objects so that they don't reflow, can lock to a particular box or simply anchor to the box instead of the text? If there is a better way, I'm open to that too.
    thanks!

    There's a trick which I've been preaching for years:
    Use text on a path to anchor the continued text to your text frame. 
    You'll need to construct your text frame the right way around to 
    prevent the text on the path to creep around the frame as it's resized.
    You'll need to be careful in CS4 though, because of a bug which 
    prevents text on a path from being exported beyond a certain page...
    Harbs

  • Adding pages and Text Frames to emulate the behaviour of "Smart Text Reflow"

    I am creating a large number of tables in a document.  If I have Smart Text reflow turned on, my script does not work properly.  I have the start of the processing:
    1. Add a new table
    2. If the last page text frame overflows then Add a new page
    With smartTextReflow turned off, I want to ensure that new text frames that match the primary text frames from the master page.  It has to be able to handle getting the parameters from the left/right page text frame.

    I have been able to solve my problem.  I was really overthinking things!!!
    Since I have designated the text frames on the master pages as primary text frames, when creating a new page, a text frame is created automatically. So the problem is then just link the previous text frame to the text frame that was created when adding the page.
    TableAutomation.prototype.AddPage = function() {
         var previousTextFrame = app.activeDocument.pages[-2].textFrames[0];
         var np = app.activeDocument.pages.add();
         var textFrame = np.textFrames[0];
         previousTextFrame.nextTextFrame = textFrame;
    The cost of the above code was about 5 hours of banging my head against the wall

  • Use jbo:InputRender instead of html:text

    I'm currently trying JDev 10g preview and i'm using Business Components with Struts. When i use the data control palette to create an input form in a JSP page, all the input are html:text. Is there a way to set the default type of all inputs to jbo:InputRender instead of html:text?
    Thanks
    J�r�

    No, i would like to set the type of each input in my Business Component instead of in the JSP pages. This way, if i want to change the type of an input, i will have to change my business component, not my JSP pages.
    So, to be able to do this, i have to change every input from html:text to jbo:InputRender in all my forms. Which i think is not optional, because if the input type is not indicated, jbo:InputRender use the input type (which in most case, except for dates, is html:text).

  • Text justification issue in crystal report

    Hi,
    I have MVC application with crystal report in it. I am exporting crystal report to PDF, everything except text justification (as we do in MS-Word) is not working. Even in crystal report viewer itself it's not working.
    I have been trying since few days to solve text justification problem in CR. Well I have goggled a lot for this and found different available option to get the thing done. But that didn't solved my problem, I have read many replies on the crystal report discussion regarding the same but no result. I have tried four different versions of crystal report (13.0.5,13.0.6,13.0.9,13.0.13) as I found on the web that justify could work in these versions, but I was shocked when I didn't get anything useful.
    For me it's like justify doesn't work in crystal report by any means. Can any one here tell me who has solved the text justification problem in crystal report. I have attached sample screen shot of word document where in I have specified my requirement of text justification.
    Any positive reply would be highly appreciated.
    -Sunny

    Duplicate thread - Locked. Please continue discussion here:
    Re: Text justification issue in crystal report
    -Abhilash

  • Smart text flow doesn't work in scripting

    This is getting to be really frusting. I have enabled smart text flow, it only works if I open the app and modify a textframe. It never works when I run it through a script????? How do I activate this stupid feature using a script?

    Hi,
    This works (for me):
    var document = app.activeDocument;
    var textFrame = document.textFrames.add();
    var page = document.pages.add();
    var nextTextFrame = page.textFrames.add();
    document.textPreferences.smartTextReflow = true;
    document.textPreferences.limitToMasterTextFrames = false;
    document.textPreferences.deleteEmptyPages = true;
    document.textPreferences.addPages = AddPageOptions.END_OF_DOCUMENT;
    textFrame.geometricBounds = [10, 10, 280, 200];
    nextTextFrame.geometricBounds = [10, 10, 280, 200];
    nextTextFrame.previousTextFrame = textFrame;
    for(var index = 0; index < 100; index++)
        textFrame.contents += "Hello InDesign World Hello InDesign World Hello InDesign World Hello InDesign World Hello InDesign World Hello InDesign World Hello InDesign World ";

  • How to validate Expiry Stock at Outbound Delivery level instead of checking at Goods Issue?

    Hello Everyone,
    The client wants us to validate Expiry Stock at Outbound Delivery level instead of checking at Goods Issue?
    What is the solution for this?
    Regards,
    Anwar

    Hi Moazzam Sir,
    I'm sorry for not explaining in detail. Actually, I posted the issue in a hurry. I apologize.
    Actually, the client has materials which has expiry date. They use Batch Management. They maintain expiry data (90 Days) in Shelf Life Expiration Date. Their requirement is: User is creating sales order in VA01. Then, he creates Outbound Delivery (OBD), then PGI. They want system not to create OBD, if the material has expired. They want some error message to be thrown whenever user is trying to create OBD for expired stock.
    Regards,
    Anwar

Maybe you are looking for

  • PO Interface migrate 11i to R12

    Hi All, We are migrating PO Standard (open) from 11i to R12. The questions are. 1. How could we map PO_HEADERS_ALL in 11i to PO_HEADERS_INTERFACE in R12? same with, PO_LINES_ALL and PO_DISTRIBUTIONS_ALL in 11i to PO_LINES_INTERFACE, PO_DISTRIBUTIONS_

  • Time scatter graph class cl_gui_chart_engine

    hello i need to biled graph that the y pivot is date and hour and the x is caracteristic but i whant to show the x pivot divied by  motnth  for that use i am tring to use time scatter graph. and my question is how to write the categories and the  ser

  • How do I remove Mac OS X Update Combined?

    After updating to 10.6.8 I began having problems. One with my NVIDIA driver (9400M). So I installed the current update from the NVIDIA site. That didnt seem to solve the problem. Unable to revert to my former setting I tried to re-install 10.6.8 in a

  • Looking for Fireworks users that work with Flash in Manhattan!

    If you live in Manhattan and work with Fireworks and Flash and do not mind making some extra cash, then check this out: http://weblogs.macromedia.com/amusselman/archives/2006/07/nyc_usability_s.cfm Good luck!

  • Upgrading mac os x 10.6.8 to mac os x 10.6 server???

    I'm trying to install Mac OS X 10.6 server on my IMac that is currently running Mac OS X 10.6.8.  I have ran the install disc but it get's to the point of install but says it can't update a newer version of Mac OS x. How can I get around this please?