Modify DB Values with Java before displaying

I have a table that displays an Application Name. When the data was populated the names were in all caps. For displaying purposes I wish to display them with First Letter Capitals.
I tried to "hook in" with Entity Object accessors and View Object Accessors but the tables were still populated with ALL CAPS names.
Where can I hook in to get my desired effect? (Yes I am aware I can use SQL manipulation, but I wish to use Java)
Thank you,
Brian
Message was edited by:
Brian Lunardini

Thanks for the reply Steve.
I always knew I could use SQL (didn't know initcap() existed ;) ), but I was thinking to myself "how can I do advanced modifications using java" and I didn't know where I would hook into the Java code so I guesses EntityImpl, and I thought I tried ViewRowImpl, so I opened the thread.
Also, the View Object has read only and updateable always attributes, but the initcapped name is read only so using SQL is probably a better solution in this case speed wise.
However, the Application names do have slashes and other characters too. I just didn't use a String.split(...) and piece it back together, I had to add some logic for extra characters. I'll look into initcap though, always good to know.
Thanks for the information!
Brian

Similar Messages

  • Change a attribute value with XSLT before importing an XML

    I need change the attribute value with XSLT before importing an XML
    <table class="x" style="width="50pt">...
    I have to divide by 200 the value of "width", and the result multiplied by 100:
    (50/200) * 100
    It's possible with a XLST?

    Hi,
    Yes you can do this via XSLT.
    You can try similar to the one below:
    <table>
       <xsl:attribute name="width">
         <xsl:value-of select="((./width) div 200)*(100)" />
       </xsl:attribute>
    </table>
    I have not tested yet... Try it....
    Green4ever
    (I am back after long time)....

  • Modify the footer with java-script

    Hi,
    Im' trying to modify the content of the footer in the master-page using java-script. So I put in the initialize event of the footer code to add "!" after a text field (with plenty of space left) but it doesn't do anything. The code is example.rawValue = example.rawValue + "!";
    This code works fine in the rest of the document, but it doesn't seem to work in the master-page.
    Could somebody tell me what I'm doing wrong?
    Thanks in advance!
    Gert

    The access to the masterpage objects is not in the same scope as where the script is running so you must path to it starting from the root:
    so.... form1.pageSet.Page1.example.rawValue = form1.pageSet.Page1.example.rawValue + "!";
    where form1 is the root node of your form (look in the hierarchy view), pageSet indicates the objects in the Master Pages, Page1 is the 1st Page name in the Master Pages and exampel is the path to th erest of the object.
    Make sense?

  • Do I need to pass a applet test with Java before the Flash player will function?

    I have downloaded the unstall and install programs for Adobe Flash Player and followed all the steps poster, "eidnolb" noted to prior poster greenie41180 on March 6th,  2010, 8:05PM.   The flash player test did not work.   I also do not see applets, when I use the latest version of Java on an applet test.    I might try reinstalling IE8, or going to IE7 and reinstalling Flash Player.  Gawd!  hours have been used, just trying to get Flash Player going so I can resume watching the tutorials at Mathtutordvd.com.   
    What other troubleshooting steps can be taken?   I have tried everything eidnolb suggested in prior posts.
    Hello everyone, When I try to download the Flash player I get the error message listed above.    I turned off the firewall and virus modes on my TrendMicro protection program, when downloading the player.     I already have Java 6, update 18 in the system.   I restarted the computer.  I also adjusted the configurations for Javascript and ActiveX under the "Tools" menu for the Security and Advanced tabs of Internet options.  I have Windows XP, service pack 3, with Internet Explorer 8.  
    Also, I tested the recent, most updated program, Java and I still can not see an applet.    I have spent 7 or more hours on this.  I thought initially this process was going to be straight forward.     I desperately need this Flash player so I can learn math at the streaming video site called,  Mathtutordvd.com       Oh! gosh maybe someone here can help me help myself by giving me more troubleshooting steps.  I did follow Adobe's troubleshooting steps, but I still get the same, above error box with,  MSXML2.XSL Template 3.0 (Original exception: undefined)
      I hope, eventually to watch the streaming site, once this Flash Player is loaded.   I really do not understand what is going on here.  Thanks for your help.
    Information:   Windows\System32\Macromed\Flash
    These items are in the Flash folder:
                                                    Flash10e.ocx    version 10.0.45.2
                                                    Install text document
                                                    Uninstall_activeX  10.0.45.2
                                                    FlashUtil10e  Adobe Flash Player Helper  10.0.45.2
                                                    Should not FlashUtil10e be listed as FlashUtil10e.exe  ???
                                                    FlashInstall text document
    Genuinst   Microsoft application file  version
    6.0.2800.1531                                                                            KB913433 Setup Information 
                                                                                                           This is the Java version and also, these are listed and enabled in the “Manage add-ons” for Internet Explorer 8:           C:\Program Files\Java\jre\bin
    Java Plug-in 1.6.0_18  ActiveX control
    File: npjpi160_18.dll  version:  1.6.0.18
                                                    Java™Plug-in 2 SSV    version: 6.0.180.7  , file: jp2ssv.dll
    JQSIEStartDetectorImpl  Class  version:  6.0.180.7,  file:                               jqs_plugin.dll   for  program Files\Java\jre6\lib\deploy\jqs\ie
    Adobe PDF link Helper, version 9.0.0.332
    File:  AcroIEHelperShim.dll
    For C:\Program Files\Adobe  the listed files are:  
                                                    Reader 9.0
                                                    Acrobat.com
                                                    Photoshop 7.0
    Also,  under common files:   C:\Program Files\Common Files\Adobe\Acrobat\ActiveX the following files are present:
                            Pdfshell.dll
                            AcroIE HelperShim.dll
                            AcroPDF.dll
                            AcroIEHelper.dll
    There is also a file called Adobe AIR under the Common Files category.
    Next,  there are some Java undate files listed as:  C:\program Files\Common Files\Java\Java Update
    Also, listed in the “Manage add-ons”  is:  Shockwave Flash Object,  Flash10e.ocx,
    which is enabled.  
    When I checked the C:\program Files  I reviewed all listed folders and did not see folders named,  Adobe Flash Player 10 ActiveX,  or  Adobe Flash Player 10 plug-in.    The only folder found label with Adobe, was the prior mentioned folder,  Adobe containing Reader9.0,  Acrobat.com, and Photoshop7.0.

    Hi, May I suggest that you read your previous 3 threads that have been responded to?
    You need to stop starting threads, this is the 4th one. You need to stop copying and pasting from the first thread to the new threads that you are starting. It serves no positive purpose.
    eidnolb

  • SAP WAD # value with Java Script

    HI Guys,
    i have written a code which can replace the # value for the charteristic with 'Blank'. the code works fine during the initial run .
    but i can not do any navigation on the query. like drag and drop.
    i am getting a error saying ' null pointer is missing and it is not a obhect in SAP BW.
    thanks,
    Sanjeev

    Hi Kumar,
    when you writting the code scenarios, consider the infoobjects that are  about to use for drilldown as one scenario, that works for you for drill down/across.
    Regards,
    Venkata Boga.

  • Manipulating Textbox value with java script

    Hi,
    I need code to sum two textbox values in to third one. I tried to find out the object by
    $x('P1_A').value & document.getElementById('P1_A').value
    Both are not worked.
    Please help me
    thanks and regards,
    Rajesh

    Hi,
    I am not doing any manipulation at prasent, just i am passing the value of P1_A as parameter to this function to display the value in P1_B.
    <script type="text/javascript">
    function disp(PageItem)
    //alert (PageItem);
    html_GetElement('P1_B').Value=PageItem; // not giving any error and also not displaying value in P1_B
    document.getElementById('P1_B').Value=PageItem; // not giving any error and also not displaying value in P1_B
    $x('P1_B').Value=PageItem; //giving error Object Required
    </script>
    i wrote the code for P1_A HTML Form Element Attributes
    onBlur="disp(this.value);"

  • FILTER BEFORE DISPLAY & List_values(restrict)

    I have a view which retrieves around 400,000 records from
    various tables.
    I had to use two LOV's for allowing to query by not entering any
    values as well as partial values.
    Since List_Values(Restirct) and FILTER BEFORE DISPLAY options do
    go well together. I am using two LOVs for both of them.
    When I call the LOV with FILTER BEFORE DISPLAY, it retrieves the
    records faster ie 5 secs.
    When I call the LOV without FILTER BEFORE DISPLAY, using
    List_values(RESTRICT), then it takes around 30 secs.
    Any ideas about the difference in these two options?

    Hi,
    I might be mistaken (too many forms versions in my brain) but
    Filter Before Display ignores the contents of the output item. It
    shows a small window, where you can enter a filter before
    fetching all records to the LOV.
    LOV_VALUES(restrict); (if I remember correctly from my
    SQL*Forms30 days) actually used the contents of the item as a
    filter (for instance, if the item contains "a", the LOV only
    shows the records that start with "a").
    I've never tried to use both in the same LOV.
    I'll try it tomorrow.
    Hope this clears something,
    Pedro das Neves
    [email protected]

  • I have a problem with Java and an e-procurement system integrating

    I use an e-procurement system at work and yesterday I could not get my parts list from the suppliers web site to display in our in-house eprocurment finance package.
    There is not a problem with the finance package. There is not a problem with the suppliers web site. I have verified both of these by other colleagues being able to complete what I am trying to do.
    The difference between my version of Firefox and my colleagues' is that I am on version 6.0.1 and they are on 6.0.
    I have had problems with Java not displaying certain animations on the suppliers web site but, my colleague does not and I am suspicious that this is the problem. Can anyone verify this please and what can I do about it. My Java updates are up-to-date as of yesterday and are automatic.
    Thanks.

    I was quite amazed I never got a reply to this, in the past people here have been helpful. In any case I was finally able to enter this website on the exceptions list in the Java panel, and I believe it is okay  now.

  • Change a SWF's variable value through Java

    Hi, all!
    Does anybody know how to change the value of some SWF (Flash file) variable in Java?
    What I need is to read a SWF that I made, then change a variable value from Java, before I output this SWF.
    I believe this is possible through bytes handling, but I don't know how... Has anybody already done it?
    Thank you in advance!
    CaioToOn!

    See answer about [Transform SWF|http://www.flagstonesoftware.com/transform/index.html] at [http://forums.sun.com/thread.jspa?threadID=5325296|http://forums.sun.com/thread.jspa?threadID=5325296].

  • Sir i am using datasocket read ,i am communicating with java but my problem is that bcz im using while loop to see if value has changed my labview consumes all the processors time ,sir i want a event like thing so that while loop is not in continuous loop

    sir i have given lot of effort but i am not able to solve my problem either with notifiers or with occurence fn,probably i do not know how to use these synchronisation tools.

    sir i am using datasocket read ,i am communicating with java but my problem is that bcz im using while loop to see if value has changed my labview consumes all the processors time ,sir i want a event like thing so that while loop is not in continuous loopHi Sam,
    I want to pass along a couple of tips that will get you more and better response on this list.
    1) There is an un-written rule that says more "stars" is better than just one star. Giving a one star rating will probably eliminate that responder from individuals that are willing to anser your question.
    2) If someone gives you an answer that meets your needs, reply to that answer and say that it worked.
    3) If someone suggests that you look at an example, DO IT! LV comes with a wonderful set of examples that demonstate almost all of the core functionality of LV. Familiarity with all of the LV examples will get you through about 80% of the Certified LabVIEW Developer exam.
    4) If you have a question first search the examples for something tha
    t may help you. If you can not find an example that is exactly what you want, find one that is close and post a question along the lines of "I want to do something similar to example X, how can I modify it to do Y".
    5) Some of the greatest LabVIEW minds offer there services and advice for free on this exchange. If you treat them good, they can get you through almost every challenge that can be encountered in LV.
    6) If English is not your native language, post your question in the language you favor. There is probably someone around that can help. "We're big, we're bad, we're international!"
    Trying to help,
    Welcome to the forum!
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • MWA: Issue while capturing the values entered, before displaying the LOV

    I have created a LOV in Mobile Web Application using PL/SQL procedure.
    I'm not able to get the values entered by the user before displaying the List of values.
    I need the values entered to pass it to the query.
    There might be a seeded event or method to capture these values.
    Any help would be appreciated.
    Thanks,

    Before invoking Input task, I have created a transformation to initailize the payload elements, so that in the UI these field elements will be become editable.
    I have an ADF table which is used to insert account details elements which is initialized in the transformation with namespace.You can simple use a ADF form to do this. Create ADF editable input fields in a panelFormLayout and wehn user enters values and clicks ona button .. pass those values to BPM payload.
    See - http://andrejusb.blogspot.com/2010/10/initializing-oracle-bpm-11g-process.html

  • How to display positive value with a trailing plus sign

    I want to display positive value with a trailing plus sign and negative value with a trailing minus sign. How can I do it? Is there any character in custom format for this? I don't want to convert number to text and use case statement because I need two decimal places and thousands separator.

    Okay, try this...
    You will need to do a "UNION ALL" of three queries, one for positive values, one for zero values, and one for negative values.
    In the "negative values" query, do the following:
    1) Add a filter on the measure for values "less than 0"
    (This will ensure all values are negative.)
    2) In the Data Format tab, select "Custom" and type in #,##0.00-
    (This will add the trailing negative sign.)
    3) In the Edit Formula tab, add the absolute value function, ABS(insert measure here)
    (This will take get rid of the default leading negative sign.)
    For the "positive values" query, modify the above as follows:
    1) Change the filter to "greater than 0"
    2) In the Data format, change the custom format to #,##0.00+
    Step 3 is not needed since all values are positive.
    For the "zero values" query, just add a filter "equal to zero."

  • I want to read and assign value of ADF Table rows  with Java Script

    Hi,
    I want to read and assign value of ADF Table rows with Java Script, but I cant true index of current row , so I assign wrong value to anathor column of ADF Table.
    My Code;
    ADF Table items
    <af:column sortProperty="Adet" sortable="false"
    headerText="#{bindings.RezervasyonWithParams1voHarcamaOdeme1.labels.Adet}"
    binding="#{backing_ucret.column2}" id="column2">
    <af:inputText value="#{row.Adet}"
    required="#{bindings.RezervasyonWithParams1voHarcamaOdeme1.attrDefs.Adet.mandatory}"
    columns="10"
    binding="#{backing_ucret.inputText2}"
    id="inputText2" onchange="getTutar('#{bindings.voHarcamaOdeme1Iterator.rangeStart + bindings.voHarcamaOdeme1Iterator.currentRowIndexInRange + 1}','#{bindings.voHarcamaOdeme1Iterator.estimatedRowCount}','#{row.index}')">
    <f:convertNumber groupingUsed="false"
    pattern="#{bindings.RezervasyonWithParams1voHarcamaOdeme1.formats.Adet}"/>
    </af:inputText>
    </af:column>
    MY JAVA SCRIPT CODE
    <f:verbatim>
    <script language="javascript" type="text/javascript">
    function getTutar(rowkey,totalrow,currentRow){
    alert('rowkey--totalRow--currentRow-->'+rowkey+'--'+totalrow+'--'+currentRow);
    if (currentRow==0) {
    rowkey=totalrow-1;
    }else{
    var rw=totalrow-currentRow-1;
    rowkey=rw;
    alert(document.getElementById('form1:table1:'+rowkey+':inputText8').value);
    alert(document.getElementById('form1:table1:'+currentRow+':inputText8').value);
    var birim_ucret=document.getElementById('form1:table1:'+rowkey+':inputText8').value;
    var adet=document.getElementById('form1:table1:'+rowkey+':inputText2').value;
    document.getElementById('form1:table1:'+rowkey+':inputText3').value=birim_ucret*adet;
    document.getElementById('form1:inputText6').value=0;
    var t;
    var toplam=0;
    alert('before Sum');
    for (var i=0;i!=totalrow-1;i++){
    t = document.getElementById('form1:table1:'+i+':inputText3');
    toplam+=t.value*1;
    document.getElementById('form1:inputText6').value=toplam;
    </script>
    </f:verbatim>

    You can achieve the use case you describe with partial page rendering (PPR), a feature of the ADF Faces framework. Here are a few posts that achieve an interactive behavior using PPR. Off the top of my head I do not know of an exact example, but this should be a good starting point:
    http://thepeninsulasedge.com/blog/2006/09/12/adf-faces-aftableselectmany/
    http://thepeninsulasedge.com/blog/2006/08/31/adf-faces-working-with-aftableselectone-and-the-dialog-framework/
    --RiC                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to Fill value in Input fields before displaying ADOBE FORM

    Hi to all,
    Please can anyone tell me how to fill the entry in ADOBE FORM before displaying?
    I have written a program to generate ADOBE FORM, but I need while displaying ADOBE FROM some input field should already be filled by value and can not be changed.
    Please can anyone tell me how to do that in program?
    Below is the program.
    DATA: fm_name           TYPE rs38l_fnam,
            fp_docparams      TYPE sfpdocparams,
            fp_outputparams   TYPE sfpoutputparams.
    Parameters: p_pdf_form_name type fname.
      fp_docparams-langu   = 'E'.
      fp_docparams-country = 'IN'.
      fp_outputparams-preview = 'X'.
      CALL FUNCTION 'FP_JOB_OPEN'
        CHANGING
          ie_outputparams = fp_outputparams
        EXCEPTIONS
          cancel          = 1
          usage_error     = 2
          system_error    = 3
          internal_error  = 4.
      CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
        EXPORTING
          i_name     = p_pdf_form_name
        IMPORTING
          e_funcname = fm_name.
      E_INTERFACE_TYPE           = E_INTERFACE_TYPE
      CALL FUNCTION fm_name
        EXPORTING
          /1bcdwb/docparams        = fp_docparams
      IMPORTING
        /1BCDWB/FORMOUTPUT       = fp_outputparams
        EXCEPTIONS
          usage_error           = 1
          system_error          = 2
          internal_error           = 3.
      CALL FUNCTION 'FP_JOB_CLOSE'
       IMPORTING
        E_RESULT             =
        EXCEPTIONS
          usage_error           = 1
          system_error          = 2
          internal_error        = 3
          OTHERS               = 4.
    I shall be thankful to you for this.
    Regards
    Pavneet Rana
    Edited by: pavneet rana on Jul 25, 2011 2:57 PM

    Hello,
    you need to provide the information via the interface, which you create for the Adobe form.
    And then pass this values via the following function module inside your generation report.
    CALL FUNCTION fm_name
    check standard report : FP_EXAMPLE_01 as an example!

  • I'm using mac with the newest operating system (snow leopard 10.6.7). since I've updated to Firefox 4 It doesn't display Hebrew fonts- I didn't have any problems with it before the upgrade and in safari I don't have this problem.

    Hello, I'm using Mac with the newest operating system (snow leopard 10.6.7). since I've updated to Firefox 4 It doesn't display Hebrew fonts… I didn't have any problems with it before the upgrade and in safari I have no problem with it. please help me- I don't like to use safari a my browser...

    elly903 wrote:
    Before commenting - I CANNOT install Mavericks because it'll mess up the versions of Filemaker Pro and Quicken that I use regularly...
    Quicken 2007 for Intel (Snow Leopard, Lion, Mt. Lion and Mavericks) for $15:
    http://quicken.intuit.com/personal-finance-software/quicken-2007-osx-lion.jsp
    It will input your Quicken PPC data file directly if it was Quicken 2005 through 2007.  If older you need Quicken 2006 or 2007 PPC first to convert your data file; and this update must be done BEFORE you upgrade to Mavericks:
    http://quicken.intuit.com/support/help/patching/quicken-2006-manual-updates--mac -/GEN82200.html
    Filemaker Pro PPC (in this case 7) running in Snow Leopard Server installed into Parallels for use in Lion, Mt. Lion and Mavericks:
                                  [click on image to enlarge]
    Snow Leopard Server: 1.800.MYAPPLE (1.800.692.7753) - Apple Part Number: MC588Z/A (telephone orders only)
    This solution allows you to run your Photoshop Elements in Mavericks concurrently with Filemaker Pro PPC.  Mavericks is a free download.

Maybe you are looking for

  • Any fix for external Iomega HDD won't mount to iMac OSX 10.8.5 Desktop?

    I have a 750GB Iomega external HDD that I've used for several years to back up my iMac (OSX 10.8.5) with Time Machine.  No problems.  Computer locked up while searching on the internet last night, requiring a restart.  The external HDD never came bac

  • HP Pavilion x2 won't sleep correctly

    Hi all, First off, thanks for any assistance you can provide.    When I close my lid, I see the screen turn off.  (For instance, if I close the lid 85%  of the way, I can see the screen go off).  However, if I leave my x2 closed overnight, the next m

  • Unable to open the BI Query after change in ODS structure

    Dear All, I have a query which is based on some ODS. I have added one more InfoObject to the data part of this ODS and deleted one of the existing one. Now when I try to open the existing query (so that I can include this new field) based on this ODS

  • Some film rolls are named "originals" - why?

    I'm still a fairly new user of Macs as well as anything like iPhoto. For quite some time, I only imported my photos into iPhoto for fear of breaking something. Well, I'm getting over that fear, and I have noticed that some of my film rolls have a nam

  • F110 - Program RFFOAVIS_FPAYM

    Dear Friends, Using T.code F110  Payment Program was completed.In printout/datamedium i have selected program RFFOAVIS_FPAYM and variant PCCFR. I checked the payment run log and getting this error messages. Step 001 started (program SAPFPAYM_SCHEDULE