Access values inside the declarative part uploading
HIEI created a declarative component in 11g. I exhibited an attribute counter in my computer.
So I can get and set this value on a label in my component as #{attrs.counter}
The questions is to say I have a requirement to change the value of the counter based on logic and then post it so how to do this?
I have exposed a java class during the creation of the declarative component but could not find how to read what #{attrs.counter} inside this java class.
Vik
Vik,
Maybe the [blog of Frank Nimphius | http://thepeninsulasedge.com/frank_nimphius/2008/06/26/how-to-access-attributes-of-a-declarative-component-from-a-managed-bean/] help
Timo
Tags: Java
Similar Questions
-
Is shuttle - possible to print values in the second part of the shuttle
Shuttle took 2. parts. Is it possible to also load values iin database part of the shuttle at the beginning? For example the user sees in the first part of the books of the shuttle of database he loves, and in the second part of the shuttle books that he dislikes database. It could pass the books from one to the other part of the shuttle. Is this possible?Hello
I set up a page the demo of the functionality you need: [http://htmldb.oracle.com/pls/otn/f?p=22619:4]
This is based on the following tables:
EMP
EMPNO pk
ENAMEBOOKS
BOOK_ID pk
BOOK_NAMEEMP_BOOKS
EMP_BOOK_ID pk
EMPNO fk
FK BOOK_ID
DATE_OUTWhat I did is:
1 created a Select list with Submit called P4_EMPNO to allow you to choose an employee. The SQL code for this is:
SELECT ENAME d, EMPNO r FROM EMP ORDER BY 1
I have disabled the use of null values or extra.
2 created a calculation before header which is subordinated to the P4_EMPNO = NULL, makes:
SELECT EMPNO FROM EMP WHERE ENAME = (SELECT MIN(ENAME) FROM EMP)
This just ensures that P4_EMPNO has a selected value when the page is loaded for the first time.
3 created a shuttle component called P4_BOOKS that has a SQL query to:
SELECT BOOK_NAME d, BOOK_ID r FROM BOOKS
Note that I list all THE books here
4 created a PL/SQL process that runs without condition "on the load - before the heading" with the following code:
DECLARE vBOOKS VARCHAR2(100); vSEP VARCHAR2(1); BEGIN vBOOKS := ''; FOR C IN (SELECT BOOK_ID FROM EMP_BOOKS WHERE EMPNO = :P4_EMPNO) LOOP vBOOKS := vBOOKS || vSEP || C.BOOK_ID; vSEP := ':'; END LOOP; :P4_BOOKS := vBOOKS; END;
This creates a string delimited by colon BOOK_ID values already selected for the current user and sets this string P4_BOOKS. The BOOK_IDs in this string, then say the features of the shuttle to move the items in the list on the right - then, all that is left in the list on the left is not selected for the user (so is your NOT IN)
5. I have a button on the page called P4_SUBMIT_BUTTON that submits the page and redirects to page 4
6 - Finally, I have a PL/SQL process that runs on submit, triggered by the submit button and has the following code:
BEGIN DELETE FROM EMP_BOOKS WHERE EMPNO = :P4_EMPNO AND ':' || :P4_BOOKS || ':' NOT LIKE '%:' || BOOK_ID || ':%'; INSERT INTO EMP_BOOKS (EMPNO, BOOK_ID, DATE_OUT) SELECT :P4_EMPNO, BOOK_ID, SYSDATE FROM BOOKS WHERE ':' || :P4_BOOKS || ':' LIKE '%:' || BOOK_ID || ':%' AND BOOK_ID NOT IN (SELECT BOOK_ID FROM EMP_BOOKS WHERE EMPNO = :P4_EMPNO); END;
It removes the books of the EMP_BOOKS table for the employee, where they have been deselected (that is to say, inserted in the list on the left). It inserts then the books in the EMP_BOOKS table for the employee where the books appear in the right list BUT not included in the table EMP_BOOKS.
And that's all!
Andy
-
Link inside the declaration of nat in outermost interface ERROR
Hi all
I'm having a problem with my PIX501 w / "Cisco PIX Firewall Version 6.3 (4)", when ordering I get this caveat, is that normal? because it works perfectly fine in version 7.2 (2)...
THE ERROR:
PIX1 (config) # nat (outside) 1 222.127.244.52 255.255.255.252
WARNING: Link inside the nat in outermost interface declaration.
WARNING: Keyword 'outside' is probably missing.
REFERENCE:
# Sh nameif PIX1
ethernet0 nameif outside security0
nameif ethernet1 inside the security100
In addition,
Here is information on the 'outside' of the order PIX 6.3 setting
outdoors
If this interface is on a lower security interface that you identify by the corresponding overall statement, you must enter on the outside. This feature is called outside NAT or bidirectional NAT.
Note from firewall PIX 6.3.2 source translation is performed before the translation of destination. For this reason, if the political source NAT allows the connection, the xlate will create, even if the traffic is denied by the policy of destination.
Source:
http://www.Cisco.com/en/us/docs/security/PIX/pix63/command/reference/Mr.html#wp1032129
Don't forget to mark the answer as the correct answer or useful rate answers
-Jouni
-
Select the value inside the digital
For more convenience, I would that the behavior of my digital controls for automatic selection the entire value when I click on the control. So when it gets the focus, the value should be selected.
I don't see a way to do this. Any ideas? The increment on a digital buttons will select, but these data types that I put to float. Then increment does not much sense. In my case, I the user perforation in values with the keyboard. It would be nice to not have to select the 0.000 already present before data entry.
Thoughts?
@gdargaud: with a small modification of your idea can work!
Just to simulate a House + shift - end event to select text:
If (event == EVENT_GOT_FOCUS) {}
FakeKeystroke (VAL_HOME_VKEY);
FakeKeystroke (VAL_SHIFT_MODIFIER |) VAL_END_VKEY);
}
This is valid for text and digital controls.
-
How to extract the values inside the jquery element dialogue modal rigion
Hi all
My requeriment is
Click report link open jquey editable modal dialog and display all values with respective ID values.
1.I used page header HTML code below
< link rel = "stylesheet" href = " " http://AJAX.googleapis.com/AJAX/libs/jQueryUI/1.7.2/themes/
"Redmond/jquery - ui.css" type = "text/css" / >
" < script src =" http://AJAX.googleapis.com/AJAX/libs/jQuery/1.4.2/jQuery.js "> < / script > .
" < script src =" http://AJAX.googleapis.com/AJAX/libs/jQueryUI/1.7.2/jQuery-UI.js "> < / script > .
< script type = "text/javascript" >
$(function() {})
() $('#ModalForm').dialog
{
modal: true,
autoOpen: false,
Width: 600
buttons: {}
Back: function() {}
closeForm();
} ,
Approve: function() {}
addPerson();
},
Return_For_Correction: function() {}
addPerson();
},
Reject: function() {}
addPerson();
}
}
});
});
function openForm (TrxId)
{
Alert (TrxId);
$s ('P3_x_trx_id', TrxId);
$('#ModalForm').dialog ('open');
}
function closeForm()
{
$('#ModalForm_input[type="text"]').val (»);
$('#ModalForm').dialog ('close');
}
function addPerson()
{
var ajaxRequest = new htmldb_Get (null, & APP_ID., 'APPLICATION_PROCESS is updateStatus', 0);
ajaxRequest.add ('P3_status', $v ('P3_status'));
var gReturn = ajaxRequest.get ();
If (gReturn)
{alert (gReturn)}
on the other
{ajaxRequest = null;
closeForm();
doSubmit ('SEARCH'); }
}
< /script >
2. static html Id - ModalForm region
3. region html Header-
< div id = "ModalForm" title = "View details" style = "display: none" >
4.footer-
< / div >
5. in the same page created 'extraction of line auotomatic' process by using the value of key PK P3_trx_id
6 Jquery modal region is created but not showing values.
Hi Dan,.
You must create a separate page for your modal dialog box,
Call this dialog in the parent page and pass the value modal page in some hidden item and use the value of the element to retrieve details on the modal dialog box.
1. change your report Page-> under the header HTML
2. change the link from which column you want to call the modal dialog box.
Target: URL
URL: javascript:f_modalDetails(#ID#);
instead ID, pass the value that you want to pass to the modal dialog box that shows you the data associated with the selected line.
3. go to the page of the form (modal dialog)
Change your close button that closes the modal dialog box.
Action: Redirect URL
Target URL: javascript:window.parent.closeModalDialog();
Close the Model dialog box using the "submit" button press
4. create a branch on the processing section of the Page of the page of the modal dialog box
Branch point: After Processing (After computation, validation and Processing)
Target type: Page of this Application
Page: Redirect to the same page
Request: CLOSE_MODAL
When you press the button: select the Send button
NOTE: Branch must be before all the unconditional branch on this page
5. create a dynamic Action on the Page modal dialog box
Event: Page load
Action: Run the JavaScript Code
Code: javascript:window.parent.closeModalDialog();
Kind regards
Jitendra
-
How to display only the total value in the upper part of the chart stacked
Hi all
I need to display only the total value at the top of the stacked chart in the report of obiee 11g. Can someone help me on this please.
Thank you
Hello
Will be a little different approach suit you like the below a? Total for a day is displayed next to the attribute of the day. Here, the "daily amount" is also an attribute instead of a measure.
-
Hello world
My application has a HTTP connection to retrieve the XML stream and insert data to the ListView using DataSource and DataModel, and I want to hear at each of its ListView ListItem is created and completely to use a ListItemData for my c++ object. So I write my code like this
In main.cpp
int main (int argc, char * argv)
{
App app (argc, argv);
new MyApp (&app);)
returnApplication::exec();
}
In MyApp.cpp
MyApp::MyApp (bb::cascades:Application * app): //constructor
{QObject (app)}
QmlDocument * qml = QmlDocument::create("asset:///main.qml").parent(this);
QML-> setContextProperty ("app", this);
AbstractPane * stream = qml-> createRootObject
) App-> setScene (NCA);
}
void MyApp::doMyFunction (const QString & someData) {}
qDebug()< "yes!!="">
}
In main.qml
{Page}{Of container
{To ListView
dataModel: myDataModel
listItemComponents:]
{ListItemComponent}
type: 'point '.
{Of container
onCreationCompleted: {}
Console.log ("-LISTITEM ONCREATION COMPLETED");
app.doMyFunction (ListItemData.someData); //< but="" console="" print="" about="" "can't="" find="" variable="" "app"="">
}
}
}
]
} //end listview
} //end container
onCreationCompleted: {}
myDataSource.load ();
}
attachedObjects:]
{GroupDataModel}
ID: myDataModel
},
DataSource {}
ID: myDataSource
Source: "some URLs to get RSS... blah blah."
type: DataSource.Xml
onDataLoaded: {}
myDataModel.clear ();
myDataModel.insertList (data);
}
]
}
I try to run mycode. But a console is printed on "can't find variable: app". " How can I solve this problem?
Thanks for any suggestions.
MAZIts because the listitem is not in the same document as the Page tree really, he lives with ListView and does not have direct access to the elements of the Page.
What you can do is create a javascript function in the ListView, and then the listitemcomponent facing, which in turn can relay to your environment variable "app."
int listitemcomponent add id: itemContainer your container can
itemContainer.ListItem.view.someFunctionDefinedInTheListView (data)in the listview:
function somefunctiondefinedinlistview (data) {}
app.doMyFunction (data)
} -
Calculated value in the upper part of the table?
Hello
I am writing a report from scratch to use E-Business Suite. I created my definition of data and model RTF, but am struggling with a requirement of the company on the model.
We have a tabular report that has some data. The company now want a calculated value that can be displayed on the report, but they want it at the top of the report, rather than the end. So I need to make the report (because then the variables from the report are filled and the calculation is done) but then display the result of this before the report. Is this possible? Pointers are appreciated.
Thank youLooks like that
>
>
has for each
Try to sthcount(PART_NUMBER)
-
If you select a value inside the brackets
IM using oracle 10g.
Does anyone know to select a value in a parentheses?
For example, my data looks like
Column1
----
test (name1)
Test2 (name2)
test3 (Name3)
I only take values outside parentheses. the only thing I've found is select substr, but im do not know how to use it
Published by: Jay on July 26, 2012 07:17Maybe this:
SQL> with my_tab (column1) as ( 2 select 'test (name1)' from dual union all 3 select 'test2 (name2)' from dual union all 4 select 'test3 (name3)' from dual 5 ) -- end of sample data 6 select column1, substr(regexp_substr(column1, '[(][^)]*'), 2) str 7 from my_tab; COLUMN1 STR ------------- ------------ test (name1) name1 test2 (name2) name2 test3 (name3) name3
-
Can't access Table inside the stored procedure
Pls Me suggest good way
The problem that I face that I created a user user1 and create a global temporary table under that user. Then I "select" Developer sql query this time under another user (User0) as select * from user1.gtt_table; successfully, it runs and return results. also can also insert data into user1.gtt_table.
But if I try to use Insert or select user1.gtt_table and error
- Error (798,29): PL/SQL: ORA-00942: table or view does not exist
am I something wrong or missing any step?
Connect as user1 for this.
-
How can I access methods inside the content of the loader?
I posted a similar question in the General Discussion, but, when I insert a SWF with the Loader class, how do you get variables and methods on this SWF? Is this possible?var externalSWF:MovieClip = _loader.content; or _loader.getChildAt (0);
externalSWF.whatever ();If it's an external swf and you do not know the type, you can either have the external swf extend a package in your calling swf file or use:
var fn:Function = externalSWF ["somefunctionname"];
FN. Apply (externalSWF, [param1, param2]) -
Access the values of the checkboxes unchecked in a report.
Hi all
I have a report to track the attendance of students in classes.
The report has values from several tables, including students, class, object, class_meeting etc.
The report includes all students enrolled in the class and it has a check box field that is used to determine whether or not they were present at the meeting of specific class.
The box is the student_id column and it is checked when the 'present' field is 1 and unchecked when the 'present' field is 0, it is implemented like this:
apex_item.checkbox2(1, student_id, DECODE(present, 1, 'CHECKED', null))
According to the documentation of the api.
I also created a submit to the process that looks something like
FOR I in 1..APEX_APPLICATION.G_F01.COUNT LOOP UPDATE class_meeting SET present = 1 WHERE student_id = APEX_APPLICATION.G_F01(i); END LOOP;
So far so good. What I want to do is, say that the Professor opens the new report and uncheck one of the students, and submits the page, how can I set up "presents" to 0 for the uncontrolled student?
The main issue which I suppose is, how to access values of the boxes unchecked, with one subject to the process.
It will fail. Unchecked the boxes DO NOT send a value in session state. For example 10 students-> 10 records in table f01. Checked the file 3-> 1 plug in f02 array with the value 1. Pretty useless.
Keep the boxes to tick with the PK as a value AND add an element hidden with the student ID. In this way, you can associate the boxes up to the correct record.
A way to deal with the other, now unchecked, check boxes, would probably be to update records for current is set to 0 and then update the records for which the boxes have been checked.
BEGIN -- set all students as not present before setting those who were update class_meeting set present = 0 where meeting_id = PX_MEETING_ID; -- The meeting has a PK of its own I suppose. -- Array F01 = checkbox, student IDs FOR i in APEX_APPLICATION.G_F01.COUNT LOOP update class_meeting set present = 1 where student_id = APEX_APPLICATION.G_F01(i); END LOOP; END;
Moreover, the student ID, then in this loop loop see if you can match the ID with a record in the table of the checkbox. If you can: submit, if you can't find any: absent.
DECLARE l_found BOOLEAN; BEGIN -- Array F01 = student IDs -- Array F02 = checkbox, student IDs FOR i in APEX_APPLICATION.G_F01.COUNT LOOP l_found := FALSE; FOR j IN APEX_APPLICATION.G_F02.COUNT LOOP IF APEX_APPLICATION.G_F02 = APEX_APPLICATION.G_F01(i) THEN l_found := TRUE; EXIT; END IF; END LOOP; IF v_found THEN update class_meeting set present = 1 where student_id = APEX_APPLICATION.G_F01(i); ELSE update class_meeting set present = 0 where student_id = APEX_APPLICATION.G_F01(i); END IF; END LOOP; END;
-
restrict the value of the column
Hi all
public void insert()
{
InsertVOImpl vo = getInsertVO();
Emptyrow = (InsertVORowImpl) vo.createRow () InsertVORowImpl;
vo.setMaxFetchSize (0);
VO. Last();
VO. Next();
vo.insertRow (emptyrow);
vo.setCurrentRow (emptyrow);
emptyrow.setNewRowState (Row.STATUS_INITIALIZED);
}
It is the NEW code button, when I am clicking on this new line will be created and I am filing the data as col1, col2, col3 and clicking the COMMAND CREATE button to create the new order number to this combination
and even once if I'm creating the same value for col1, col2, col3, I don't want to create the new order number
for example
col1, col2, col3 ord_no
1A 2 BB 1234
need to restrict when I am clicking on the NEW button with the same combo
Thank you
It seems that you can create several new lines at the same time. In this case, as I've suggested before checking procedure DB will not be a good idea. The example which I explained before will not work.
If you want to continue to move forward with this approach, instead of throwing the error inside the loop, add countervariable before the loop, increment the value inside the loop if DB method returns ' no and continue the treatment. Once the loop is completed, based on the value of the counter yhe, raise the error.
Hope this helps
See you soon
AJ
-
How to set up the default value in the ADF option button?
Hi all
I use 11.1.6
I want to put the default value in the radio button (in the UI).
EX: I have a SelectOneRadio as sex
In these two values, one is male and secondly a woman.
I need to see the default value of the male part of the user interface.
I mean when the loading of the page it should show male is checked in the user interface part?
Someone help with this task?
Ok
So in your BinderSolutionsBean, you have an attribute called;
String scenType;
public String getScenType()...
What you need to do is to initialize scenType to rtb;
public BinderSolutionBean {}
String scenType = "rtb";
.
.
.
}
Hope this makes sense;
-
Extraction of values within the brackets():
HelloPlease, help me to overcome this problem.
I want to extract the value inside the caliper.
example:
place (Chennai.Mumbai, Delhi)
I want inside the support value which is chennai.mumbai, delhi.
I used replace Regualr expression but I can't.
Thank you
Elayaperumal
SQL > t
2 as
(3)
4. Select 'place (chennai.mumbai, delhi)' str
5 double
6)
7 select substr (str, instr (str, ' ('), instr (str, ' ') ' ' ')-instr (str, ' (()) + 1) method_1)
8, regexp_substr (str, ' \([^)] +-)', 1, 1) method_2
9, regexp_replace (str, ' ([^ ()] +) (\([^)] +)', "\2") method_3
10 t;METHOD_1 METHOD_2 METHOD_3
---------------------- ---------------------- ----------------------
(chennai.mumbai, delhi) (chennai.mumbai, delhi) (chennai.mumbai, delhi)SQL >
Maybe you are looking for
-
I just upgraded to Firefox on Ubuntu 14.04/64 bit 38. Before the upgrade, all Web pages that are displayed perfectly normally. Now, v 38, the default zoom is very large. I have to ctl-less every webpage I visit for the zoom down to a normal size...In
-
HP Pavilion dv6000 will not stay
HP Pavilion dv6000 does not load
-
Portege M780-106 - the mouse pointer position of the stylus trolling
Question re Toshiba portege M780-106 touch screen laptop:We have a problem with the mouse, the position of the stylus trolling. This gap considerably increases the speed of the increase in movement of the stylus.As we had a task of monitoring with th
-
Satellite L840/020 - need to re - install ATI Catalyst Control Center win 8
I get a message from the program compatibility Wizard the I need to reinstall ATI Catalyst Control Center. I went to their website and it said computers laptop Toshiba would need to get this information from Toshiba.I can't find this download. My gra
-
HP Pavilion Sleekbook 14 battery care tips-
Hello Only now, it occurs to me that I need to be very careful on keep the battery of my HP Pavilion Sleekbook 14 in good condition in the long run. Exactly how should I take care of my Pavilion 14 battery? I use it mostly at home, I need to detach t