BC4J and UIX: Where to filter MessageChoice?

I have VO based on EO and table STUDY_PHASE (STUDY_ID, STUDY_PHASE_ID, STUDY_PHASE).
So when user logs into the system he/she chooses STUDY_ID and thereafter is able to visit other UIX pages. Some of the pages are UIX Input Forms and the user can select Study Phase from the MessageChoice Component that is 'sourced' with the StudyPhaseView.
My questions is where (not how) to do this in the code? What I did is parametarized VO with 'WHERE studyId = :1' and I am aware of the code:
ViewObject vo = appMod.findViewObject('VOname');
vo.setWhereClauseParam(0, studyId);

Hi
Again I would appreciate if someone can take a look at this post.
I will try to be more specific. I have two VOs:
1. AssignmentVO (AssignId, AssignedTo, StudyId, StudyPhaseId). This VO is based on EO AssignmentEO with the same attributes and this EO is based on a table ASSIGNMENT with, again, same attributes. Clear enough?
2. StudyPhaseVO (StudyId, StudyPhaseId, StudyPhase)
There is no viewlink beetween these two VOs. I just need StudyPhaseVO to be my source for the MessageChoice. Here is where MessageChoice comes into the game:
I have a UIX page that is an input form for adding/editing Assignment information. So the page has entries for AssignId, AssignedTo, StudyId, StudyPhaseId. Actually the page HAS only two input fields (AssignId uses automatic DBSequence for the new records):
- AssignTo as MessageTextInput
- StudyPhase as MessageChoice (HERE IT IS).
I guess I can divide my problem into two:
1. I need to choose StudyPhase from the source view (StudyPhaseVO) and destination is actually TWO fields StudyId and StudyPhaseId which both are needed to passed to the underlaying AssignmentEO.
2. But my set of choices needs to be filtered by StudyId which has been selected in the table on one of the previous pages. I do have a ViewLink available to fetch the record and extract the StudyId.
The question is how and where in the code to use this StudyId so that when UIX input form opens, only filtered values in MessageChoice are displayed. If this is not clear enough please let me know.

Similar Messages

  • Difference of 'Specify Fragmentation Content'  and 'where clause Filter ' ?

    What is the difference of ‘Specify Fragmentation Content’ and ‘where clause Filter ‘
    As per my understanding Both looks like limit the data ?

    'Specify Fragmentation Content’ is for Union-ing tables, e.g. one table has data for 2008 while other has 2005-2007, so 'Specify Fragmentation Content’ tells server where to go look for data.
    'Where clause Filter' is for limiting data from the table, e.g. where status = 'Funded'

  • (UIX XML) Sharing Connection objects between BC4J and custom java.

    If I have a UIX XML page that contains some BC4J application modules, then in the event handler I call [public static EventResult handleMyEventEvent (BajaContext context, Page page, PageEvent event..) ], which in turn calls some java classes I have written that take a java.sql.Connection object and access the database doing some updates/inserts with this Connection object (via JDBC)....HOW CAN I USE THE SAME TRANSACTION AS WAS USED IN THE BC4J APPLICATION MODULE...i.e. CAN I SHARE THE CONNECTION OBJECT BETWEEN BC4J AND MY OWN JAVA CLASSES THAT USE JDBC?
    What are the best ways to share such a transaction?
    Thanks,
    Paul.

    Would it be easier to use a custom method on the bc4j Application module?
    Take this scenario...
    1. User opens UIX XML web page which opens a bc4j App Module..it has a VO based on all employees.
    2. User presses the add button and a new employee is created (using the bc4j App Module).
    (Notice: no commit yet!)
    3. User presses the submit button...fires event REVIEW_SALARY.
    4. This event is 'handled' in the event section of the UML XML...it calls:-
    public static EventResult handleREVIEW_SALARYEvent (BajaContext context, Page page, PageEvent event)...
    5. I now want to call a java class I wrote that computes an employees new salary and updates the employee record with this new salary. This update will fail unless it is part of the same transaction as the one used by the bc4j App Module (that inserted the new employee).
    How best to proceed from here?
    How about having a method on the bc4j App Mod's VO called 'reviewSalary'? Calling this would use the same transaction? I could then call my java class from within the VO's method? However do I still have the same problem in that my java class expects to be passed the connection object?
    The approach you suggested previously seems a touch dangerous....in that these are not 'publically exposed'...and a new release of JDev may break my code.
    Thanks,
    Paul.

  • WebToGo BC4J + Struts + UIX application

    Is there any possibility to write a complete BC4J + Struts + UIX web application to run in the Oracle Lite platform??
    The documentation says about implementing a Servlet, but is it possible to install the .jar files of the struts & uix frameworks and register the *.do & *.uix extensions? What is the specification of the HttpServlet to be implemented?
    What about performance? Could this combination run in a WinXP PIV offline Laptop with reasonable performance?
    Where can I find this kind of information??
    Thanks
    Eduardo

    UIX is not supported in 5.0.2.x release. The next release (10g) will have complete UIX support. Beta release of 10g is already out in case you are interested in trying UIX with it.
    For BC4J refer to 'Chapter 6 BC4J Tutorial' of 'Oracle9i Lite Developer’s Guide'
    Limited support for Struts is there in 5.0.2.10.0 release. If you have the handler for .do extension files then you can use following:
    You can add mime handler to Mobile Server for .do extension by using a ini file. Copy following lines in a file called addmime.ini
    [DATABASE]
    TYPE=ORACLE
    [MIMETYPES]
    NAME = do
    VALUE=text/html
    PLUGIN=<handler class name>
    and run this ini file as following
    wsh -c addmime.ini mobileadmin/[email protected]

  • Which Web Client Framework? BC4J-JSP, UIX-JSP, UIX-XML, etc

    Trying to determine which, if any of the JDeveloper frameworks, to use for do web browser (HTML) clients.
    What are the pros/cons of BC4J-JSP, UIX-JSP, UIX-XML, etc?
    What are some common things you might rule out using one or more of the frameworks?
    I plan to be using BC4J, updating, inserting data (currently MS-SQL) and the apps will run on WebLogic 7 or Caucho Resin (webapps no EJB) in a cluster. I would like to be as RAD as possible and still be able to do what I need to do. One main concern is being able to add custom HTML/JavaScript for things like client side validation. I didn't see a way to do this when doing BC4J-JSP. Is that right?
    If I define any validation in the BC4J, will UIX utilized any of this to define a JavaScript validator or must it be redudantly defined?
    One other concern is what the framework requires in terms of architecture, like do I have to have sticky sessions in my web cluster or can it work fine stateless or stateful?
    For UIX-XML, how is this architected for performance? Specifically, is the XML effectively compiled and converted into something more efficient and performant or does it do XML parsing all the time? Is there any significant performance differences between the frameworks?
    Is there any significant difference in dealing with security? Anything in the framework to make it easier to handle certain users being able to see/edit different set of data?
    I have things like some groups can edit only certain entities (product info but not pricing), others only certain types of products (possibly subclass entities) and others situations where what fields than can edit varies. Obviously I can handle this programmatically, but I was wondering what the frameworks had to offer, especially in terms of having different views of the same data.
    Steve

    ...I am little confused then about how BC4J works and what is meant by "session" here.
    When you talk about appmodules in the plural, does this mean that there are potentially multiple instances of the same data on a single server or there is a common datastore with pending data and client specific stuff varying?
    The common datastore is the database. Each client (momentarily, during the span of their request) uses an instance of an application module from the pool. The pool can grow and shrink with load on your system and all of the various tuning parameters. Our doc on the AM Pool covers all the parameter settings and their users.
    What kind of "session" is this?
    It is an abstract notion of a session for a user. The implementation used for Web clients uses the HTTP Session Key as the session key. However, we have other session implementations (and you can provide your own to do custom stuff for more sophisticated needs). We don't store anything else in the HTTP Session to the best of my knowledge. This way in a cluster, the web container doesn't have to waste time propagating all of your serialized HTTP Session state among cluster members. This session key also include an id for the application module and together those provide the key to store your pending state in the database for the "Stateful == Managed State" feature.
    I assume that if I have a cluster which doesn't use session-to-same-server-affinity but uses JDBC for http-session persistance or distributed in-memory http-sessions then I cannot use stateful BC4J even though I can use http-sessions.
    You can use BC4J in this way because the browser will send a cookie that contains the key to your database-stored pending state. In this way, we work great in a server farm for failover and/or scalability reasons.
    Even if I use stateless BC4J, are there issues with round-robin'ng all requests to different servers in a cluster?
    As I said, both our Stateless and Stateful features are designed to be used in Server farms, no problem.
    BTW I wouldn't necessarily say you picked the wrongs terms for the modes, but I know what you mean. There's problems with these terms. I am trying to explain to my mgrs/engineers that there is some state in stateless transactions - that simply making everything "stateless" doesn't mean don't lose anything in a disastrous failure. I am arguing to get support for sessions in our cluster, that the performance gain and simplified development is worth it as long as you put intelligent limits on what you store in the session. Right now, they are insisting on randomly sending requests into two entirely different data centers, with two different clusters.
    Amen. I have seen too many developers make the mistake of trying to be totally stateless, only to completely complicate their development environment with having to peristent partially-completed transaction data to the database. I've seen this done with sets of "Shadow" tables (yuck!) or using hand-written techniques similar to what BC4J provides a robust implementation of in the box.
    We've tuned our "Stateless With Affinity for Server Farms" model over several releases of carefully studying the performance of the Web apps built by our internal Oracle Applications teams using BC4J (over 20 of them now, and growing!) so compared with a hand-written strategy for your web-tier state management, using BC4J's implementation will be much more productive for you.
    We're tuning and tweaking and enhancing it even more for the 9.0.3 release as new needs are highlighted with continued use by our customers (both Oracle internal and external).

  • Change where clause filter based on prompt?

    Hi,
    I am trying to change my where clause filter based on a prompt selected. What I want to do logically looks like this - although it doesn't work as it is not valid case statement syntax:
    select *
    from table t
    where t.calc_result_info_key in (case when :product_prompt = 'GAS' then (310, 160, 4000)
                                     else (320, 330, 340, 350, 170, 180, 190, 200, 4010, 4020, 4030, 4040)  end)Is there any way to change filter logic like this?
    Edited by: dgouin on Sep 16, 2010 9:02 AM

    The good old ugly OR statement.
    select *
    from table t
    where
          t.calc_result_info_key in (310, 160, 4000)
             and
          :product_prompt = 'GAS'
       or
          t.calc_result_info_key in (320, 330, 340, 350, 170, 180, 190, 200, 4010, 4020, 4030, 4040)
       and
          (:product_prompt != 'GAS' or :product_prompt is null)
       )

  • There are sites like Amazon, Facebook and pages where I need to put info on that don't totally show all the points. How can I get them to show up? I usually have to guess

    There are sites like Amazon, Facebook and pages where I need to put info like name, address, etc, that don't show where 'next' or 'skip' or 'continue' are. There is just alot of space. When I move my cursor around I have to guess if it's the right one and click

    For some ways around this see [http://kb.mozillazine.org/User_name_and_password_not_remembered User name and password not remembered - MozillaZine Knowledge Base]
    Another option is the [https://addons.mozilla.org/en-US/firefox/addon/60265/ Saved Password Editor] add-oin which allows you to add passwords for sites that disable password saving.

  • I am having troubles, when I open LR I get a message that there is an error and it will try to fix the error next time it opens, but I get the error next time it opens, and this is going on and on where I can not use LR, any suggestions?

    I am having troubles, when I open LR I get a message that there is an error and it will try to fix the error next time it opens. LR closes on it's own, I reopen it and get that same message next time it opens, and this is going on and on where I can not use LR, any suggestions? If I click on a different set of photos in the libary before I get that message I might or might not get the message next time it oipens, but I still can not get to those photos, and it is not just one or two but most of my photos. HELP!!!!
    Thanks
    Carol

    The first thing I would suggest is for you to go to the folder containing your catalog, using your system browser. There will be a folder that has the extension .lrdata. Delete that folder, and then try to start Lightroom. If that doesn't work, replace your catalog with your most recent backup.

  • Is there an issue with Safari in Iphones and Ipads where it does not recognize option disabled="disabled" tag properly?

    Greetings everybody,
    I have run into a peculiar problem with the Safari browser on mobile platforms (IPad, IPod, IPhone) which I hope I can find a solution for in this community.
    I just launched a new website where I sell products with certain variations, for example please view this link: http://www.finerribbon.com/aegean-single-face-satin-ribbon.html
    On this particular product, the product variants are supposed to work in such a way where:
    If you select the value "1/8" from the "Choose Ribbon Width" field
    THEN
    The only options active and available to choose from in the "Choose Roll Size" field should be: 500 Yds, 20 Yds & Sample Swatch
    Now, if we browse to the above link in Safari using a desktop or a laptop, there are no problems at all, but if we browse to the above link using an IPhone or an Ipad, then we have a problem where all the options are available regardless of the values chosen, basically the above functonality does not work.
    I was told that there an issue with Safari in Iphones and Ipads where it does not recognize option disabled="disabled" tag properly, is this true? Can anyone advise me if there is a solution to this problem? I would sincerely apperciate it.
    Thank you very much for your time and help!

    Hi...
    I have run into a peculiar problem with the Safari browser on mobile platforms (IPad, IPod, IPhone) which I hope I can find a solution for in this community.
    Now, if we browse to the above link in Safari using a desktop or a laptop, there are no problems at all, but if we browse to the above link using an IPhone or an Ipad, then we have a problem
    At the top of this window you'll see the following:
    Apple Support Communities > Mac OS & System Software > Safari > Discussions
    This the Safari forum for the Mac OS X.
    Better that you post your topic here  > Developer Forums: Apple Support Communities
    I do see on my iPad what you are rreferring to. But you shoudl get the feedback you need in the developer forum.

  • I have songs on my iPod and iTunes where sections ranging from 40 seconds to 2 minutes do not play.  The song status bar indicates the file is still being played but there is no audio.  What can I do to repair or replace these files?

    I have songs on my iPod and iTunes where sections of the song ranging from 40 seconds to 2 minutes will not play.  The song status bar indicates the file is still being played there is no audio.  What can I do to repair or replace these files?

    If iTunes purchases, delete and redownload by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Otherwise delete and resync if they play OK in iTunes on the computer

  • Having moved my Itunes folder to external hardrive and resetting where it is in preferences Itunes can't find them and I have to direct it to every song - I have a months worth of songs on there so this will take avery long time  - any ideas on what;s up?

    Having moved my Itunes folder to a new external hardrive and resetting where it is in preferences Itunes can't find them and I have to direct it to every song- a little ! pops up next to the song and a dialogue box says Itunes can't find it so thn i have to manually search for it - I have a months worth of songs on there so this will take avery long time  - any ideas on what's up?

    nellydee wrote:
    Having moved my Itunes folder to a new external hardrive and resetting where it is in preferences
    That's not how to do it. You don't move stuff then set the iTunes prefs > Advanced.
    Once you move the /iTunes/ folder, hold Option, launch iTunes and select Choose library... and select the ITunes folder on the external.
    This will use the iTunes library file in the iTunes folder you moved.
    Don't change iTunes prefs > Advanced.

  • I lost my iphone, and know where it is through icloud, how do i get my phone back? i already sent lost phone, and where to call and he or she does not want to call. what I do I lost it yesturday?

    I lost iphone yeturday, and know where it is using icloud, how do  I get it back?  I already sent a lost phone to my phone an I said to call me at a number i can be reached at.  He or she dose not want to call. What am I to do?

    Hard to know, but reporting it to the police is usually a required step from your insurance carrier if you plan on filing a claim.  Here's Apple's support article on what to do: http://support.apple.com/kb/HT5668.

  • Hi - I created a form in Adobe Livecycle and have a button on it to send the form via email.  the button did not work and i looked online and saw where you could change it to a regular button and enter the email for it to go.  it worked, but only for thos

    Hi - I created a form in Adobe Livecycle and have a button on it to send the form via email.  the button did not work and i looked online and saw where you could change it to a regular button and enter the email for it to go.  it worked, but only for those with adobe pro.  i could not get it to work with reader.  is there a way i can make it work for reader?

    Noted.
    The LiveCycle user to user forum is across town at:
    Adobe LiveCycle 
    Be well...

  • [URGENT] Performance problem with BC4J and partioned data

    Hi all,
    I have a big performance probelm with BC4J and partitioned data. As as partitioned table shouldn't have a primary key like a sequence (or something else) my partitioned table doesn't have any primary key.
    When I debug my BC4J application I can see a message showing me "ignoring row with no primary key" from EntityCache. It takes a long time to retrieve my data even if I use the partition keys. A quick & dirty forms application was multiple times faster!
    Is this a bug in BC4J, or is BC4J not suitable for partitioned data? Can anyone give me a hint what to do, do make the BC4J application fast even with partitioned data? In a non-partitioned environment the application works quite well. So it seams that it must be an "error" somewhere in this part.
    Thanks,
    Axel

    Here's a SQL statement that creates the table.
    CREATE TABLE SEARCH
    (SEAR_PARTKEY_DAY              NUMBER(4)        NOT NULL
    ,SEAR_PARTKEY_EMP            VARCHAR2(2)      NOT NULL
    ,SEAR_ID                     NUMBER(20)       NOT NULL
    ,SEAR_ENTRY_DATE             TIMESTAMP        NOT NULL
    ,SEAR_LAST_MODIFIED            TIMESTAMP             NOT NULL
    ,SEAR_STATUS                 VARCHAR2(100)    DEFAULT '0'
    ,SEAR_ITC_DATE               TIMESTAMP        NOT NULL
    ,SEAR_MESSAGE_CLASS          VARCHAR2(15)     NOT NULL
    ,SEAR_CHIPHERING_TYPE        VARCHAR2(256)   
    ,SEAR_GMAT                   VARCHAR2(1)      DEFAULT 'U'
    ,SEAR_NATIONALITY            VARCHAR2(3)      DEFAULT 'XXX'
    ,SEAR_MESSAGE_ID             VARCHAR2(32)     NOT NULL
    ,SEAR_COMMENT                VARCHAR2(256)    NOT NULL
    ,SEAR_NUMBER_OF              NUMBER(3)        NOT NULL
    ,SEAR_INTERCEPTION_SYSTEM    VARCHAR2(40)    
    ,SEAR_COMM_PRIOD_H           NUMBER(5)        DEFAULT -1
    ,SEAR_PRIOD_R                  NUMBER(5)        DEFAULT -1
    ,SEAR_INMARSAT_CES           VARCHAR2(40)    
    ,SEAR_BEAM                   VARCHAR2(10)    
    ,SEAR_DIALED_NUMBER          VARCHAR2(70)    
    ,SEAR_TRANSMIT_NUMBER        VARCHAR2(70)    
    ,SEAR_CALLED_NUMBER          VARCHAR2(40)    
    ,SEAR_CALLER_NUMBER          VARCHAR2(40)    
    ,SEAR_MATERIAL_TYPE          VARCHAR2(3)      NOT NULL
    ,SEAR_SOURCE                 VARCHAR2(10)    
    ,SEAR_MAPPING                VARCHAR2(100)    DEFAULT '__REST'
    ,SEAR_DETAIL_MAPPING         VARCHAR2(100)
    ,SEAR_PRIORITY               NUMBER(3)        DEFAULT 255
    ,SEAR_LANGUAGE               VARCHAR2(5)      DEFAULT 'XXX'
    ,SEAR_TRANSMISSION_TYPE      VARCHAR2(40)    
    ,SEAR_INMARSAT_STD           VARCHAR2(1)     
    ,SEAR_FILE_NAME              VARCHAR2(100)    NOT NULL
    PARTITION BY RANGE (SEAR_PARTKEY_DAY, SEAR_PARTKEY_EMP)
      PARTITION SEARCH_MAX VALUES LESS THAN (MAXVALUE, MAXVALUE) MIRA4_SEARCH_EVEN
    );of course SEAR_ID is filled by a sequence but the field is not the primary key as it would decrease the performance of partitioned data.
    We moved to native JDBC with our application and the performance is like we never expected to be!

  • I am trying to burn a dvd and it will not allow me to do this because it states that i do not have enough space for encoding disk. how do i free up space and from where?

    I am trying to burn a dvd and it will not allow me to do this because it states I do not have enough space for encoding. how do i free up space and from where?

    iDVD can only use your startup hard disk for the "scratch space" it needs for calculations during the encoding process.  25 GB is a good average requirement, but a large project (3 or 4 hours of content) might require more.
    To free up space, you will have to move items to an external hard drive and/or delete items you no longer want.
    Please note that iDVD can't use and external hard drive for this "scratch space".

Maybe you are looking for

  • TS1702 How can I delete my frozen Facebook APP?

    My Facebook App on my iphone is stalled in the update mode.  How can I delete and restore?

  • Change inbound delivery using /SPE/IDOC_INPUT_DESADV1

    Hello - We are creating an inbound delivery using the idoc function module /SPE/IDOC_INPUT_DESADV1.  I have need to be able to change an existing delivery via idoc processing, so we are populating and mapping an E1EDL18 segment with the qualifier 'CH

  • Apps are greyed out when syncing

    When syncing my son's iPod, the apps on the computer screen are greyed out.  The check mark is there, but it is greyed out as well so I am not able to select or deselect apps.  What it this and how do I fix it?

  • Scroll bar in field of custom Infotype

    Hi, I have created an infotype with some fields in it. I want one of the field as 'Description' field into it and it should have a scroll bar in it. Please suggest how to create a field with a scroll bar. The field should be capable of having 300 cha

  • Assign field symbols in infotype 0021 BADI implementation (HRPAD00INFTY )

    Hi there, In PA30 infotype 0021, i have to change the value of T_VIEW_REPID by implementing BADI HRPAD00INFTY [Program MP002100->screen 2000->MODULE BEFORE_OUTPUT->PERFORM badi_before_output(sapfp50m)]. I'm trying to use field symbols (as below) to c