9i; JSP; Converting the outpout of jbo:ShowValue ...

I'd like to convert the output of:
<jbo:ShowValue datasource="ds" dataitem="EndTime" >
to blank if it is null. By default returns srtring "null".
Do i have to work with view object or there is the easier way?

I'm assuming your using JDEV 9.0.4 or less with JSP.
As far as I know, you can't get the value from showvalue into a variable. ShowValue is only for display purposes. However, you can get the attribute through other means. Step one is to grab a row of the datasource (or more accurately of the rowset of a datasource). There are many many ways to do this depending on your situation.
1) Inside a RowSetIterate:
Use the jbo:Row tag set to action="active" to get the row currently being iterated withing the RowSetIterator. Set the id to a useful name (this is how you will access the row in Java).
2) From the RowKey (psuedocode):
<%
String rowKey = request.getParameter("jboRowKey");
Row test = ds.getRowFromKey(rowKey);
%>
3) From a primary key...(psuedocode):
<%
Row Test = ds.getRowSet().getRow(new Key(new Object{new Number (5)}));
%>
And many more.... once you have the Row, you can assign it's value (typecast) into a variable. For example, if we want employeeID(case sensitive) then we could do this:
<%
Number empID = rowTest.getAttribute("employeeID");
%>

Similar Messages

  • Can i handle the value use jbo:showvalue /

    i make some JSP with the BC4J jsp wizard,but now i want get one of the columns value in "datahandlerComponent.jsp"
    or "datatablecomponent.jsp". how can i do this?

    Why this limitation, the MDB use a session, why
    don't the MDB container put it in the context....
    Seth White <[email protected]> wrote:
    >
    These are not exposed to the MDB. You need to connect to JMS, create a
    session, etc. in
    the MDB.
    Hope that helps.
    Seth
    Sidi YAZID wrote:
    I need to create a publisher in onMessage methods
    is it possible to use the ejb jms session, connection or factory.
    TX

  • How to convert the source code in JSP,HTML&BEANS into executable files?

    Sir,
    We are developing one s/w product in JSP,HTML&BEANS.Now we are in the implementation phase.During the time of Installation,without copying our source code in the customer's site I want to copy the executable files of the entire source codes? Is it possible in JSP,HTML&BEANS?

    In theory you can do it even with JSP but the you will be unable to run it on the standard JSP engine. :-)
    From other hand, all critical logic should be in the Java Beans or at least in custom tags but not in the JSP code. Then you can protect that code and leave JSP open because there is nothing to steal or break.

  • How can I use jbo:ShowValue for some columns and bc4juix:RenderValue for other co

    Using a UIX/JSP page, how can I get the <jbo:ShowValue> tag to work in the following situation? I've ditched the "AttributeIterate" so that I can manually select the columns I want.
    --- snip ---
    <uix:form name="form1" method="GET">
    <bc4juix:Table datasource="ds1" >
    <uix:columnHeaderStamp>
    <uix:styledText textBinding="LABEL"/>
    </uix:columnHeaderStamp>
    <%--
    <jbo:AttributeIterate id="dsAttributes" datasource="ds1" hideattributes="UixShowHide">
    <bc4juix:RenderValue datasource="ds1" dataitem="<%=dsAttributes.getName()%>" />
    </jbo:AttributeIterate>
    --%>
    <bc4juix:RenderValue datasource="ds1" dataitem="FacilityDesc" />
    <bc4juix:RenderValue datasource="ds1" dataitem="LocationId" />
    <bc4juix:RenderValue datasource="ds1" dataitem="LocationDesc" />
    <%-- ** THE FOLLOWING DOES NOT DISPLAY ON THE BROWSE_EDIT_PAGE ** --%>
    <jbo:ShowValue datasource="ds1" dataitem="Notes" ></jbo:ShowValue>     
    <%-- ** THE FOLLOWING DOES NOT DISPLAY ON THE BROWSE_EDIT_PAGE ** --%>
    <uix:rawText>
    <jbo:ShowValue datasource="ds1" dataitem="Notes" ></jbo:ShowValue>     
    </uix:rawText>
    <%-- ** THE FOLLOWING DOES NOT DISPLAY ON THE BROWSE_EDIT_PAGE ** --%>
    <uix:contents>
    <uix:rawText>
    <jbo:ShowValue datasource="ds1" dataitem="Notes" ></jbo:ShowValue>     
    </uix:rawText>
    </uix:contents>
    --- snip ---
    What am I doing wrong and how can I fix this?
    Bill G...

    This will not work inside of the bc4juix:table, this tag pulls the data from the data source, it doesn't allow you to add ShowValue tags inside of the table. Take alook at the UIX Developer Guide for more information on the Table tag. The ShowValue tag can be used in a uix hierarchy outside of the tabel tag.

  • How to show an image in JSP given the bytes[] of the photo?

    Hi all,
    I stored a user's picture in the db as text. For this I simply converted the JPG to bytes[] and from bytes to string: Base64.encode(bytes)
    Now I wish to do the reverse - to 'output' the image on the screen. So given the bytes[] of the image with
              byte[] bytesDB = Base64.decode(userPhotoStr); //userPhotoStr is something like this: /9j/4AAQSkZJRgA...Question: How can I show the image in the JSP page embedded in the page not as download?
    I'm using struts with JSP pages.
    Thank you!!!!

    Images in HTML are to be displayed using <img> element. All what an <img> element can take as image is an URL pointing to the image in question.
    If the image is dynamic, then you can just let that URL point to some Servlet which takes some request parameter or reads the path info, reads/gets the image as byte array or (much more efficient) as inputstream and writes it to the outputstream of the response.
    You may get some ideas out of this: [http://balusc.blogspot.com/2007/04/imageservlet.html].
    By the way, massaging the byte array from/to a String is a terribly bad idea. Just store bytes as computer readable bytes, not as human readable characters, this makes completely no sense. Characters on its turn have to be converted to bytes again after all, but now you've let the DB do the work. All with all a performance pain. Bytes > Chars > Bytes > Chars > Bytes instead of just Byes > Bytes. In database you normally use BLOB, BINARY or equivalent for this in combination with JDBC's PreparedStatement#setBinaryStream() and ResultSet#getBinaryStream().

  • After reinstalling CS6 the bridge photo downloader isn't able to read raw files and fails to convert the raw files to DNG. Previously downloaded raw files, now DNG, open up successfully in Camera Raw 7. How do I get the photo downloader to read and conver

    After reinstalling CS6 the bridge photo downloader isn't able to read raw files and fails to convert the raw files to DNG. Previously downloaded raw files, now DNG, open up successfully in Camera Raw 7. How do I get the photo downloader to read and convert raw files. MacBook Pro with Snow Leopard. No such problem before this reinstallation.

    You should install Camera Raw 4.6.
    Visit this page and follow the instructions carefully:
    PC:    http://www.adobe.com/support/downloads/detail.jsp?ftpID=4040
    Mac:  http://www.adobe.com/support/downloads/detail.jsp?ftpID=4039
    -Noel

  • Generating the JSP from the Servlet source file

    Hi,
    Does anyone out there know if there is any utility/class/program which will generate a JSP from the Servlet Source file (.java file) or indeed from the compiled Servlet file (.class file)
    If its possible to decompile a .class file into a .java file, surely it must be possible to convert the .java souce file into the .jsp file that created it.
    any comments would be appreciated
    Richard

    I am the author of the original JSP!
    But I want to run a script on the generated Servlet source file,
    changing its contents, and then generate the JSP that would have created the new Servlet source file.
    but I need to know if theres anything that will reverse engineer a Servlet source into the generating JSP.
    its a kind of of Jeopardy type thing!

  • Help, bridge will not convert the images from my Canon 7D into raw

    Has anyone else had problems converting images from a Canon 7D into Raw format?  Bridge downloads them and then tells me it could not convert them.  Hopefully someone out there has a fix.  Aah the joys of new equipment and software.
    EW

    Bridge should be converting image FROM raw format, not TO raw format.
    If you have Photoshop CS4 you should update to the latest Camera RAW plugin:
    http://www.adobe.com/downloads/updates/
    If you have an earlier version of Photoshop (CS, CS2, CS3) then you can download the latest free DNG Converter and convert the 7D RAWs to DNGs and then an older version of Camera RAW can open them.
    http://www.adobe.com/support/downloads/product.jsp?product=106&platform=Windows
    CS5 will be announced in a few weeks/months, and when it is available there will only be an upgrade path from CS2, CS3 and CS4, so if you have PS CS then you need to upgrade to CS4, now, before CS4 is available, otherwise to upgrade to CS5 you will need to pay full price.
    If you have a PS version newer than CS then you can wait and upgrade to CS5 when it is out.
    With either CS4 (and the newest Camera RAW update) and CS5, you won't have to convert 7D RAWs to DNGs to work on them.

  • How can I convert the attribut lastLogon ...

    Hi,
    How can I convert the attribut lastLogon on an Active
    Directory Microsoft?
    Attributes ar = ctx.getAttributes(dn, attrs);
    if (ar != null) {
    for (int i=0; i<attrs.length; i++) {
    Attribute attr = ar.get(attrs);
    if (attr != null) {
    String values="";
    for ( Enumeration vals=attr.getAll();
    vals.hasMoreElements(); ) {
    values += vals.nextElement();
    if ( vals.hasMoreElements() )
    values += "\t";
    entry += SRV.SEPARATOR + values;
    When I take the value of the restrained attribut of the
    enumeration how I make convert it for example in a date ?
    I am using Windows2000 Advanced server.
    An example of lastLogon attribue is "126949578544450976".
    Any help is greatly appreciated.
    R.F.

    It looks to be the same format at accountExpires.
    If so, your in luck, I worked that one out back in January:
    http://forum.java.sun.com/thread.jsp?forum=51&thread=346718

  • I need to convert PDF file to Word Document, so it can be edited. But the recognizing text options do not have the language that I need. How I can convert the file in the desired of me language?

    I need to convert PDF file to Word Document, so it can be edited. But the recognizing text options do not have the language that I need. How I can convert the file in the desired of me language?

    The application Acrobat provides no language translation capability.
    If you localize the language for OS, MS Office applications, Acrobat, etc to the desired language try again.
    Alternative: transfer a copy of content into a web based translation service (Bing or Google provides a free service).
    Transfer the output into a word processing program that is localized to the appropriate language.
    Do cleanup.
    Be well...

  • When I sign in to the Adobe Reader XI (which is the only option that I have to open a pdf document, I will sign in to the Adobe ID sign-in page. After I do this, the "Convert To" box goes "gray" and I am unable to convert the document I have selected.  It

    When I sign in to the Adobe Reader XI (which is the only option that I have to open a pdf document, I will sign in to the Adobe ID sign-in page. After I do this, the "Convert To" box goes "gray" and I am unable to convert the document I have selected.  It was working great for the first week that I used it, but now it doesn't give me the converting option.  I am very frustrated as I have done nothing to change anything, and I was thinking this was so great...now I am just pulling out my hair and do not have the option of calling anyone since no phone numbers are listed. I am VERY busy and do not have time to sit and wait over a half an hour to "chat", which I tried to do yesterday.  All I want to do is very simply, convert pdfs to Word.  I have paid for this and am not getting any help. I am not very savvy when it comes to Adobe this program and Adobe that program...I feel I am being scammed as I do not get simple answers for something that appeared was going to be simple. You can't even call customer service to talk to someone live to help walk you through. 

    Hello Kathie,
    Sorry for the inconvenience that has caused to you.
    Please let me know if you have tried converting any other PDF to word with Reader.
    Alos, please sign up at "https://cloud.acrobat.com/" using your Adobe ID credentials. Click on 'ExportPDF' tab and upload the PDF that you want to convert to Word.
    Let me know if this converts fine.
    Hope to hear from you.
    regards,
    Anubha

  • Which is the best software to convert the video files for itouch?

    I got a 3rd gen itouch. Is there any software that helps to convert the video files. so I can sync those files to my itouch. " Handbrake " used to work pretty good. but now i still can convert the video files to m4v format but itunes doesn't allow me to put those files in. Please Help!

    You may have different menu options than Half bit Bit Ah. The support page on how to do it is at https://support.apple.com/kb/TS1497. In part it says:
    If you did not purchase videos from the iTunes Store, they are may not be in a format that you can play on your iPhone/iPod. In many cases, you can convert them to the correct format using iTunes or QuickTime.
    * Using iTunes: Select a video and choose Advanced > Create iPod or iPhone Version
    * Using Mac OS X v10.6: Open the video in QuickTime Player and choose Share > iTunes and then select the iPhone & iPod option.
    Hope that helps!

  • Need to convert the Varchar2 to decimal

    Hi,
    I need to convert source sybase varchar2 record in to decimal record in Target DB2 table by using the function in Oracle data integrator.
    In my source table, column is defined as varchar2 (4) and in target table same column has defined as Decimal (2). So, is there any function to convert the varchar2 data to decimal record.
    thanks,
    keshav.

    Hi SH,
    Thanx so much for your answer!
    Well actually I have managed to do the filters, and right now dealing with the convertion of formats.
    Right now I am working with Oracle DB 11g, and Excel; and what i would like to do is now that is passing from my uploaded excel the info to my Oracle DB would like to control the ways it pases the info.
    Let's say for example, that I have gotten a Field A in my source table (Excel uploaded to ODI), and that on my Orazle Table on Field A i would like to change the data type of the field, or just make sure that the data inserted will always be of certain type? Can I do this with ODI? Could you please give me some advice in how to it? I assume that it should be done on my interface, in the Diagram tab > Target Database > Mapping Area > Implementation Tab > Expression Editor and modify it there, is it?
    As this is mapping from excel, can I just use the excel function? it does not make any sense for me as it is all in Oracle. I am sorry but I am kinda confused now.
    Once again I do really appreciate your help.

  • Need to convert the binary data in blob field to readable format

    Hi,
    We need to convert the Binary data in the BLOB field to readable format and need to display it in Oracle Apps Environment,does anybody come across the similar requirement.
    please advise, thanks in advance.
    Regards,
    Babu.

    You could use standard Attachments functionality here ... if the blob is not in FND_LOBS, insert into FND_LOBS, fnd_attached_documents etc to enable viewing via "Attachments" to the entity the blob is related to.
    Gareth

  • Report for converting the documents into the PDF format.

    Hello Experts,
    I need to know if any report/ T-code is available in SAP to convert the files into  PDF format.
    We are processsong these PDF's then into IXOS system.
    Regards,
    Anna.

    Hello ,
    You may check with the below programs:
    Program name                   Report title
    RSTXCPDF                       Routines for Converting OTF Format to PDF Format
    RSTXPDF2                       Administration/Upload of type 1 and TrueType font files
    RSTXPDF3                       Customizing for OTF-PDF Conversion
    RSTXPDF4                       Help Report from CONVERT_OTFSPOOLJOB_2_PDF
    RSTXPDF5                       Help Report from CONVERT_ABAPSPOOLJOB_2_PDF
    RSTXPDFT                       Test report for PDF conversion - converting standard texts to PDF
    RSTXPDFT2
    RSTXPDFT3                      Test
    RSTXPDFT4                      Convert SAPscript (OTF) or ABAP Lists Spool Job by PDF
    RSTXPDFT5                      Test: GUI Download of Spool Request
    Regards
    Ramesh Ch

Maybe you are looking for