Help converting UIX JSP functionality to UIX

I have an older UIX JSP page that I am trying to convert to UIX. That page contained a table with a singleSelection node and a Print button. When the Print button is pressed, a value is taken from the selected row in the table and sent as a parameter to Oracle Reports. The code that did this in UIX JSP is:
<jbo:OnEvent name="Print">
<% if(sSelected != null)
errmsg = null;
errtype = null;
%>
<jbo:Row id="MPORow1"
datasource="MPOOrders"
action="Find"
rowkey="<%= sKey %>" />
<%
Row MPOCurRow1 = MPOOrders.getRowSet().getCurrentRow();
if (MPOCurRow1 != null)
String ordnum = (String) MPOCurRow1.getAttribute("Ordnum").toString();
String mailer = (String)((Integer) session.getAttribute("loginCustomer")).toString();
String printURL = "https://<myserver>/reports/rwservlet?destype=cache+desformat=PDF+userid=webuser/webpwd@pas+report=mlrjobstatus.rdf+p_mailer=" + mailer + "+p_jobnum=" + ordnum;
response.sendRedirect(response.encodeRedirectURL(printURL));
else
errtype = "error";
errmsg = "You must select a row prior to clicking on the 'Print Lists' button";
%>
</jbo:OnEvent>
How can I do this same thing in UIX/Struts? Can it be done as a UIX handler or do I need a custom DataAction?

Hi Eric,
Please take a look at the UIX Table chapter. It talks about single-selection in UIX and how you can add buttons which when clicked will submit events to the server. It also talks about how you can handle those events.
Here is a code snippet from the documentation regarding the event handler:
public static EventResult doSelectionEvent(BajaContext bc, Page page,
                                           PageEvent event)
  DataObject tableRows = new PageEventFlattenedDataSet(event, "table1");
  int index = SelectionUtils.getSelectedIndex(tableRows);
  String name = "Nothing Selected";
  // make sure that something was selected:
  if (index>=0)
    DataObject row = _TABLE_DATA.getItem(index);
    name = row.selectValue(null, "name").toString();
  EventResult result = new EventResult(page);
  result.setProperty("action", event.getName());
  result.setProperty("name", name);
  return result;
}Thanks,
Jeanne

Similar Messages

  • HTML Rendering works on UIX-JSP but not UIX-XML or BC4J-JSP

    I built a "custom" renderer following the HOW TO document for HTML rendering. I made a "Drop Down" list that works in a test UIX-JSP application. When I try to attach the DynamicListInputField class to a project created under UIX-XML or BC4-JSP the rendereing does not take affect. No errors, the application runs fine, just no rendereing.
    I made all three projects from the same VO's and the same DynamicListInputField.java. The three projects were Wizard Based and created with:
    "Business Componets UIX XML Application" from the UIX XML Category
    "Business Componets JSP Application" from the UIX JSP Category
    "Business Componets JSP Application" from the BC4J JSP Category
    What is wrong?
    TIA,
    Ed.

    What error you are getting...please provide error details.
    It is working fine for me.
    Rgds
    Bala Murali

  • Help Converting Excel Time( Function to DAX

    I have a column of data that has a text string that represents a time of day.  Example if 55553 which is 5:55:53 AM.
    I need to convert the time to Eastern, and display in a time format.  Here is the formula I am currently using in Excel:
    =(TEXT([Time of Day],"00\:00\:00")+0)+TIME(1,0,0)
    Can you help me convert to a DAX approach please?

    Hi Scott,
    you need the TIME-function in DAX: TIME(hours, minutes, seconds)
    https://msdn.microsoft.com/en-us/library/ee634564.aspx
    With some combinations of LEFT & RIGHT Text-Functions, you should be able to pick out the needed numbers from your string. Very much like Excel.
    Imke

  • Need help converting Client-Server to JSP

    Hi;
    I have a purely data driven, dynamic, meta driven program
    in Java 1.4. Runs on almost any SQL database, and the
    systems analysts can do most of the programming just by
    entering the data. All screens and sql are auto-genned
    at runtime.
    I was wondering if there was anyone interested in helping
    convert to JSP. I would be willing to give part of the
    company profits. It is better then me asking a million
    questions here, although there are lots of great experts here.
    -Trent
    Thanks.

    My personal email address is [email protected] I would love to contact you if you drop me your phone number.
    Manohar

  • JDev9i: BC4J JSP or UIX JSP?

    Hi,
    To develop a large JSP application, I read the document to
    decide which one to use BC4J JSP or UIX JSP? but still not sure
    which one to start. Any command from experienced JSP developer
    would be a great help for me. Thanks.

    Hello,
    Did you look at the section titled "Which Technology Should I
    Use?" in the JDeveloper online documentation? It gives a fairly
    decent idea on what you can do with the various pieces if
    technology that form a part of the UIX framework. Given that you
    are planning on building a huge application I am assuming that
    you would be interested in a consistent look and feel across the
    different pages of your application. UIX lends itself very well
    to build such applications very easily. On the other hand if you
    wanted to use JSPs, you could still use the UIX JSP tags which
    provide JSP tags which are wrappers for the underlying UIX
    elements. However, the UIX elements are much richer in terms of
    functionality (attributes, etc.)
    Hope this helps,
    -Kishore
    JDev Team

  • How to display a message box in a UIX JSP page?

    I've a UIX JSP Application with BC4J developed with JDeveloper RC.
    The problem is that when the user mistakes in the insertion/updating, I'd like to help him displaying a message box or a modal dialog window.
    In particular, I've the following code:
    <%@ page errorPage="errorpage.jsp" contentType="text/html;charset=WINDOWS-1252"%>
    <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
    <%@ taglib uri="http://xmlns.oracle.com/uix/ui" prefix="uix" %>
    <%@ taglib uri="http://xmlns.oracle.com/uix/ui/bc4j" prefix="bc4juix" %>
    <%@ page import="oracle.jbo.JboException" %>
    <%@ page import="CdssPackage.*" %>
    <%-- Define Application Module and DataSource--%>
    <%-- Define Application Module and DataSource--%>
    <jbo:ApplicationModule configname="CdssPackage.CdssPackageModule.CdssPackageModuleLocal" id="app1" username="scott" password="tiger" releasemode="Stateful" />
    <%
    //Check the mandatory fields are not null
    if ((cod_comm.compareTo("")==0) || (nome_ruolo.compareTo("")==0)){
    throw new JboException(Errors.ERR_REQUIRED_FIELD);
    //Now, the errorpage.jsp is displayed, while I'd like to display a message box or a modal dialog window
    %>
    How can I do it?
    Thanks in advance.

    Michele-
    You can use javascript to send a message window in the http protocol.
    Hope this helps,
    Lynn
    Java Tools Team

  • How to using the script tag in uix/jsp?

    Do i have to write in uix/jsp:
    <uix:rawText>
    <script type="text/javascript">
    function doCheckForm()
    </script>
    </uix:rawText>
    Or exists another tag that handles the javascripts without the "rawText" script?
    Marc

    If you are declaring a function, you dont need to add it under the rawText tag. It can be added with a simple script tag at the top of the page.

  • No chart/graph functionality in UIX?

    What functionality is currently available within Jdeveloper 10g 9.0.5.1 to build charts/graphs against a 10g database within a UIX page?
    The Jdeveloper docs says that the the built-in graph component (a part of BI Beans) is not available for UIX - only for JSP:
    From the docs:
    "Easy to integrate with custom applications - Since a graph component is reusable, you can add it to custom applications, including Oracle ADF web applications (currently JSP pages only) and ADF JClient applications."
    What did Oracle use to add charts/graphs to OEM10g ( a UIX application)?
    If we were to use a third-party java chart class and add the class as a component data source, how should we link user input, say from a text box on a UIX page, to the java class? For example, the user browses to a UIX page, types in ORCL, and the bottom half of the UIX page refreshes with a dynamically produced stock chart of Oracle's price history pulled from a 10g database. Or the java class returns a chart of the same data within a read-only table all within a UIX page.

    Thanks, but the issue is including a dynamically generated chart - especially one based on input in the UIX page, not simply including a static image.
    According to the UIX docs, includes do not allow parameters to be set.
    If a user types "ORCL" into a text box, how may my java class receive/obtain that value in order to use it within its charting code? I'm trying to link values on the UIX page to the java classes extending UIX. After reading the UIX docs, I remain unsure how to make this happen.
    I can use a datascope with the method element to bind a UINode to my java class - but how to send parameter(s) to the java class to alter what it returns to the databound UINode?
    I'd like to do something like this:
    (1) Drop into the page a MessageChoice.
    (2) Send the user-selected value of the MessageChoice to a java class bound to a UINode through a datascope - or have the class itself grab the MessageChoice value.
    (3) The class returns a chart generated using the value of the MessageChoice.
    kind of like this:
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui">
    <provider>
    <data name="stockChart">
    <method class="yourpackage.ChartDemo" method="getTheChart(VALUE.OF.MESSAGECHOICE)"/>
    </data>
    </provider>
    <contents>
    <image image="${uix.data.stockChart.theChart}"/>
    </contents>
    The seeming lack of any chart/graph functionality within UIX seems like a big loss.
    Does anyone know how Oracle is producing charts/graphs in OEM 10g on UIX pages?

  • Master-Detail in UIX-JSP

    Hi:
    How can i do a master-detail in UIX-JSP similar in functionality BC4J-JSP?. I haven't found an HOW-TO or guide.
    Thanks
    Marco

    Yes this is easily done.
    If you have a BC4J project with say Emp and Dept View Objects which are linked via
    a foreign key (there should be a BC4J FKDeptnoLink created), then all you have to do
    is generate a BC4J UIX JSP application.
    In a separate empty project, open the New gallery and select UIX-JSP -> Business Components JSP Application.
    Generate a default JSP application for your BC4J components. You can then run main.jsp
    to see the app.
    To see a master detail view of your app which is based on the Bc4J Link (FKDeptno) just click
    on link "FkDeptnoLink" on the left side..
    -Chris

  • UIX-JSP: Error in request parameter

    Hi:
    In my page browse, wheni press the button "Create" and select the new row and late press the button "update" i got and error:
    Row was not found using request parameter: 00010000000000000006000000EF42F52F97
    The complete error is following:
    Exception Details
    oracle.jbo.JboException: Row was not found using request parameter: 00010000000000000006000000EF42F52F97.
         void oracle.jbo.JboException.(java.lang.String)
         void oracle.jbo.html.jsp.datatags.RowTag.handleAction()
         int oracle.jbo.html.jsp.datatags.RowTag.doStartTag()
         void RhConceptoView_Edit._jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void oracle.jsp.runtime.HttpJsp.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
         void oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind.server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind.server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
         void com.evermind.server.http.ServletRequestDispatcher.forward(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind.server.http.GetParametersRequestDispatcher.forward(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind.server.http.EvermindPageContext.forward(java.lang.String)
         void RhConceptoView_Browse._jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void oracle.jsp.runtime.HttpJsp.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
         void oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind.server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind.server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
         boolean com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
         void com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
         void com.evermind.util.ThreadPoolThread.run()

    I'm not an expert in UIX-JSP, can anybody help me, PLEASE?.

  • Can any one answer me how to import and use jsp libraries into uix file and

    Hi guys
    can any one help me how to import jsp libraries in to my uix file with jdev 10g production adn how to use them..if any one got any sample for this i appreciate if u cans end me that
    thanks
    Venkat

    you cannot use jsp tags inside uix xml pages.
    you can, however, use uix jsp tags inside jsp pages.

  • ToolTips of fields in UIX JSP

    Hi All,
    We are using UIX JSP.
    We need to put tooltips to the fields getting displayed in our pages. We put the text we want as the tip in the
    'ToolTip Text' box in the 'ContrloHint' tab of the
    Edit Attribute window.(Using the Structure Panel)
    We did it for both the entity object and view object without success. Then we found in the 'Help' that it is
    not supported in UIX JSP. I am quoting the following paragraph from the 'Help' in JDev.
    "The following table lists the control hints and whether the various Business Components clients pick them up.
    Hint BC4J Data Tags BC4J UIX Tags JClient JavaUI
    LabelText yes yes yes
    Tooltip yes no yes "
    If it is not supported with UIX JSP, is there any workaround?
    Thanks in Advance
    Indica

    see the thread
    ToolTips of fields in UIX JSP

  • UIX JSP For Business Components

    I am looking for option under Web Tier - UIX JSP For Business Components - Complete UIX JSP Application. I cannot see that option in Jdeveloper 10g which was avaialble in 9i. What is the turnaround for it.
    I have an application which I wanted to convert it to jsp, so that I could deploy it on the web.
    Thanks in advance.

    We removed the "complete application" wizard in JDeveloper 9.0.5 since the application it was generating was hard to customize. Check out the tutorials on the JDeveloper home page to see how to build a complete application.

  • What to use for web tier? JSP vs. UIX vs. uiXML

    Hi all,
    I am looking at the various options for rapid development using JDev. The target application is a standard web based app accessing an Oracle DB. It looks like BC4J is the way to go for the business & persistence layers. My question now is what should I use for the front-end? I am keen to start with a wizard of some sort and drop to code level (of whatever type) when required. But for starters I can see at least 4 options:
    - JSP for BC4J
    - Strut-Based JSP for BC4J
    - UIX JSP for BC4J
    - uiXML for BC4J
    All seem to generate (1st pass) something useful and appear to have a multitude of other virtues. But I'm sure some are better than others...Can anyone give some clear advice on these choices?
    Cheers.
    Anton.

    The ToyStore application seems "clearly" MVC architected, but it is unclear how much of that is accomplished via Wizards or other JDeveloper 'supporting technologies'The MVC comes automatically by using Struts. So this has nothing to do with wizards.
    ....or if the bulk of the application is hand-coded, and then packaged into Jdev projects etc. For example, are the JSP pages written from a Wizard skeleton, or from scratch? How about the struts-config.xml and struts action classes?I think ToyStore has large handcoded Parts. The wizard generated JSP skeleton does not really help you (except I you like to save to work of adding the "body" tag ;-) ). Same with struts-config and struts action classes. If your Application is a bit more complicated than a very simple "Show Data / Edit-Data - Application you will find you quickly writing your own actions / JSPs and so on. BTW: I do not think that this is really difficult..., once you have understood how.
    The implication is that BC4J Wizards and Struts Wizards (Struts or "Struts based JSP for Business Components") are useful starting points, but we are at a loss about how to combine them effectively.Use the to understand the concept, but do not rely on them.
    Is the primary utility of JDeveloper in BC4J Wizards?Some Wizards are really good and necessary (the simpler ones) and some are nice to give you some hints. JDeveloper will not write your application for you (and will not free you from reading a lot of documentation).
    Frank Brandstetter

  • UIX JSP equivalent for JSTL 'set'?

    Is there a UIX JSP tag that performs an analogous function to the JSTL tag 'set'? I would like to be able to setup local variables so that I don't have to repeat extended expressions.

    You can (generally) speaking use JSTL's set in UIX JSP pages, and (mostly) use JSTL JSP tags with UIX JSP tags.
    So, you should just be able to use <c:set>.
    The major complexity in integrating the two is remembering that JSTL sets and iterates immediately, but UIX JSP evaluates EL expressions only once the last UIX JSP tag completes. This doesn't cause much of a problem with <c:set> or <c:if>, but does cause some major problems with <c:forEach>.
    (A very similar problem is encountered when using JSTL tags with Java Server Faces JSP tags, so this is just a painful fact-of-life.)

Maybe you are looking for