How to get values and not index in case of SOC?
I have created a SOC and i need the values in the bean on valuechange event which are present in the dropdown(i.e 20,50,100). But in this case instead of value me getting the index value(i.e 0,1,2)
How can i get the values and not the index value.
Query which returns the value is as follow:
SELECT Id,CODE FROM table_name WHERE TYPE = 'ROWS' AND NVL(DISABLED_FLAG,'N') !='Y' ORDER BY TO_NUMBER(CODE)
<af:selectOneChoice value="#{bindings.Row.inputValue}"
label="#{uiBundle.ROWS}"
required="#{bindings.Row.hints.mandatory}"
shortDesc="#{bindings.Row.hints.tooltip}"
id="soc5" autoSubmit="true"
valueChangeListener="#{pageFlowScope.Bean.rangeChanged}"
binding="#{pageFlowScope.Bean.row}">
<f:selectItems value="#{bindings.Row.items}" id="si5"/>
</af:selectOneChoice>
Thanks in advance.
See if it helps:
http://mjabr.wordpress.com/2011/03/19/reading-the-selected-value-of-a-select-list-in-java/
Similar Messages
-
How to get calendars and notes from my iPhone into iCloud?
Hello all,
yesterday I got a new MacBook Pro Retina at work. This upgrade me to OSX 10.8 from 10.6, so I planned to use iCloud to sync my iPhone 5 and my Mac this way. So far I synced the devices manually via iTunes.
However, so far I only got Contacts to sync with iCloud correctly. Calendars and notes just don't do it, although their sync is turned on on the iPhone as well as on the Mac.
All my attempts to get it to work obviously destroyed the possibility to sync calendars via iTunes - after a sync there is just nothing showing up in Calendar. This is really bad as now I can only access my calendars via the iPhone.
Since my iPhone now contains the most recent calendar and note data the question is even more simple: how can I get these data from my iPhone into iClous so they will also sync with my Mac (and from then on on all devices)?
It doesn't work by just turning calendar sync on on the iPhone. When I do this, I now see two calendar groups "From my Mac" and "From iCloud". Great, but what I want is to replace "From iCloud" with "From my Mac".
I have already reset iCloud, but this didn't help either.
I'm close to desperation, so any hints are very much appreciated!
Thanks and best wishes,
Thomas.Solved - it was a general sync problem. Today I was not even able anymore to sync my calendars via iTunes. Problem and solution see https://discussions.apple.com/thread/5505069.
Best,
Thomas. -
i am trying to set up a chronosync between my laptop and desktop and i am being told by the good folks at chronosync that i am having an issue because i have an SMB connection and not an AFP connection.
they have provided pretty specific instructions on how to change this but i am feeling like a caveman trying to do this.
i /attempted/ to disconnect my macpro and my time capsule from the left pane under "shared" but this did not seem to work so i simply turned off the wifi. then i deleted my network passes in the login section of keychain and am in the Connect To Server section but all i am seeing is a "Favorite Servers" listed as "SMB://MyHomeFolderNameOnMyMacPro.
my understanding is that i am supposed to find an AFP connection.
so now i am looking in the little gear icon for recent servers (there is one named "Mirch's Computer" in there which seems odd...) anyway can i CLEAR these recent servers and ADD my MacPro as AFP or what am i doing here?
thanks...Confirm that you have "Share files and folders using AFP" set in the Options in the File Sharing section of the Sharing system preference. Then use the Go To Server and try:
AFP://servername/sharename
For more information, see:
http://support.apple.com/kb/PH3748
Regards. -
How to get value and name of the n'th parameter in a pl/sql funct./proced.
procedure test(name varchar2, birthdate date, zip number, country varchar2);
in procedure x I do
test('Michael Postmann', to_date('03.01.1983', 'DD.MM.YYYY'), 7461, 'AUSTRIA');
And this should htp.print the following:
test: name=Michael Postmann,birthdate=1983/01/03,zip=7461,country=AUSTRIA
In procedure test I want to know:
*) What is the name of myself (the procedure)
*) Optionally: Am I a procedure or a function?
*) How many Parameters do I have?
*) What are the values of them?
*) What are the names of them?
*) Optionally: What are the types of them?
What I actually want to do is:
I have a procedure for logging errors. So in my program I call this function frequently and I want it to log the current time, a string passed to the logging function, the client's ip, etc.... but it should also log a list of the parametrs and values of the procedure/function where the error occoured.
Is there any way to do this (I think in C this is done by argc and argv, but a string containing all the information (as you get it from the WebDb when something goes wrong) would be enough)?
Thx in advance,
Nomike aka Michael PostmannName of procedure or function can be retrieved using DBMS_UTILITY.FORMAT_CALL_STACK:
CREATE OR REPLACE FUNCTION fn_whoami (v_in varchar2)
RETURN varchar2
AS
v_stack varchar2(1000) DEFAULT DBMS_UTILITY.FORMAT_CALL_STACK;
v_job varchar2(500);
v_name varchar2(100);
BEGIN
v_job := SUBSTR(v_stack,INSTR(v_stack,'function'),256);
v_name := SUBSTR(v_job,1,INSTR(v_job,CHR(10))-1);
return v_name;
END fn_whoami;
select fn_whoami('1') from dual;
CREATE OR REPLACE PROCEDURE pr_whoami
AS
v_stack varchar2(1000) DEFAULT DBMS_UTILITY.FORMAT_CALL_STACK;
v_job varchar2(500);
v_name varchar2(100);
BEGIN
v_job := SUBSTR(v_stack,INSTR(v_stack,'procedure'),256);
v_name := SUBSTR(v_job,1,INSTR(v_job,CHR(10))-1);
dbms_output.put_line(v_name);
END pr_whoami;
exec pr_whoami; -
How to get updateable and not updateable rows in a single GridControl
Hi,
i am using a gridControl based on an objectView "customer" with the attributes "cust_nr, cust_name, cust_updateable".
If customer data is updateable or not updateable set by the flag cust_updateable (true or false).
When the cust_updateable=false the user should not be able to update customer data in this row.
When the cust_updateable=true the user should be able to update customer data in this row.
Anyone who can help me?
Thanks !
nullThree possibilities come to mind:
If you want to manage this at the Application GUI level: If you want to prohibit them from ENTERING into a cell or EDITING a cell in the row, that's a different issue. ( I like blocking problems as early as possible ). I can see how one would do that with their own TableModel ( isCellEditable method, set FALSE if you do a getValueAt(thisRow,editableIdx)=="Y" or somesuch ). That might be a direction you might want to research and see if it is possible to do something like that with a gridControl. ( And post what you find! )
If you want to handle it at the DBA level: You might also look at "virtual private databases" in the Oracle dbms. Again, those rows would be trapped at commit time rather than "verb" time ( on the application screen ). The nice thing about that is that it protects the table against ALL comers, not just those that are going through a middle tier.
Your best bet if you want to follow the BC4J framework level: go into the Entity/ View Object impl and find the setMyAttribute method, and check the appropriate cust_updateable attribute ( in the same EO/VO ) and fire an exception. That'll trap it at data entry time, as well, and if you try and set it programmatically your try/catch block will fire up.
Good Luck
null -
How to get value in a web page automatically and sava output in database
how to get value this table output is
row 1, cell 1
row 1, cell 2
row 2, cell 1
row 2, cell 2
<table border="1">
<tr>
<td>row 1, cell 1</td>
<td>row 1, cell 2</td>
</tr>
<tr>
<td>row 2, cell 1</td>
<td>row 2, cell 2</td>
</tr>
</table>Note: This thread was originally posted in the [Java Technologies for Web Services|http://forums.sun.com/forum.jspa?forumID=331] forum, but moved to this forum for closer topic alignment.
-
i installed new OS to my IPhone 4 and now phone gets hangs and not able to type or chat .. how to resolve it now
Try a reset to begin with. hold down the Sleep and Home key until Apple logo appears on the screen.
Regards,
Steve -
How to get the current slide Index or Id?
I can get the selected slide of presentation use blow method.
Office.context.document.getSelectedDataAsync(Office.CoercionType.SlideRange, function (asyncResult) {
if (asyncResult.status == Office.AsyncResultStatus.Failed) {
write('Action failed. Error: ' + asyncResult.error.message);
else {
write('Selected slides: ' + JSON.stringify(asyncResult.value.slides));
But, How can I get the executor slide?Hi,
>> How to get the current slide Index or Id?
In my option, when you select a slide, it change to current slide. So, you could use the getSelectedDataAsync method to get the current slide, and then get the index or id by using the Slice object. You could refer the link below for Slice Object.
# Slice.index property (JavaScript API for Office)https://msdn.microsoft.com/EN-US/library/office/jj715285.aspx?f=255&MSPPError=-2147217396
Some key code as below:
<script>
function getText() {
Office.context.document.getSelectedDataAsync(Office.CoercionType.SlideRange,
{ valueFormat: "unformatted", filterType: "all" },
function (asyncResult) {
var error = asyncResult.error;
if (asyncResult.status === Office.AsyncResultStatus.Failed) {
write(error.name + ": " + error.message);
else {
// Get selected data.
var dataValue = asyncResult.value;
write('Selected data is ' + dataValue.slides[0].index);
// Function that writes to a div with id='message' on the page.
function write(message) {
document.getElementById('message').innerText += message;
</script>
>> How can I get the executor slide?
What do you mean by this? Is this a new issue which is different from the above issue? If so, I will recommend you post a new thread for this issue and share us more information about this.
Best Regards,
Edward
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. -
How to get gui_download and gui_upload with popup filename?
how to get gui_download and gui_upload with popup filename?
Here is a short example.
report zrich_0003 .
data: ifiletab type filetable.
data: xfiletab like line of ifiletab.
data: xstring type string.
data: rc type i.
data: itab type table of string.
data: xtab type string.
start-of-selection.
call method cl_gui_frontend_services=>file_open_dialog
changing
file_table = ifiletab
rc = rc.
read table ifiletab into xfiletab index 1.
xstring = xfiletab-filename.
check not xstring is initial.
call method cl_gui_frontend_services=>gui_upload
exporting
filename = xstring
changing
data_tab = itab.
loop at itab into xtab.
write:/ xtab.
endloop.
Regards,
Rich Heilman -
How to get value of html combo box (i.e select) in jsp?
Hello,
I was just wondering how to get value of html combo box in jsp page. My code for combo box is:
<select name="combo" size="1">
<%
List<Project> projects = mgr.getProjects();
for(Project project : projects){
%>
<option value="<%= project.getId()%>"><%= project.getName()%></option>
<%
%>
</select>
I thought combo.value might give me the value, but it throws exception.
Any help is appreciated.
Thanks.The combo does not exists in Java, but only in HTML. You have to submit the form containing the combo and then use request.getParameter("combo") to get it's value ;-)
-
How to get value of a textfield which has been set as Renderd false.
Hi all
how to get value of a TEXTFIELD which has been set as Renderd false.
i am getting the value of this textfield from an lov but dont want to show it to the user.
getting error as:
attribute xxxx required for view object yyyyy.
pls help
naveenYou can create item inside your LOV region, set the item style to formValue. You can associate this to a View Object field. It can also act as mirror of any other text input field.
FormValue can hold the value and will not be diaplyed to user. You can read value from it controller
example
OAFormValueBean orgValue = (OAFormValueBean)webBean.findChildRecursive("OrgIdFormVal");
Or you can read it fro the VO associated with this form value. -
Hi, i have created some site collection columns with managed metdata and taxonomy term sets. I have then created some site content types of those site columns. Some of them function properly and some don't.
When i have created or uploaded a document to the document library i start to "tag" the document by first choosing witch conent type i want too use, but when it comes to save the document it renders an error message(its not the full content
of the message):
"exception message, failed to get value, could not load managed metadata, invalid field name"
I have created some other site content types before and with the same site columns and they do not generate a error message. Is there a solution for my dilemma?try these links:
https://prashobjp.wordpress.com/2014/02/14/failed-to-get-value-of-the-column-name-column-from-the-managed-metadata-field-type-control-see-details-in-log-exception-message-invalid-field-name-guid-site-url/
http://www.sharepointconfig.com/2011/03/issues-provisioning-sharepoint-2010-managed-metadata-fields/
http://blog.goobol.com/category/sharepoint/sharepoint-issue-troubleshooting/
http://www.instantquick.com/index.php/correctly-provisioning-managed-metadata-columns?c=elumenotion-blog-archive/random-whatnot
https://pholpar.wordpress.com/2010/03/03/taxonomy-issues/
Please mark answer as correct if it is correct else vote for it if you find it useful Happy SharePointing -
How to get values/data stored in the database into a list-item.
how to get values/data stored in the database into a list-item.
i tried to make a list item without any values assigned to it...but i got the below error.
FRM-30191: No list items defined for required poplist.
or
FRM-32082: Invalid value for given item type.
List EMPNO
Item: EMPNO
Block: EMP
Form: MODULE5
FRM-30085: Unable to adjust form for output.
then according to some docs, i tried the the following for the trigger
when-new-form-instance
declare
rg_name varchar2(40) := 'emp_rec';
status number;
groupid recordgroup;
it_id item;
begin
it_id := Find_Item('empno');
groupid := create_group_from_query(rg_name, 'select empno from emp');
status := populate_group(groupid);
populate_list(it_id, groupid);
end;
but yet didnt work... :(
so how the heck do i get values fetched from the database table into the list item?for list items you need to values in the record group, one is the shown value and one is the returned value.
Check out the online help for the populate_list built-in.
You'll need something like select ename,ename from emp as the record group query. -
How to get value in showModalDialog()
Hi,
I would like to know how to get value pass into showModalDialog() to be used by the server (using request.getParameter())
TQplease try out this kind of code
<script language="javascript">
function trial(){
var retVal = new Object();
retVal = ShowModalDialog("ur JSp");
</script>
<script>
<form >
<input type="hidden" name ="mylink "value= javascript:trial();>
</form>
<%
String str=request.getParameter("mylink");
%>
and plz let me know .. if it works -
How to get value of URL parameter
Hi,
If an ABAP Web Dynpro URL looks like this: http://<server>:<port>/sap/bc/webdynpro/sap/zny_test1?sap-client=100&sap-language=EN, how to get value of the URL parameter sap-client at runtime in the application?
Thanks,
NancyThe framework currently strips all the framework specific params.
Perhaps the will be made available in a future release. Thomas, any comments ?
However, I dont understand the requriement to know the sap-client URL value.
If your code is running, a user has successfully connected to system a therefore he has a session open and this session is associated with exactly 1 client at any point in time.
See SYSTEM VARAIBLE SY-MANDT.
this represents the client in which the users session is running and negates the need to see
sap-client URL value.
regards
Phil.
Maybe you are looking for
-
How can I use a USB camera with cRIO 9022. Please see my strange problem.
Hi, I would like to use a USB camera with NI cRIO 9022. I used the same USB camera with NI USB 6216 DAQ device and developed a VI(within a PROJECT and outside it). So, It is working fine with NI USB 6216 device when I use the Vision Assistant
-
How to insert page in Pages 5 document?
In previous versions of Pages, inserting a new page into an existing document was a trivial operation. In Pages 5, it's a total mystery. I opened a template containing text and images and played around with it to familiarize myself with the Pages 5;
-
Cant reply to an email when there is an attachment....
pop up warning states "A copy has been placed in your outbox. The recipient "%@" was rejected by the server because the user is unknown". It only seems to be an issue if there is an attachment and not connected to Wifi. Also, if I switch email accou
-
File encoding of database package
Hi, I copied a dabase package and package body from an online database to an offline database. The package contains a procedure with a name, which contains a german umlaut. This umlaut character is not displayed correctly in the editor, because the f
-
Why isn't the original iPad not being updated to ios 6