Dynamic uix:globalheader text=""

I want to be able to populate the text string in the following tag:
<uix:globalheader text="Some static text " + <%= <some_expression> %> />
How can I do this?
TIA,
Ed.

Never mind. I used textBinding and solved the problem.

Similar Messages

  • How to dynamically change the text of a TextObject with embedded DataField?

    Hi
    I'm trying to dynamically change the text of a TextObject at runtime, by using the .NET library. My problem is that if one or more DatabaseFieldDefinition is embedded inside my text, I'm unable to change the "static text" only, by keeping the field, e.g. I have :
    Text1 => "Contact Name: {Contact.Name}"
    and I'd like to change it to anything else like:
    Text1 => "Nom du Contact: {Contact.Name}"
    Half of my TextObject is static text while second part comes from the dataset.
    (of course the translation is dynamic - it is called at run-time and the new value to be set depends on the calling application language)
    If I simply modify the Text property of my TextObject, the {Contact.Name} embedded field is not evaluated anymore by the Crystal Engine, but considered as a single text.
    Using formulas or parameters looks quite difficult, because it means having many ones just for translation needs - I cannot control the way my users will create their reports and "force them" to use complex methods just in order to put a text and a value together...
    Anyone knows how to deal with that ?

    Only way I can think of doing this:
    1) Create a formula (call it lang) and enter the string "Contact Name" in it
    2) Place the  {Contact.Name} field next to the string
    3) So now you have:
    ContactName:  {Contact.Name}
    4) Check what localization you are after. If you need "Nom du Contact", change the lang formula so it shows "Nom du Contact" using the code below:
    Imports CrystalDecisions.CrystalReports.Engine
    Imports CrystalDecisions.Shared
    Public Class Form1
    Inherits System.Windows.Forms.Form
    Dim Report As New CrystalReport1()
    Dim FormulaFields As FormulaFieldDefinitions
    Dim FormulaField As FormulaFieldDefinition
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    FormulaFields = Report.DataDefinition.FormulaFields
    FormulaField = FormulaFields.Item(0)
    FormulaField.Text = "[formula text]"
    CrystalReportViewer1.ReportSource = Report
    End Sub
    I realize this may not give you consistent spacing as the translations may have strings of differnt length. Perhaps someone has other idea(s)...

  • JTable - Dynamic wrapping of text in a cell.

    Hello,
    Can anyone tell me how to dynamically wrap the text in a particular cell of a JTable if it is to long to be displayed on one line? I don't care if it affects the row height. Basically, I have a table with 3 columns, the thrird of which is a "notes" column and allows up to 500 characters to be displayed. When the text is too long the table truncates it with an elipsis (...) and the user can't see the rest. I would like the text to wrap within the cell (even if the height has to change) so that the user can read the entire note more easily.
    Thank you,
    G Poole

    You should probably repost this in the swing forum

  • Dynamic Wrapping of text in Web Application Designer of BEx.

    Hi
    Dynamic wrapping of text is to be done in Web application Designer of BEx.
    How is the code that was given earlier to be incorporated using stylesheets???Please explain in detail.
    Also if any other way is possible,plz deliberate.
    Thanks.

    Hi Sachin,
    stylesheet parameter is:
    white-space:
    options:
    normal
    pre
    nowrap
    pre-wrap
    pre-line
    regards Sven

  • Is Dynamic Loading of Text from an external file possible in Captivate?

    Hello all,
    I am wondering if Dynamic loading of text is possible in captivate or not.
    As we can load an external file in flash.
    & which is the universal font to be used for the text entry box which will visible on any media?
    Thanks & Regards,
    Chirag

    Hello,
    I'm not a specialist about JavaScript. Have a look at Jim Leichliter's blog:
    http://captivatedev.com/
    Lilybiri

  • Dynamic Values for text

    I apologize in advance.  Not much of a web designer or code guy here, but I just need to create a simple animation to be dropped into a MUSE creation and I think Edge Animate is the right way to do it.  For the life of me I cannot figure out how.
    Basically, I want to create a simple animation to explain the dimensions of a product.  A line with arrows on both ends would grow to the length of a line drawing symbolizing its height for example.
    Accompanying that would be a text box that I would like to simply count up from 0.0" to 3.5" for instance.
    The question is how do I dynamically update the text from 0.0 to 3.5 across a 2 second animation in Edge Animate?
    Is this even available or is this why people are still using Flash.
    Thanks in advance and apologies for the naivety!
    Karl

    Hi Karl,
    No naive at all : a very interesting exercise.
    We use three elements
    • a rectangular shape ;
    • a diamond cursor that moves along the shape (2 s tweening) ;
    • a text value element.
    1) The first solution leverages the update event that is fired by the timeline.
    First define constants that you can modify to your needs.
    Stage > creationComplete event handler :
    endValue = 35;
    duration = 2000; // 2000 ms
    Timeline.update event handler (accessed via the top left bullet+curly braces icon : circled on the screen capture) :
    var newValue = Math.floor( sym.getPosition()/duration *endValue);
    sym.$('value').text(newValue);
    sym.getPosition() gives the current position of the playhead in ms. We divide it by the total duration of the animation and multiply by the end value to display. Math.floor rounds to an integer value.
    2) The second solution leverages the JavaScript setInterval function, which calls a function at regular interval. For that, we define a new variable frequency : you can tweak its value until you get the correct frequency for the update.
    Stage > creationComplete event handler
    endValue = 35;
    duration = 2000; // 2000 ms
    frequency = 100;
    setInterval(function()
        var newValue = Math.floor( sym.getPosition()/duration *endValue);
        sym.$('value').text(newValue);
      }, frequency);
    Download the two versions here : https://app.box.com/s/gi7hownshaz6rti8kggu
    Gil

  • Dynamic Tool tip text/Quick Info

    Is it possible to have dynamic tool tip text when you hover over an icon on a report?  I know you can change the function key text but these icons are present on the report itself.
    Any ideas?!

    Check if you have the QUICKINFO option for the WRITE statement for your release.

  • Dynamic Linking with text

    Can text created in Pr Titler be sent from a Pr Timeline
    to an Ae comp via Dynamic Link in the upcoming version?
    http://forums.adobe.com/message/5274695#5274695

    I'll file a feature request here:
    http://www.adobe.com/go/wish
    Feature Request:
    Brief title for your desired feature:
    Dynamic Linking with text
    How would you like the feature to work?
    The ability for text created in Premiere Titler
    to be sent from a Premiere Timeline to an
    After Effects Composition via Dynamic Link.
    Why is this feature important to you?
    I do all of my finished titling in Ae, and would like to
    be able to transfer rough-cut text from Pr for compositing
    Filed.

  • Dynamic User Decision Texts

    1. Is there a way to configure WF for Dynamic user decision texts? Depending on a flag I might want the user to have two decisons like "Accept" or "Reject" or in some cases three decisions like ""Accept" or  "Reject" or "Cancel" or etc etc.
    2. If the above is not possible, can I have maybe 4 fixed User decision texts and dynamically enable or visible them as I need. For example I can have "Accept" or  "Reject" or "Cancel", but I may need on ""Accept" or  "Reject", so make Cancel invisible..Is this possible..
    Thanks a lot in advance..I will award points..
    Amlan

    You need to program the outcomes in the method and handle these in the workflow. The standard user decision step allows you multiple and good thing is you don't need to program anything but just handle it in the workflow.
    Why don't you give it a try and see for yourself?
    Regards
    Ravi

  • Problems with displaying Asian languages dynamically in a text box

    I have a text box that I am adding to the stage dynamically. The text box is a movieclip in the library. However, when it is added to the stage the message is not displayed. I have no problems with English or Spanish but for Chinese, Korean, and Japenese the message is not displayed. Here is the code in Chinese (when a certain condition is met:
    function whiteFlashCompleteF():void{
       ssMessageF("截图已添加至您的图片库");
    function ssMessageF(s:String):void{
        ssMessage.alpha = 0;
        addChild(ssMessage);
        ssMessage.x=stage.stageWidth/2;
        ssMessage.y=stage.stageHeight/2;
        ssMessage.tf.text = s;
        TweenLite.to(ssMessage,1,{alpha:1});
        TweenLite.to(ssMessage,1,{alpha:0, onComplete:ssMessageCompleteF, delay:3, overwrite:false});
    Do anyone have any ideas on how I can get the text to display?

    any text that is rendered in a dynamic textbox during runtime,
    has to consist of characters of a font you have properly embeded,
    (which might not be the case for this chinese message)

  • Subscript & Superscript in dynamic and input text field in Flash

    Yes, <sub> & <sup> tags are not supported by
    Flash but you can
    use Subscript & Superscript in dynamic and input text
    field in Flash:
    Download & install Subscript & Superscript fonts
    from
    http://www.subscriptfont.com
    or
    http://www.superscriptfont.com
    You will need to restart Flash software after installed
    fonts.
    Create a dynamic text field with Arial font embeded. Set the
    HTML property to true.
    Create a dynamic text field with Subscript font embeded.
    Create a dynamic text field with Superscript font embeded.
    Use HTML tag to set text to subscript or superscript like
    below:
    Some text<font face="Superscript">©</font>
    If you are using ActionScript to test the htmlText, use
    script like below:
    my_txt.htmlText = "Some text<font
    face='Superscript'>TM</font>";
    They are better than CG since it goes lower than the baseline
    and it's real subscript..

    Hi Nirnalatha,
    I have newly joined this forum and while going through the
    posts I came across your post which I thought I could help out. But
    I think I am too late for the reply.
    I am also into Flashlite development couple of months from
    now. Coming to your questions:
    1. Textbox problem: I am surprised to know that E70 mobiles
    (Device central list has E70-1 only) does not show input text box
    when cursor is in input box. Anyways its a good thing that you dont
    get an additonal input box. Like all J2ME applications you will be
    able to type the text inline. Infact we had reverse problem where I
    was told to create inline edit input box instead of flashlite input
    box. I think this is the mobile setting. Check the device features
    in the Adobe Device Central under Flash - Standalone player - Text
    and Fonts features. It will be mentioned whether inline text is
    allowed or not.
    2. Soft keys issues: You need to use
    fscommand2("SetSoftKeys", "Previous", "Next");
    and use a key listener in order to override the Mobile
    Softkey commands. Check out the flashlite help which clearly
    explains this.
    Hope I have given youa way to solve ur problem.

  • Dynamic UIX tree

    Hi everybody, for the last couple of days i was trying to create a tree in UIX (with nodes and subnodes) based on dynamic data (not inline data defined in the UIX page) and i have found that the only way to do it(correct me if i'm wrong) is through java (not XML) and these are my main attempts:
    1)
    public class TreeTest1
    public static UINode getPage()
    HTMLWebBean div = new HTMLWebBean("div");
    TreeBean tree = new TreeBean();
    tree.setNodes(_getDataForTree());
    div.addIndexedChild(tree);
    BodyBean body = new BodyBean();
    body.addIndexedChild(div);
    return body;
    static private DataObjectList _getDataForTree()
    DataObject[] rows = new DataObject[5];
    for (int j = 0; j < rows.length; j++)
    DictionaryData row = new DictionaryData();
    row.put("key", "" + j);
    row.put("text", "" + j);
    rows[j] = row;
    return new ArrayDataSet(rows);
    when i run this i just get level-1 nodes without any control over them (i.e i can't set their properties like destination, expandabilty..etc)
    2) I have found this code here http://otn.oracle.com/jdeveloper/help/topic?inOHW=false&linkHelp=false&file=jar:file:/u01/webapps/OHW/ohw-app/jdeveloper/helpsets/jdeveloper/reference/reference.zip!/uix2-javadoc/oracle/cabo/ui/data/tree/SimpleTreeData.html but it is not mentioned how to add this DataModel to the tree.
    3) In the TreeBean API there are methods to add any IUNode to the tree (including another tree) and here's an example :
    public class TreeTest1
    public static UINode getPage()
    HTMLWebBean div = new HTMLWebBean("div");
    TreeBean tree = new TreeBean();
    tree.addIndexedChild(new TextNode("First tree node"));
    tree.addIndexedChild(new TextNode("Second tree node"));
    div.addIndexedChild(tree);
    BodyBean body = new BodyBean();
    body.addIndexedChild(div);
    return body;
    but the problem here is that the tree is not rendered, any other UINode is rendered perfectly.
    I would appreciate any help.

    Hi Houssen, I made a simple example. Try it.
    The uix file
    -------- BEGIN ----------
    <?xml version="1.0" encoding="windows-1252"?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:html="http://www.w3.org/TR/REC-html40">
    <content>
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui"
    xmlns:data="http://xmlns.oracle.com/uix/ui">
    <provider>
    <data name="Proxy">
    <method class="mypackage.Tree" method="getProxy" />
    </data>
    <data name="Nodes">
    <method class="mypackage.Tree" method="getTree" />
    </data>
    </provider>
    <contents>
    <document>
    <metaContainer>
    <!-- Set the page title -->
    <head title=""/>
    </metaContainer>
    <contents>
    <pageLayout>
    <contents>
    <form name="menuForm" >
    <contents>
    <tree id="menuTree" formSubmitted="true"
    data:nodes="nodes@Nodes"
    data:proxy="proxy@Proxy" />
    </contents>
    </form>
    </contents>
    </pageLayout>
    </contents>
    </document>
    </contents>
    </dataScope>
    </content>
    <handlers>
    <event name="expand" >
    <method class="mypackage.Tree" method="handleExpand" />
    </event>
    </handlers>
    </page>
    -------- END ----------
    The java file
    -------- BEGIN ----------
    package mypackage;
    import oracle.cabo.servlet.BajaContext;
    import oracle.cabo.servlet.Page;
    import oracle.cabo.servlet.event.EventResult;
    import oracle.cabo.servlet.event.PageEvent;
    import oracle.cabo.servlet.ui.BajaRenderingContext;
    import oracle.cabo.ui.RenderingContext;
    import oracle.cabo.ui.UIConstants;
    import oracle.cabo.ui.data.DataObject;
    import oracle.cabo.ui.data.tree.ClientStateTreeDataProxy;
    import oracle.cabo.ui.data.tree.SimpleTreeData;
    public class Tree implements DataObject {
    private String submitURL = null;
    public Tree(String submitURL){
    this.submitURL = submitURL;
    public static DataObject getProxy(RenderingContext rc, String ns, String name) {
    return new Tree(null);
    public static EventResult handleExpand(BajaContext context,Page page,PageEvent event)
    throws Throwable
    String state = event.getParameter(UIConstants.STATE_PARAM);
    String node = event.getParameter(UIConstants.NODE_PARAM);
    String selection = event.getParameter(UIConstants.SELECTION_PARAM);
    EventResult result = new EventResult(page);
    Object proxy = new ClientStateTreeDataProxy(null, state, node, selection);
    result.setProperty("proxy", proxy);
    return result;
    public static DataObject getTree(RenderingContext rc, String ns, String name){
    SimpleTreeData parent = new SimpleTreeData();
    SimpleTreeData child = new SimpleTreeData();
    child.setText("1");
    child.setExpandable("collapsed");
    parent.addChild(child);
    child = new SimpleTreeData();
    child.setText("2");
    child.setExpandable("collapsed");
    SimpleTreeData child2 = new SimpleTreeData();
    child2.setText("2.1");
    child2.setExpandable("collapsed");
    child.addChild(child2);
    parent.addChild(child);
    return parent;
    public Object selectValue(RenderingContext rc, Object p1) {
    BajaContext bc = BajaRenderingContext.getBajaContext(rc);
    EventResult result = EventResult.getEventResult(bc);
    Object proxy = (result==null) ? null : result.getProperty("proxy");
    if (proxy==null) proxy = new ClientStateTreeDataProxy( submitURL, null, null, null);
    return proxy;
    -------- END ----------
    Hope this help
    Rafael

  • 10g UIX globalHeader style?

    In the UIX 2.1.7 Demo Bundle - Components Guide and in Oracle Portal, the globalHeader bar has a scoop out of it on the right. When we create globalHeaders with JDev 10g preview, they are just a solid line all the way across. Is there a way to choose these styles?

    Is there a way to render the globalHeader bar the same thickness whether there are any links in it or not? I have a page where some tabs have subsections and some don't. I've tried providing the 'text' attribute with a string that's just some spaces, but I guess they're getting stripped.
    Thanks!

  • Dynamic action on text box change does not working

    i have a page with following components.
    a report that has and edit link.
    a text box to catch the primary key from report link when it is clicked
    a number of elements (text boxes, check boxes and LOVs) which are used as data entry form.
    Now my design is that user enter values save them and no sooner did they save, the report depicts new
    values. if user want to edit any record, they click on edit link and the data entry form elements
    should now bring all those values from DB on page. i m successful to pick primary key and bring
    it in a hidden text box and wrote a dynamic action on its change event that will bring values from
    DB and set all page elements. but but but.........the change event doesnt work. it only work
    when focus is lost from the text box...!! offcourse user wont want to click in that "hiddent" text
    box and then click some where else to bring values in page data entry form......
    help is humbly requested from forum or if any other solution approach is to be used easier than
    one i m using, would be appreciated.
    thanks in advance for reading my bore question :)

    bundles of thanks for reply. i m going to elaborate.
    1. My page no is 3.
    2. Hidden Item name is P3_EDIT_ACTIVITY_ID
    3. Data entry form, hidden item and the report are on the same page.
    4. on the edit link of report, i have used following settings.
        Target: Page in this application
         Page: 3
         and i set hidden item as follows......
         Item 1   P3_EDIT_ACTIVITY_ID         Value #ACTIVITY_ID#
       well, when i click the link on report it does bring Activity_Id in the hidden box (which is not yet hidden for debugging purpose)
    Next i wrote Dynamic action which fires on the change event of P3_EDIT_ACTIVITY_ID and run PL/SQL code with in it which is as follows
      declare
      Dept varchar(50);
    begin
       select my_dept into Dept from activity_main ACTIVITY_ID = :P3_EDIT_ACTIVITY_ID;
       :P3_Dept := :Dept;          (i did use :P3_Dept := Dept also but this wont work)
      insert into testdynamic (stamp) values (Dept);  (I did this to check whether correct value is brought from DB, yes it works correctly, correct Dept is being inserted in stamp column)
    end;
      i have created another true action to check when the dynamic action is fired. its very simple alert. and the problem is, it only fires when focus is lost from the P3_EDIT_ACTIVITY_ID. i mean, when u keep changing value inside the text box, nothing happens, when u go outside, the alert is fired and so the pl/sql procedure. but the line
        :P3_Dept := :Dept;       OR      :P3_Dept  := Dept;         arent working which is the actual requirement.
      I m not using set value here as i have to set a lot of values on page not one. further. plz let me get rid of this lost focus thing as i want the form to be populated with correct values related to P3_EDIT_ACTIVITY_ID as the user click on any edit_link in the report.
    Thanks for persistence. i hope i have provided all the details.
    looking forward.

  • How to preserve special characters in dynamic textfield for text comparison?

    The problem is as follows:
    Since I mostly develop for multiple languages I am forced to have dynamic textfields in my buttons which contain three lines (to account for the differnt text.lengths in different languages).
    I then populate the textfields with strings out of an array or xml and use the textfields contents later in my button class to execute different code depending on the textfields content.
    This works fine as long as I don`t use any special characters, like for example "\n".
    var labels:Array = ["\nLABEL1","LABEL\n\n2"];
    switch (e.currentTarget.txt.text)
                    case labels[0]:
                        doSomething();
                        break;
                    case labels[1]:
                        doSomethingElse();
                        break;
    shows the right thing in the button label (breaks the text were I want it)
    but stops to work
    (with htmlText &  <br> its the same)
    my workaround for the moment is to use filler spaces,
    var labels:Array = ["                   LABEL1","LABEL                                                                        2"];
    but that`s obviously ugly to setUp and requires a lot of trial/error to get it right for all languages.
    Any ideas how to bypass that?

    Bad habits die hard ;-)
    Weird enough spelling the problem out and getting this response from you cleared my head and  I finally got an easy solution.
    I simply attach a dynamic property to the movieclip, copy the array contents into them and instead of using the text-property for comparison I compare the MovieClips fresh created spectext property.
    Voila: Now I can be lazy without too much of a bad conscience.

Maybe you are looking for

  • Automatic downloads not automatically downloading new episodes

    I can't seem to get the Automatic Download setting to actually work the way that it should.  As far as I know, this setting should automatically download a new podcast episode when available, and with the most recent update to the Podcasts app, we ca

  • When drag current slide number not getting using this variable containerMC.rdinfoCurrentSlide;

    Hi I have made the simulation using Captivate 4 and published the project in Flash Player 8. This swf file, I have loaded in the flash and I have made my custom progress bar in flash 8 for it. When I drag rapidly, some time, I not getting the current

  • Buying from the UK store when your home store is US...

    So there is the album that is not carried in the US iTunes store but is, however, in the UK iTunes store.... is there anyway to purchase this album and use the billing and card I have here in the States? It keeps telling me that I am only valid to us

  • Ship to and sold to

    Is it possible a customer can be extended from a SHIP TO to a SOLD TO.  If I try to add it to the partners screen as a SOLD TO it errors Customer XXXX not defined for function SP (table TPAKD).

  • Help with a mouseover popup box

    I'm not certain if that's the right name.  What I want is a box that pops up with information when a user's mouse hovers over an item and that disappears again when the mosue moves away.  I'm not really certain what it should be called.  Any suggesti