How can i show input text when no row present in database.

Hi All,
I am using Jdeveloper 11g Release1(11.1.1.4.0)
I have created EO and VO which is based on that EO.
By using Vo i have designed .jspx page ,on that page i have taken adf form which is based on that VO.
My problem is when database table is blank (i.e zero row) then input text on page not displayed.
I want to show blank input text when such condition occurs.
Thanks
Imran.

Hi,
You can set ExecuteWithParams as default activity in the task flow then method activity to return total no of rows passing to Router activity if your method has value 0 then call Create insert operation else do directly to page.
Following idea could be your task flow
Execute With param (default) > SetCurrentRowWithKey > GetTotalNoOfRows (VOImpl Method)
|
v
Router
1. If pageFlowScope outcome is 0 then call CreateInsert > MyPage
2. if pageFlowScope outcome > 0 then MyPage
hope it helps,
Zeeshan

Similar Messages

  • How can I show vertical text?

    Hi all, does any body knows how can I show a vertical text using g2.drawString() method?
    For example:
    g2.drawString("Help", x, y);
    I want the text appear like:
    p
    l
    e
    H
    of course with the correct rotation of each character.
    thanks in advance

    Here's the code we use in the JFreeChart project:
         * A utility method for drawing rotated text.
         * <P>
         * A common rotation is -Math.PI/2 which draws text 'vertically' (with the top of the
         * characters on the left).
         * @param text  the text.
         * @param g2  the graphics device.
         * @param x  the x-coordinate.
         * @param y  the y-coordinate.
         * @param rotation  the clockwise rotation (in radians).
        public static void drawRotatedString(String text, Graphics2D g2,
                                             float x, float y, double rotation) {
            if ((text == null) || (text.equals(""))) {
                return;
            AffineTransform saved = g2.getTransform();
            // apply the rotation...
            AffineTransform rotate = AffineTransform.getRotateInstance(rotation, x, y);
            g2.transform(rotate);
            // workaround for JDC bug ID 4312117 and others...
            TextLayout tl = new TextLayout(text, g2.getFont(), g2.getFontRenderContext());
            tl.draw(g2, x, y);
            // replaces this code...
            //g2.drawString(text, x, y);
            g2.setTransform(saved);
        }That bug workaround is causing trouble in some JDKs, try the original code and see if it works for you.
    Regards,
    Dave Gilbert
    www.jfree.org

  • How can I show only text edits and not text formatting when using print comments summary?

    Acrobat 9.3.0 for Mac.
    Here is the scenario: I used the Compare command to see the changes between 2 PDFs. The resulting file some edits are inserts and some are deletions. I want to print a comments summary only showing the text edits. In the Compare Option pane, I select Text and deselect Images, Annotations, Formatting, Headers/Footers, and Backgrounds. Now on the screen I see inserts are highlighted in blue and deletions are marked with sort of a caret and vertical bar symbol. So all looks good at this point. However, when I show the Comments List, I see addtional comments that indicate "Replace - The following text attributes were changed: fill color." Those comments do not appear in the page view unless I check the Formatting check box to show them. With Formatting unchecked, I print a comments summary and all of the "Replace - Fill Color" comments" appear on the resulting comments summary.
    I only want to show text edits, not text formatting changes. So questions are:
    1. Why, when the Formatting checkbox is unchecked, do the text formatting comments still appear in the comments list when they do not appear on the page display.
    2. How can I print only the text content edits and not show the text formatting changes when using Print Comments Summary.

    Hi,
    You can set ExecuteWithParams as default activity in the task flow then method activity to return total no of rows passing to Router activity if your method has value 0 then call Create insert operation else do directly to page.
    Following idea could be your task flow
    Execute With param (default) > SetCurrentRowWithKey > GetTotalNoOfRows (VOImpl Method)
    |
    v
    Router
    1. If pageFlowScope outcome is 0 then call CreateInsert > MyPage
    2. if pageFlowScope outcome > 0 then MyPage
    hope it helps,
    Zeeshan

  • How can I have popup text when user types something wrong?

    I have some textarea and textfields created dynamically. I have set of rules in a text file. How can I have these rules popup when users make mistakes(e.g., forgets to capitalize the name)?
    Please provide your input.
    Thx.
    M

    Mike
    From your addendum I'm guessing you are wanting to do this with a JSP or servlet. If so Ali's suggestion won't work becuase he's working with Swing components. It is always helpful if you specify the technology you're using: JDeveloper is a tool for writing many different types of Java programs.
    If you want to produce pop-up windows in JSP then you have to use JavaScript.
    If you're using DataWebBeans and want to use JavaScript you have to change (ie subclass) the WebBeans so that they have HTMLFieldRenderers that allow you to attach Javacript to a TextField (or whatever). This is not a small job but is worth it for the flexibility you'll gain.
    If you're using datatags I should imagine it's easier because you can add JavaScript functionality directly to the HTML input fields e.g. in the Input page, but I imagine you'll still have to subclass your own datatags to do the same for the Update pages.
    GoodLuck().youllNeedIt, APC
    null

  • How can I show the Text variable in WAD 7.0

    Hi All,
    How I can show the text variable in WAD 7.0??
    Kinsly suggest me..
    Re

    Hi,
    As far as i know u do not need any special web item to display the text variable as such. have a analysis item in u r WAD and assign query to the same. Ur variables appear as per the configuration u have made in the query designer. WAD has nothing to do.
    Regards

  • How can I show text sentence on XY graph

    Hello,,,, anyone knows??? How can I show text sentence on XY graph?
    I just know that the only numeric data type can be the input data but my case I have both the number and message to show on the same graph.
    Thanks in advance
    Mannie

    You start out with an array of zero size. Since replace array subset does not change the size of an array, you stay with zero annotations. If nothing is there, you cannot replace it.
    Possible solutions:
    (A) Instead of reading the current annotation list (which is zero!), you could initialize the shift register with a diagram constant (right-click...create constant), expand it to the desired number of elements and make them all e.g. with a blank text.
    (B) Alternatively, you can manually create the desired number of annotation by right-clicking on the graph and select "data operations...create annotations". Now you start of with an array of the correct size if you read the annotation list with a property node and you can replace them programmatically with new annotations as desired.
    (C) You can also initialize the shift register with an empty array, then use built array to add annotations.
    LabVIEW Champion . Do more with less code and in less time .

  • How can I create a text pop up window in my Pages document? I want text to pop up when the reader hovers his/her cursor over a certain word.

    How can I create a text pop up window in my Pages document? I want text to pop up when the reader hovers his/her cursor over a certain word in the document. I am teacher. So for example when a student came to word he/she did not know, if he/she hovered the cursor over the word, a defintion or other information would appear.  You can do this in Word using bookmarks/hyperlinks but I can't figure this out in Pages. I can link it to another point in my Pages document but I just need the text to pop up - not take the reader to another location.  THANK YOU!!!!!!

    Have you tried Word for Mac?
    You will need to test if links survive export or printing to .pdf
    Peter

  • How can I prevent my texts showing on another family members iPhone?

    How can I prevent my texts showing on another family members iPhone?

    Stop using the same apple ID for iMessage on both phones.
    Your question has already been asked and answered many many times. Search before posting please.

  • How can I create a Text-Input Field in BexAnalyzer for a Planning Function

    Hello,
    i want to create a pre calculation(contribution accounting) for Materials in BI-Integrated Planning. These Materials aren't in the master data. So I create a new Info Object for pre calculated materials with only a material-number as key and a text-description.
    Now I want to write a Exit-Function, which creates new materials in these Info Object. The user should start this function in a planning application in BexAnalyzer. There the user should have the possibility to enter a text-description for the new material. How can I create such a Text-Field in BexAnalyzer and how can I read this text filed in a planning function (exit).
    Thanks in advance

    Hi Jürgen,
    you can create a parameter for this in the exit function and a variable for the parameter. In BEx Analyzer then create a button for the planning function; in the button parameterization use VAR_NAME = , i.e. use an Excel formula here to get the value from an Excel input field.
    The command range should be some 'hidden area' in your Excel sheet.
    But may be you don't need this. Use a characteristic without master data. Then ensure that that the query uses the option 'key' as display. In new lines you can then enter the key, the system creates a SID on the fly (but the text table will not be updated). In this scenario you may take text also from the key. May be you can update the text table (online or in batch) by simply using function modules from function group RSNDI_MD (not released by SAP).
    But observere that the system in BI Planning reads only the active version, i.e. if you change something on the fly the changes may not be visible.
    Regards,
    Gregor

  • How can I show album art in the mini player when playing songs from a plugged in iPhone?

    How can I show album art in the mini player when playing songs from a plugged in iPhone?
    When I play from my phone and switch to the mini player it's always showing the music notes in the thumbnaill. It'd be nice if it could get album art off of the phone.
    I'm on iTunes version 11.0.4.4

    He @mracole,
    it is very nice that you post a solution to complete the library with artwork for album's that do not have an artwork. Your solution perfectly addresses the problem for assigning artwork, BUT this thread is about CHANGING artwork for albums already uploaded into iTunes Match. Just try to replace for example a blue artwork cover for an album with a red one. If you made it in a simple way (without deleting the album from iTunes Match and local changes on the files with an external ID3-Application or 2 or more iTunes libraries on different Mac's) this is the right place to give a solution. I really tried for hours to change the artwork to make them visible in landscape cover flow mode on my iPhone5. In rare cases I made it, but then the covers sometimes where restored to the old onces - exacly how it is mentioned by Starhawk
    As long as there is no simple way to change the cover of an iTunes Match stored album (you can change title, artist and so on without hitting "update iTunes Match" over all distributed Library on different devices - this date will be synchronized almost instantly) I considered the behaviour from iTunes as BUGGY! For me the local artwork cache (and if there is any iCloud artwork cache - I don't know) do not interfere with iCloud. Even when I delete the whole local cache (album artwork music - everything) I do not manage to change the artwork.
    Regards from Munich, Germany

  • How can I remove ASCII text from a field when I use it in a query

    How can I remove ASCII text from a field when I use it in a query?
    I am running a select statement on a table that appears to have ASCII text in some of the fields. If I use these fields in the where statement like the code below nothing returns:
    SELECT FIELD1 FROM TABLE1 WHERE FIELD1 IS NULL
    But the field looks empty if I do a straight select without the where clause. Additionally, one of the fields has text but appears to be padded out with ASCII text, which I need to strip out before I can use this field in a where or join statement. I have tried using a trim, ltrim, rtrim, to_char, nvl, decode and nothing works. When I use excel to run the same query it looks as if these ASCII fields are boxes.
    I have asked our DBA team to see what they can do to prevent these from going into the table, but in the mean time I still need to run this report.
    Do you have any suggestions?

    Can you provide an example? I've been trying (for
    example) "select translate(' test one', ascii(' '),
    'X') from dual" with no luck.
    Thank you.To replace space, you should query like this:
    select translate(' test one', chr(32), 'X') from dual instead of select translate(' test one', ascii(' '), 'X') from dual Thanks,
    Dharmesh Patel

  • My ipod went to the ''connect to itunes mode'' and i want to use my itunes backup but how can i do that. also when the ''recover your ipod screen'' appeared i accidentally chose not to show it anymore.

    My ipod went to the ''connect to itunes mode'' and i want to use my itunes backup but how can i do that. also when the ''recover your ipod screen'' appeared i accidentally chose not to show it anymore. please help i just had it for half a day.

    See Here  >  http://support.apple.com/kb/HT1808
    You may need to try this More than Once...  Be sure to Follow ALL the Steps...
    Take your time... Pay particular attention to Steps 3 and 4.
    Some users have reported as many as 8 or 9 attempts were necessary before success.
    If the issue persists...
    Then a Visit to an Apple Store or AASP (Authorized Apple Service Provider) is the Next Step...
    Be sure to make an appointment first...

  • HT201401 i have a birthday showing in my calendar listed as an all day event and it is incorrect how can I delete it. When clicked on does not bring up the edit feature. The vodaphone shop thinks it has synced with my facebook app.

    i have a birthday showing in my calendar listed as an all day event and it is incorrect how can I delete it. When clicked on does not bring up the edit feature. The vodaphone shop thinks it has synced with my facebook app.

    hello, the addons manager is exactly the right place to look for it. please try disabling the addons that are listed there one-by-one (a restart of the browser might be necessary after each step). maybe one of them is bundling this kind of adware.
    [[Disable or remove Add-ons]]

  • How can I show additional tab rows when using many open tabs?

    How can I show additional tab rows when using many open tabs?

    What method (code) did you use to get the Tab bar displaying in the space used for the Navigation Toolbar (location bar)?
    The Tab bar should be displayed above the Navigation Toolbar.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • How to disply the input text box when the data in the table is empty

    Hi,
    I m using JDeveloper 11g 5.1.1.1 : How to display the Input text box when the data in the table is empty or by using the dual table.
    Since there is no record in the table, screen is displying only the lable. not displying the Input text box.? Any property is there to enable?.
    One more case i tried by using dual (eg Select '0' as name from dual) created one view object and dragged in the JSF screen as input combo box with list of values.
    In this case also it is not displaying the combo box.Just displaying the Lable name and 0 only.
    Regards
    Bijesh K

    Hi,
    I didn,t get you.Could you please explain. I am not choosing the ADF table. Selecting and dragging ADF form only.
    Regards
    Bijesh K

Maybe you are looking for