How to get the value of viewattribute and how to assign the text field. URG

Hi all,
I created messagestyled text programmatically and I want the value of viewAttribute.
I don't know how to define the instance of the view and display attribute.

I tried this way, it is what is called the vo class but after that i dnt know how to set

Here the code that I used...

(1) I create the messagestyled text
OAFormattedTextBean cctextbean = (OAFormattedTextBean) pageContext.getWebBeanFactory () .createWebBean (pageContext, FORMATTED_TEXT_BEAN, OAWebBeanConstants.VARCHAR2_DATATYPE, "CCText");

OAMessageStyledTextBean ccidbean = (OAMessageStyledTextBean) pageContext.getWebBeanFactory () .createWebBean (pageContext, MESSAGE_STYLED_TEXT_BEAN, OAWebBeanConstants.VARCHAR2_DATATYPE, "CCId");

(2) and I called the view object
OAViewObject ccview = (OAViewObject) AM.findViewObject ("CmpnyDetVO1");

(3) I want to set the view instance and viewattribute using code. This stage i dnt know how to define.

(4) I want to know, how to get the value of the attribute to display and how to set the value to the messagestyled text field.

I'm new to OFA. It's Urgent.

Thanks in advance
Fabrice

Hello

use
Import oracle.jbo.Row;

OAViewObject ccview = (OAViewObject) AM.findViewObject ("CmpnyDetVO1");
Line line (Row) = ccview.first ();
Test String = (String) row.getAttribute ("");

then to set the value of the text of messagestyled

OAMessageStyledTextBean bean = (OAMessageStyledTextBean) webBean.findindexedchildrecursive ("CCId");
bean.setText (test);

Thank you
Gerard

Published by: Gauravv on August 4, 2009 09:38

Tags: Oracle Applications

Similar Questions

  • Getting the text field value?

    How can I get the value entered into the field of action tf_1?

    Let's say I'm going to number 5 in the text field tf_1, how can I receive it for use in the code?five.png

    I would like to store that value in the variable, so that I can work with him in a function.

    Can someone help me? I am already grateful!

    var num:Number;

    calcular.addEventListener (MouseEvent.CLICK, resolver);

    function resolver(Event:MouseEvent): void {}

    NUM = Number (tf_1.text);

    If (num/400 = 0) {}

    trace ("Yes!");

    }

    }

  • How can I get the text value of an element XML in MXML?

    Hello


    I have the following XML loaded into a variable of XML type:

    Properties of <>
    the RIMpro data collector Configuration < comment > < / comment >
    < key="server.pear.username"/ entry >
    < key = "enter server.apple.retry.times" > 5 < / entry >
    < Enter key = "rdc.proxy.host" > http://192.168.1.2:8080 < / Entry >

    /Properties >

    I can easily get the key attribute displayed in a DataGridColumn by setting the dataProvider my variable and the data in "@key" area  But I don't know how to get the text value in a second column...  Is it possible or do I have to change my XML to something like this:

    Properties of <>
    the RIMpro data collector Configuration < comment > < / comment >
    < key="server.pear.username"/ entry >
    < key = "enter server.apple.retry.times" value = "5" > < / entry > "
    < Enter key = "rdc.proxy.host" value ="
    http://192.168.1.2:8080"""> < / entry > "

    /Properties >

    Thanks in advance.


    Marc

    Yes, you'd better change your XML structure to fit the internal mechanisms of the DataGrid.

    As model dataField require each element of the grid line to have a named property to display, otherwise you will be forced to overcome this model to the custom help labelFunction for the particular column that will implement your custom actions on how to extract the appropriate data for this column of the grid line item. It will be much more complicated that just reorganize your xml structure.

  • Call the base-dos .exe file, but how the input parameters and get the text on the screen of the BACK?

    Yes, I tried the similar topic before posting about this.

    I understand that we can use standard input of entrance of parameters of the System exec.vi, but still can not find an answer on "how to get the text on the screen of the BACK.

    1 seal of sw500912_2701test.exe is the exe of Basic-back , (change to rar .tar)

    2. double-click on the .exe, run this file. The first parameter is the rate band, the default value is 9600.

    3. setting the COM #.

    3.

    Can be useful to check that the command is actually being run. When the dos window opens is there any text?

    Try cmd /c "."

  • I'm trying to get the text on the DVD Movie Maker, I can do this and if so, how?

    I want to put the text of the obituary on the DVD of photos that were presented at the funeral.  I can't save it as a .doc and put in the DVD.  If anyone knows how to get the text in a shape any on the DVD that would be very useful.

    Hi Lisa,

    You will need to create a new DVD by editing the file in Windows Movie maker.

    Visit the link provided below to add text to Windows Movie Maker and check if that helps.

    http://Windows.Microsoft.com/en-us/Windows-Vista/Add-movie-titles-and-credits-in-Windows-Movie-Maker

    You can also check out the links below for more information.

    http://Windows.Microsoft.com/en-us/Windows-Vista/make-a-movie-in-four-simple-steps

    http://Windows.Microsoft.com/en-us/Windows-Vista/publish-a-movie-in-Windows-Movie-Maker

  • Get the value of the drop-down list (selectedIndex) and the text field - does not

    Hi all

    I'm trying to find and change the values selected by the user using a drop-down list and text field. Here's the code.

    ChangeRevDetails();
    function ChangeRevDetails(){
    
    
              var myDialog = app.dialogs.add({name:"Enter copyright information"});
    
    
    //    var monthlist = col1.dropdowns.add('myList', undefined, myList);
    
    
              var col1 = myDialog.dialogColumns.add();
              var col2 = myDialog.dialogColumns.add();
      
        col1.staticTexts.add({staticLabel:"Month:"});
              col1.staticTexts.add({staticLabel:"Year:"});
        col1.staticTexts.add({staticLabel:"Rev. no.:"});
        
        var myList = [ "January", "February",  "March", "April", "March", "April", "May", "June", "July", "August", "Sepetember", "October", "November", "December" ];
    
    
         var myMonth = col2.dropdowns.add({stringList:myList, selectedIndex:0, minWidth:100});//{minWidth:100});
         var myYear = col2.textEditboxes.add({editContents:"2013", minWidth:100});   
         var MyRev = col2.textEditboxes.add({minWidth:100});
    
    
        var RevMonth = (myList [myMonth.selectedIndex]);
        var RevYear = myYear.editContents;
        var RevNumber = MyRev.editContents;
        var RevToReplace1 = RevMonth +", "+ RevYear;
        var RevToReplace2 = RevMonth +", "+ RevYear + " Rev. " + RevNumber;
    
    
        var myResult = myDialog.show();
    
    
            if(myYear.editContents == "") //entry is "" 
            { 
            alert("Please enter some text into the contents field."); 
            ChangeRevDetails(); 
            }
            else if(myResult == true) //user entered datas 
            { 
    
    
                alert (RevMonth);
                alert (RevYear);
                alert (RevNumber);
                alert (RevToReplace1);
                alert (RevToReplace2);
    
    
                app.findGrepPreferences = NothingEnum.nothing;
                app.changeGrepPreferences = NothingEnum.nothing;
    
    
                // grep find/change
                app.findGrepPreferences = app.changeGrepPreferences = null;       
                app.findGrepPreferences.findWhat = "[\\l\\u]+?\\s?\\d{4},?\\s+[\\l\\u]+\\.*\\s+\\d+";
                app.findGrepPreferences.appliedParagraphStyle = app.activeDocument.paragraphStyleGroups.item("Back page"). paragraphStyles.item("Legal_7/9");
                app.changeGrepPreferences.changeTo = RevToReplace1;
                app.changeGrepPreferences.appliedParagraphStyle = app.activeDocument.paragraphStyleGroups.item("Back page"). paragraphStyles.item("Legal_7/9");
                app.activeDocument.changeGrep();
    
    
                app.findGrepPreferences = NothingEnum.nothing;
                app.changeGrepPreferences = NothingEnum.nothing;
      
        } 
        else //implies user clicked cancel 
        { 
        myDialog.destroy(); 
        }
    
    
    }
    
    

    The problem is, it does not take the value that the user selects in the drop-down list and the text field. It takes the default value as "January" and the year is '2013' as these two values are given as selectedIndex:0 and editContents: "2013". I compared the coding with a few other scripts work as well, but it does not work. I added several alert boxes to check the value we get.

    In addition, search for it and change also does not work. Please help me on this. Thank you.

    Kind regards

    Bachi. D

    Change the order of dialogresults:

    ...

    var myYear = col2.textEditboxes.add ({editContents: "2013", minWidth:100});})
    var MyRev = col2.textEditboxes.add({minWidth:100});)
    Ditto var = myDialog.show ();
        If (myYear.editContents == "") //entry is «»
        {
        Alert ("Please enter a text in the content field.");
        ChangeRevDetails();
        }
        else //user entered if(myResult == true) datas
        {
    var RevMonth = (myList [myMonth.selectedIndex]);
    var RevYear = myYear.editContents;
    var RevNumber = MyRev.editContents;
    "var RevToReplace1 = RevMonth + ', '+ RevYear;

    "var RevToReplace2 = RevMonth + ', '+ RevYear + 'Rev' + RevNumber;

    ...

    did not have a look for the problem of change to find

  • How to get the text have the same effect as the video?

    Hello

    For the first time post here, but I wonder how to get the text of the titles have the same effect as the video behind her.

    For my video, I use 'bad tv' and other effects such as Gaussian that obviously changes the appearance of video, creating the look of VHS. However, I then inserted text via the title, but it normally appears. How can I make this text have the same effects as the video behind it?

    A friend told me I might need to add text to the video first, then do the effects, I have not tried, but wonder if there is an easier way, as this would require me to restart.

    EDIT: That's what I'm looking for. https://youtu.be/7_2PHQI89dI?t=24s The text has the same effect as the video.

    Thank you

    One way is to create a clip made up based on the title and the original clip. Then apply the effect.

    Another way is to use an adjustment layer.

    Good luck.

    Russ

  • How to get the text enum I32 an uncontrollable (I / config terminal p side assets in the DAQmx screws)

    Hello

    I use DAQmx screw create clock.vi channel.vi and sample, they have entered (Terminal configuration of entry) and (active) both are I32 and have enum watch drop-down options. I want to use these text values to put in my excel file, but they give numerical codes associated with respective option. is it possible to get the text as it is.

    It is not an enum but I32 resembling enum...

    Help, please...

    Thank you

    In fact the active side is a control of the ring. Just a click and create a property for text.text ring node. This will give you the selected channel when the property node runs.

    I hope this helps.

  • How do you get the text of a SystemPrompt in C++?

    Hello!

    Currently, I am trying to use a SystemPrompt in my application, but don't understand how to get the text that the user entered.

    I use the example of:

    http://developer.BlackBerry.com/Cascades/documentation/UI/dialogs_toasts/prompts.html

    The example shows:

    void App::onPromptFinished(bb::system::SystemUiResult::Type type) {
        if (type != SystemUiResult::ConfirmButtonSelection)
            {
            qDebug() << "Prompt Accepted:" << text;
            // The user accepted the prompt.
            }
        else {
            qDebug() << "Prompt Rejected";
            // The user rejected the prompt.
        }
    }
    

    In addition to the bug in the example (her if the statement should be == and not! =), I do not understand where text is supposed to be defined.

    Clues on how to get the textvalue?

    Not necessarily, you can recover the sender of a message to the location:

    SystemPrompt * prompt = qobject_cast(sender());
    QString text = prompt-> inputFieldTextEntry();

    I don't know that it will be deleted automatically, it will most likely not. If you can also destroy it in the slot to prevent the accumulation of instances:

    Guest-> deleteLater();

  • How to get the text of a SystemPrompt (Cascades)

    Hello

    I've been struggling with this for a few hours now. I followed the example of "dialogues" on github, so I have successfully created a SystemPrompt (the dialog box that allows the user to enter text and accept / reject). Curiously, in this example there is no use of user text input. Do you know how to get the text in my QML? Here you have an example of code that I use:

    My QML:

    // Default empty project template
    import bb.cascades 1.0
    import bb.system 1.0
    
    // creates one page with a label
    NavigationPane {
        id: navigationPane
        Page {
            attachedObjects: [
                SystemPrompt {
                    id: prompt
                    title: qsTr("Enter a text for the label")
                    modality: SystemUiModality.Application
                    inputField.inputMode: SystemUiInputMode.Default
                    inputField.emptyText: "Label text..."
                    confirmButton.label: qsTr("Ok")
                    confirmButton.enabled: true
                    cancelButton.label: qsTr("Cancel")
                    cancelButton.enabled: true
                    onFinished: {
                        if (result == SystemUiResult.ConfirmButtonSelection) {
                            lab1.text = ????? // Here is where I don't know what to do
                        }
                    }
                }
            ]
    
            Container {
                layout: StackLayout {}
    
                Label {
                            id: lab1              text: "Label text"
                    objectName: "lab1"
                    textStyle.base: SystemDefaults.TextStyles.TitleText
                    horizontalAlignment: HorizontalAlignment.Center
                }
    
                Button {
                    text: "Update label"
                    horizontalAlignment: HorizontalAlignment.Center
                    topMargin: 150.0
                    onClicked: {
                        //_appUi.editLabel();
                        prompt.show();
                    }
                }
            }
        }
    }
    

    Be sure to add this in your .cpp file or all of app:

    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    

    and don't forget to include them in your app .cpp file (probably not all are needed, but just in case I leave here for the moment):

    qmlRegisterType("bb.system", 1, 0, "SystemUiButton");
        qmlRegisterType("bb.system", 1, 0, "SystemUiInputField");
        qmlRegisterType("bb.system", 1, 0, "SystemToast");
        qmlRegisterType("bb.system", 1, 0, "SystemPrompt");
        qmlRegisterType("bb.system", 1, 0, "SystemCredentialsPrompt");
        qmlRegisterType("bb.system", 1, 0, "SystemDialog");
        qmlRegisterUncreatableType("bb.system", 1, 0, "SystemUiError", "");
        qmlRegisterUncreatableType("bb.system", 1, 0, "SystemUiResult", "");
        qmlRegisterUncreatableType("bb.system", 1, 0, "SystemUiPosition", "");
        qmlRegisterUncreatableType("bb.system", 1, 0, "SystemUiInputMode", "");
        qmlRegisterUncreatableType("bb.system", 1, 0, "SystemUiModality", "");
        qRegisterMetaType("bb::system::SystemUiResult::Type");
    

    Thank you very much

    If you look very carefully by the docs, you'll trip over https://developer.blackberry.com/cascades/reference/bb__system__systemprompt.html#inputfieldtextentr...

    So, replace your? with inputFieldTextEntry() and you will get the text you need.

  • How to get the text block, given anchor (~ a)

    I need to dynamically position anchored with anchor text blocks (but the relative position will be different for each anchor). If I grep ~ i can get the anchor marker - how to get the text block once I got this marker?

    Thank you

    The marker "anchor" is a character of "simple".

    So you can do the following if you have identified the character (and in this example selected it):

    //Start with an "Anchor Marker" selected:
    var myCharacter = app.selection[0];
    
    if (myCharacter.texts[0].textFrames.length == 1){
    
    var myAnchoredTextFrame = myCharacter.texts[0].textFrames[0];
        //do something with the anchored text frame:
        myAnchoredTextFrame.fillColor = "Yellow";
    
        };
    

    You can set the myCharacter variable differently, if you know the index of the character according to his history of parent.

    Or if you have found the character as part of a search GREP or TEXT by ExtendScript (JavaScript).

    Uwe

  • I have a form in which the text area can be developed to accept more text, but the text does not appear on the printed copy.  How can I get the text to print?

    I have a form in which the text area can be developed to accept more text, but the text does not appear on the printed copy.  How can I get the text to print?

    Hi robinm6200,

    Make sure that you have selected 'Document and annotations' under 'Comments and forms' when printing.

    Kind regards

    Nicos

  • create a children's book? How to get the text over an image?

    I have 13 Adobe elements. Try to get the text on an image. An illustrated image. How can I do this?

    Open the image in Expert mode

    Download the text out of the tool box tool, select the font, the pt size, color and type text.

    Use the move tool to position the text. Note that the text will be on a separate layer, and you must click on this layer to make it active.

  • How get the text of each paragraph when a textStyleRange is made of texts to multiple paragraphs

    Hello

    Always on my account findText. The result is sometimes as a textStyleRange which contains the texts of multiple paragraphs. What is the best (and easy) way to get the text of each paragraph individually?

    Example: The result of an italic findText with the following extract gives me "saectur quatur? " " Ipsapidunte our" as a unique textStyleRange (correct) but I want to get the text of each paragraph.

    Is there a way to force the findText in the paragraphs and not those of them and if not, how to cut the textStyleRange in 2 texts?

    -----------------------

    Our Ipsapidunte and eumquosame derepre id ulparch iliquae offic tem faccusd aecaborrum, sequi aut doloreperi quaectem eatem faces very quam, con nullaccus repratur molorio enis modi sumquibus nostemquam and volorum facidunti nonseditati re a dolut dolorest ab idipitem saectur quatur?

    Our Ipsapidunte and eumquosame derepre id ulparch iliquae offic tem faccusd aecaborrum, sequi aut doloreperi quaectem eatem faces very quam, con nullaccus nostemquam repratur molorio enis modi sumquibus and re volorum facidunti nonseditati a saectur dolut dolorest ab idipitem quatur?

    There are two solutions:

    (1) you could be formatted every paragraph with formatting marks that you know doesn't exist anywhere else. In this way, each textStyleRange is guaranteed to end at the end of the paragraph.

    (2) you can access the entire first paragraph: myTextStyleRange.paragraphs [0]. I have not tested, but no doubt it works. You could also do a loop: paraLength = myTextStyleRange.paragraphs.length; for (i = 0; i< paralength;="" i++);="" mypara="myTextStyleRange.paragraphs[i];}">

  • How to get the text in a dynamic text field?

    Hello

    I would like to get the text in a text field I have on stage and put it into a string. I do this because I don't don't want to use the table to store each letter I click. Is this possible?

    Concerning

    you don't know.  You can use the text property of your textfield object and store that value in a variable.

    You can use a click on a button to trigger this code or change event of the textfield or any number of other triggers.

  • How can I prevent the text fields and drop downs changed after the form has been signed using a digital certificate? Thank you.

    Hi all

    How can I prevent the text fields and drop downs changed after the form has been signed using a digital certificate? Thank you.

    There is also a checkbox on the dialog box 'Sign' to lock document after signing.

Maybe you are looking for

  • Family sharing and iCloud iOS 10?

    Hello I'm after some tips on iCloud and sharing of the family. (devices have been upgraded to iOS 10) I used to have several devices (2 iPhones and iPads 2) 1 Apple ID. Because of mixed text, etc. messages and cross the composition, I enabled sharing

  • should I update my mini ipad to 9.3.2

    I use an ipad 16 GB wifi mini version 9.3.1 should I upgrade to 9.3.2 and even in the 4 s 32 gb iphone I use garageband in mini ipad but I could not install the latest update to garageband What should I do?

  • How to order screen for Toshiba Satellite M50-A-110

    Display on my M50A110 has been broken, and I want to order a new. How can I order this part? All the info I have on it are specs on toshiba.com and I'm not sure if that's enough (screen size: 39.6 cm (15.6-inch) type: screen Toshiba TruBrite® HD TFT

  • TECRA 9100 battery problem

    Similar experiences to mine, please? After using no not my Tecra for some time (about 3 months). He was once again the charger for more than 24 hours and I'm now done with the original problem, I had the last time I used the Tecra, several months ago

  • Satellite C660-2 q 8 does not start with 8 GB of RAM

    Hello I have a laptop toshiba satellite c660-2 q 8. When I got it it was only 1 g of Ram I have now had 8g of RAM for it, but as soon as I get it the laptop starts as usual with the BIOS screen, then I get a black screen with a flashing - and that's