Programmatically set dynamic items in selectOneRadio from mbean
Hello all,
Looking for an example of how to dynamically set values from an mbean on a selectOneRadio component. I see that I can bind this component to my mbean which then provides getters and setters, but its unclear to me how I would be able to create additional radio select values dynamically.
Any help is appreciated,
-Wraith
Hi,
if you use a ADF Business Components you can create a row about the VO of the selectOneRadio
another possibility is that you have a List and go adding items
https://blogs.oracle.com/vijaymohan/entry/binding_your_selectonechoice_to_a
http://adfdevelopers.blogspot.com.es/2009/06/how-to-implement-drop-down-list-in-adf.html
Similar Messages
-
Programmatically setting menu item "enabled".
I have an AIR app that has a menu item that when selected
launches a dialog.
I need to set the enabled property of the menu item to false
after it is selected, as only one instance of this dialog should be
launched, and I don't want to make the dialog modal. I also need to
set the enabled property to true when the dialog is closed.
Do I do this through the defaultDataDescriptor?
BTW, the dialog that launches is not a popup, it is in an AIR
app in the main window, in what I call the "workarea"."Greg Lafrance" <[email protected]> wrote in
message
news:gc6k9e$ht9$[email protected]..
>I have an AIR app that has a menu item that when selected
launches a
>dialog.
>
> I need to set the enabled property of the menu item to
false after it is
> selected, as only one instance of this dialog should be
launched, and I
> don't
> want to make the dialog modal. I also need to set the
enabled property to
> true
> when the dialog is closed.
>
> Do I do this through the defaultDataDescriptor?
>
> BTW, the dialog that launches is not a popup, it is in
an AIR app in the
> main
> window, in what I call the "workarea".
What is the code of your menu? MenuItems have an enabled
property, but
knowing you I'm guessing the problem is not that you don't
know that. -
Generic proceeding for setting application item's value from javascript?
For the moment, all I can think of is a javascript function calling an on-demand process that looks like this:
function setVariableValue(pName, pValue){
var gReturn;
var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=odpSetVariableValue',0);
get.addParam('x01',pName);
get.addParam('x02',pValue);
gReturn = get.get();
get = null;
odpSetVariableValue
begin
execute immediate ':' || wwv_flow.g_x01 || ' := ' || wwv_flow.g_x02;
end;
Is there an APEX function to do it without "execute immediate"?
IgorHello Igor,
I think you can do the same thing without actually executing a PL/SQL Process (look here for an example).
function setVariableValue(pName, pValue){
var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=dummy',0);
get.add(pName, pValue);
var gReturn = get.get();
get = null;
(The Application Process dummy doesn't really exists...).
Greetings,
Roel
http://roelhartman.blogspot.com/
http://www.bloggingaboutoracle.org/
http://www.logica.com/
You can award this reply to your question by marking it as either Helpful or Correct ;-) -
Problem in setting dynamic expiration duration from Human Task
Hi,
I have a BPEL process, in which the Human task expiration has to be set dynamically..
In the , I have set the expiration duration with this :-
<copy>
<from expression="xp20:format-dateTime(xp20:current-dateTime(),'PT1M')"/>
<to variable="initiateTaskInput" part="payload"
query="/taskservice:initiateTask/task:task/task:systemAttributes/task:expirationDuration"/>
</copy>
Do not get confused with 'PT1M' .. I want the duration to be 1 minute... Had I used 'PT1M' as a String and assign to the expirationDuration var, it would have caused an error... It needs to be fromatted as a Date..That's y i took this approach ... I am sure this is working fine as I have checked the payload of the task..
It has a proper duration..
<initiateTaskInput><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="payload"><initiateTask xmlns="http://xmlns.oracle.com/bpel/workflow/taskService">
<task xmlns="http://xmlns.oracle.com/bpel/workflow/task">
<systemAttributes>
<expirationDuration>PT1M</expirationDuration>
Now in the Human task definition(.task file), I have set the expiration duration with "By Expression" option in this way..
<globalConfiguration>
<owner>oc4jadmin</owner>
<expirationDuration duration="/task:task/task:systemAttributes/task:expirationDuration"
type="XPATH"/>
</globalConfiguration>
The problem is the task(at runtime) cannot evaluate the expirationDuration from the XPATH..
I checked with the WF_TASK table in the orabpel schema ...
When I use a static duration EXPIRATIONDURATION cloumn gets assigned properly (ie PT1M).. But when i take the XPATH approach, it translates to PT0S.
Can someone look into this please ?
Struggling with this for quite sometime...
saptarishiIf the Human Task shows status complete, then it's possible that there was an error in the output data association in the process. In EM do you see a fault on the output for the Human Task activity, or if PS4FP the process will go to suspended state if the data association fails.
-
How to change content type from Document set to Item
While creating content type I've selected Item as a parent but after created I can see its showing Document Set as a parent content type. Now can anyone please suggest if possible I can change the parent content type from Document Set to Item.
Hi,
From your description, I know you want to change content type’s parent after creating it.
There is no OOB method to change content type’s parent after you create it. If current content type has not been used, you could delete it and recreate it with your desired base type. Here are similar cases:
http://sharepoint.stackexchange.com/questions/16131/change-base-content-type-of-content-type
https://social.technet.microsoft.com/Forums/sharepoint/en-US/b976f17e-99b5-42bb-bc82-8d4123a625cf/change-the-parent-of-a-content-type.
This article may help you understand the relationship of Content type inheritance:
https://support.office.com/en-au/article/Create-and-edit-content-types-3d5d45af-608d-4183-8d51-073095fe0312#__toc239159103.
Best Regards
Vincent Han
TechNet Community Support -
How i can set dropDown item to 6th item from java code ?
Hi
Thank you for reading my post.
how i can set dropDown item to 6th item from java code ?
i have the value field of database and i can use it to set selected item of DropDown.
so : can i use value field to set the selected item ?
Thank u.Hi,
Please go through the following thread which discusses about setting teh selected item for a dropdown:
http://swforum.sun.com/jive/thread.jspa?forumID=123&threadID=50697
Hope it helps
Cheers
Giri -
Item Values Not Set - Dynamic SQL Fails to Parse.
** Think I've fixed this **
(By simply defining some page computations I was able to set the item values to some default. Please don't feel the need to reply :-))
I have a page consisting of 5 report parameters and a report, all in one region, 4 parameters are LOVs and one is a text field which in the query are all compared to table column values. The report region type is SQL Query(PL/SQL function body returning SQL Query).
If I load the page in a new session with default values for the LOVs as '%' and a null text field, I get the following error message:-
failed to parse SQL query:
ORA-00936: missing expression
If I examine the session state, I see that none of the parameter values are set, which is probably why the dynamic sql is failing.
If I set one of the parameters to something, eg. choose another value in an LOV or type some text in the text field, and re-run the report, it executes without error.
What's the easiest way to fix this, is it to set the page items to some specific values when the page is first loaded? If so how do I do that? I'm not having much luck creating some process to do it.
All help appreciated.
Ian
Message was edited by:
Ian_FHi Ian,
Did you already try to put a default value for that lov?
Or try to do a computation before header?
Thanks,
Dimitri
-- http://dgielis.blogspot.com
-- http://apex-evangelists.com -
Possible to set Dynamic Config from ABAP Proxy
Hi,
I know how to get and set Dynamic Config from Java/XSLT mappings and adapter modules. But I want to do this from an outbound ABAP Proxy Call (in the same way I can set the serialization context for EOIO), is that possible?
The scenario is: I have an interface; Proxy -> Xi -> ftp, with no mapping. It seems unnecessary to introduce a mapping just to set some dynamic config values for the receiving adapter which are already known at the outbound proxy call...
rgds JohanHi Bhavesh,
In the thread you mention it is shown that you can set Dynamic Config properties during an ABAP mapping. My question was if I can set these properties already in the proxy call? Or did I miss something?
Of-course I can introduce a dummy mapping in Java/XSLT/ABAP which copies the source message to the result message and sets the dynamic config properties, but I would rather not introduce a mapping if not neccessary...
rgds Johan -
How to set the item property to restrict the user to not to copy from above
Hi Guru's,
I have a requirement like, There were two items on the form name email Id, Confirm email Id.
I have to ristrict the user to not to copy from email Id item.. make him/her to enter the value into confirm email id item field manually.
How to set the item property to restrict the user to not to copy from above item and paste it in this item.
Please help.
Thanks!!Just an opinion here, but that is about the dumbest requirement I have ever seen.
I am always annoyed by web sites that ask me to enter my email twice. I ALWAYS copy the email address from the original entry and paste it into the second one.
People enter their email addresses so often, it takes a real klutz to not get it right. And what makes you think that if they enter it twice, that they won't enter it wrong both times anyway??? -
I've got an error when trying to programmatically set a CrystalReports data-source
I've got the following existing process that I needed to add to in order to programmatically set the data-source (server, database, username, and password) from a config.xml file.
I added the ‘addDBConnection’ and ‘searchConfig’ parts, and this seems to be updating the existing this._report object, but I’m getting the following error and can’t figure out what is happening.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using CrystalDecisions.CrystalReports.Engine;
using WGS.Reports.Reports;
using CrystalDecisions.Shared;
using WGS.Reports.Forms;
namespace WGS.Reports
public class ReportService
ReportClass _report;
ParameterFields paramFields;
public ReportService()
public void DisplayReport(string reportName, int allocationNo)
if (reportName.ToLower() == "allocationexceptions")
this._report = new AllocationExceptions();
addDBConnection(this._report);
PrepareAllocationExceptionReport(allocationNo);
this.DisplayReport();
private void addDBConnection(ReportDocument report)
//Get connection parameters from config.xml file
string servername = searchConfig("SERVER");
string databasename = searchConfig("CATALOG");
string userid = searchConfig("USER");
string password = searchConfig("PASSWORD");
//Loop through each table in the Report and subReports, and apply the new login information
foreach (Table cTable in report.Database.Tables)
TableLogOnInfo loi = cTable.LogOnInfo;
loi.ConnectionInfo.ServerName = servername;
loi.ConnectionInfo.DatabaseName = databasename;
loi.ConnectionInfo.UserID = userid;
loi.ConnectionInfo.Password = password;
cTable.ApplyLogOnInfo(loi);
foreach (ReportDocument subReport in report.Subreports)
foreach (Table cTable in subReport.Database.Tables)
TableLogOnInfo loi = cTable.LogOnInfo;
loi.ConnectionInfo.ServerName = servername;
loi.ConnectionInfo.DatabaseName = databasename;
loi.ConnectionInfo.UserID = userid;
loi.ConnectionInfo.Password = password;
cTable.ApplyLogOnInfo(loi);
private void PrepareAllocationExceptionReport(int allocationNo)
this.paramFields = new ParameterFields();
this.paramFields.Clear();
ParameterField paramField = new ParameterField { ParameterFieldName = "@AllocationNo" };
ParameterDiscreteValue discreteVal = new ParameterDiscreteValue { Value = allocationNo };
paramField.CurrentValues.Add(discreteVal);
paramFields.Add(paramField);
private void DisplayReport()
frmReportViewer showReport = new frmReportViewer();
showReport.ReportViewer.ReportSource = this._report;
showReport.ReportViewer.ParameterFieldInfo = paramFields;
showReport.ShowDialog();
showReport.Dispose();
private string searchConfig(string searchText)
XDocument doc = XDocument.Load("Config.xml");
string returnValue = "";
var list = from x in doc.Descendants("param")
select new
Item = x.Descendants("item").First().Value,
Value = x.Descendants("value").First().Value
foreach (var item in list)
if (item.Item == searchText) returnValue =item.Value;
//Console.WriteLine("Item ({0}) has a value of {1}", item.Item, item.Value);
return returnValue;
Am I trying to do this wrong, or do I need to do more to add the correct connection information?
Any help would be very much appreciated.The code looks good - as long as the variables are correct. (You may want to consider hard coding the logon values as part of your troubleshooting steps).
Database Vendor Codes are passed by the DB client through the report engine unmodified. E.g.; look at your database documentation for the error. I did not find anything googling the error, so do check the db docs.
If that does not help, let us know the following:
Does the report work in the designer?
What version of CR? Including any Service Packs applied.
What version of .NET?
What database?
How are you connecting to the database? (32 or 64 bit?)
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter -
Check marks or dynamic items for run-time shortcut menus
Labview version: 8.0
I'd like to create a run-time shortcut menu for my Xcontrol, that would
allow user to toggle between two states of the control. Is it possible
to either
1) dynamically apply check marks to run-time shortcut menus or
2) dynamically modify the run-time shortcut menu content
Tomi
Tomi MailaHi Tomi,
Great question. Yes, you can do what you want with run-time shortcut menus in LabVIEW 8.0. If you want to dynamically modify the menu content, you have to do it in the "Shortcut Menu Activation?" event in the facade VI of the XControl. In the event data for this event is a parameter called "MenuRef" which works with the same menu primitives that have been around since LabVIEW 5 for editing the menu bar at run-time.
With these primitives, you can add/delete/modify menu items to the shortcut menu. The items that are already in the MenuRef when this event case executes are always the ones that are statically defined, either by LabVIEW or by customizing them. You do not have control over the state of the items that LabVIEW adds, but you can remove them and add ones with the same text (just with a different tag). In your case, you would probably want to use the Insert Menu Item primitive to add an item such as "Toggle State". Give it a tag such as "USER_TOGGLE_STATE". Then you'll want to use the Set Menu Item Info primitive to set the checkmark for that item based on the state of the XControl.
Then, you'll need to add an event case for the "Shortcut Menu Selection (User)" event so you can handle the item being selected. Wire the Item Tag parameter from the event data to a case structure and add a case to look for "USER_TOGGLE_STATE". And in that case, toggle the state of your XControl. That's all you need to do!
The Dual Mode Thermomter shipping example in <LabVIEW 8.0>\examples\general\xcontrols\Dual Mode Thermometer\Simple Dual Mode Thermometer XControl.lvproj is a simple example of how you can modify the menu and respond to the items selected. It's a little different than what you want to do, but it might help you to look at it.
Good luck! Let me know if you have questions.
Robbie -
Items session State from form to another ...
Hi Guys,
I have been trying to pass items session state from one page to another page that is opened on Sikllbuilder Modal Page, but to no avail.
I have been trying to pass items session state from one page to another page using branch , but to no avail.
Can you please have a look...
workapce: fam
user: test
pwd: test
Application 64941 - Modal Page
On the setting of Skillbuilders Dynamic action, I used this Static URL:
f?p=&APP_ID.:2:&APP_SESSION.:::2:P2_MOBILE,P2_MOBILE2,P2_MOBILE3:&P1_MOBILE.,&P1_MOBILE2.,&P1_MOBILE3.Regards,
FatehHi Trent,
Actually, i did not create new DML. and my problem is not with the source.
in a nutshell,
the items on the first page have source of Static assignment .. only one item has a default value
the items on the second page have source of Database Column .. none of the items have default value
1- What caused the confusion is:
We run the page 1 , we have an item (Mobile) with a default value ( that means it has a session state value by default ) > Concur.
I type a value on the second item ( Mobile 2) then set session values.
both items ( Mobile & Mobile 2 ) have session state values. > Concur.
Click Modal Page button to trigger the modal page. where the Static URL is:
f?p=&APP_ID.:2:&APP_SESSION.:::2:P2_MOBILE,P2_MOBILE2,P2_MOBILE3:&P1_MOBILE.,&P1_MOBILE2.,&P1_MOBILE3.We see that only the value of the first item (P1_Mobile) goes to the modal page. but rest of the items do not go.
I hope that it is clearer now..
Best Regards,
Fateh
If you want details, Please allow me to tell my scenario. I have two forms "Clients", "Inquiries".
As a client calls, I need to identify whether the client is exit on the DB or not.
So, as the client calls, we enter the mobile phone number into items that have static assignment source, then click on a button to check if the client details are already on the DB. if yes, the inquiry form shows up. if No, a modal page (that have clients form) pops up to allow inserting the details of the client in items that have Database Column Source . but since we have already inserted the mobile number in the the first step.. I do not want to insert them again in the client form.
Regards,
Fateh -
HOW CAN I SET AN ITEM LENGHT IN CODE !!!
hi
i want to set an item lenght by code!!!! and not by using " property palette". i want to use it in the pre-insert/update trigger . i tried to use "set_item_property" but i didnt find any parameter that can solve my problem.
Please help me it is very important .
thanks .i will try to explin myself i want to let the user to enter only 40 characters despite the fact that the text item can get up to 70 char ( the text item is based on DB column that is varchar2(70)) and i want to limit the user to 40 char because i take the item he updated or insered from the oracle DB and load it to another DB there the same column is in type varchar2(40) and i want to limit the user insted of substructing the string he is inserting.
-
Delivery completed" indicator cannot be set for item 00001
Hi all,
I have done a inter company stock transfer order , with respect to that Order I made Outbound delivery and posted GR with respect to outbound delivery. I have done MIRO for PO for all the Item ,
Now I need to return some material to supplying plant for some reason, I tried to make GR (MIGO) against the same outbound delivery with movement type 122. the document is posted but when I tried to make complete delivery indicator it does not allow me to do so .
it says me
Delivery completed" indicator cannot be set for item 00001
Message no. 06 848
Diagnosis
You have set the "delivery completed" indicator for a stock transfer item.
system Response
You can only set the "delivery completed" indicator in stock transfer items if
o the sum of the goods issue quantities in the supplying plant equal the sum of the goods receipt quantities in the receiving plant.
o the sum of the delivery note quantities is equal to the sum of the goods receipt quantities.
Regards,
Dhilipan.I dont think you need to set "delivery completed" indicatory while returning from one plant to another.
For example : You ordered 100 qty. and you are receving only 80 Qty. and you don't expect any receipts anymore. in this case you want to close the open purchase order with delivery completed indicator.
But while returning to vendor or to another plant you are not referring the P.O directly and hence you dont need "delivery completed indicator' -
Trying to programmatically set the data-source for a Crystal reports report.
I've got the following existing procedure that I need to add to in order to programmatically set the data-source (server, database, username, and password) for a Crystal reports report.
I added the connectionInfo parts, but can’t figure out how to attach this to the existing
this._report object.
This is currently getting the connection data from the report file, but I now need to populate this connection data from a 'config.xml' text file.
Am I trying to do this all wrong?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CrystalDecisions.CrystalReports.Engine;
using WGS.Reports.Reports;
using CrystalDecisions.Shared;
using WGS.Reports.Forms;
namespace WGS.Reports
public class ReportService
ReportClass _report;
ParameterFields paramFields;
ConnectionInfo connectionInfo; // <- I added this
public ReportService()
public void DisplayReport(string reportName, int allocationNo)
if (reportName.ToLower() == "allocationexceptions")
this._report = new AllocationExceptions();
PrepareConnection(); // <- I added this
PrepareAllocationExceptionReport(allocationNo);
this.DisplayReport();
private void PrepareConnection() // <- I added this
//test - these will come from the config.xml file
this.connectionInfo = new ConnectionInfo();
this.connectionInfo.ServerName = "testserv\\test";
this.connectionInfo.DatabaseName = "testdb";
this.connectionInfo.UserID = "testuser";
this.connectionInfo.Password = "test";
this.connectionInfo.Type = ConnectionInfoType.SQL;
private void PrepareAllocationExceptionReport(int allocationNo)
this.paramFields = new ParameterFields();
this.paramFields.Clear();
ParameterField paramField = new ParameterField { ParameterFieldName = "@AllocationNo" };
ParameterDiscreteValue discreteVal = new ParameterDiscreteValue { Value = allocationNo };
paramField.CurrentValues.Add(discreteVal);
paramFields.Add(paramField);
private void DisplayReport()
frmReportViewer showReport = new frmReportViewer();
showReport.ReportViewer.ReportSource = this._report;
showReport.ReportViewer.ParameterFieldInfo = paramFields;
showReport.ShowDialog();
showReport.Dispose();
Any help would be much appreciated.Hi Garry,
Please post SAP Crystal Reports questions in their own forums here:
SAP Crystal Reports, version for Visual Studio
We don't provide support for this control now. Thanks for your understanding.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Maybe you are looking for
-
Web page is not fully displayed in FireFox, but Chrome
Recently, I have made some changes to my company website, actually just the images of our team. <br /> The size of the image before is 130x130 but we changed it to 127x170.<br /> Everything worked good on localhost but then I uploaded it to the serve
-
SetupEngine.exe has stopped working - FP3 Explorer
Hi All, When we try to apply Explorer FP3 the installations process stops, and we get the following error during installation. Does any know how to solve this error and what causes this problem? Problem signature: Problem Event Name: APPCRASH
-
Different between Customer requirement and Sales Order.
Hi, can any expert explain the Different between Customer requirement and Sales Order to me? Any help would be appreciated. Regards, Tiger
-
Where to find HR user's password?
Hi, I've installed Oracle DB 10g Personal edition. It is HR user and I'd like to use it, but I don't know the password.. Could anyone help me?
-
Acrobat XI Pro: Need to click twice on [File- Open] to get the filebrowser
Complete fresh install Click on File->Open once: get an empty filebrowser Click on File->OPen twice: filebrowser is visible.