POPUP TO GET VALUE
Hi, I need to show a popup that lets write a value.
I've tried POPUP_GET_VALUES function, but I need to write the text to show, not the description of the field. With POPUP_GET_VALUES I inform a field from a table and when the popup appears, it shows the description of the field. I need a popup where I can write the description and retrieve the data entered.
For example, I'd like to show a popup with the question: What's your name? and a textbox where the user can write the answer, does it exist?
Thanks!
Carles
Or, how about this, although it is not very elegant.
data: value type spop-varvalue1.
call function 'POPUP_TO_FETCH_ONE_VALUE'
exporting
textline1 = 'What is your name?'
* TEXTLINE2 = 'Can you tell me please?'
* TEXTLINE3 = ' '
title = 'Question'
valuelength = '30'
importing
* ANSWER =
value1 = value
exceptions
titel_too_long = 1
others = 2.
Regards,
Rich Heilman
Similar Messages
-
POPUP FM to get values from a table control?
I know about the FM POPUP_GET_VALUES to get one or more values from a popup dialog box. I would like to find a similar FM that allows getting values from a table control or something that allows entry of multiple lines of values. Is there such a thing, or do I need to write my own?
it depends on what values you want to enter, better write your own to have a control on the function.
-
How to open a popup and get some data from a model class
Hi experts,
mi problem is the next.
I am opening a popup from a view that is controlled by a controller named identificador.do, the controller class is z_identity_cl.
the window that is opened is other view controlled by nocupentes.do, with a controller class, z_nocupantes_cl.
In the do_init event of the z_nocupantes class i have added the next code:
<i> DATA: cl_parent TYPE REF TO Z_IDENTtity_CL.
Recuperamos el atributo parent
cl_parent ?= me->m_parent.
model is the class i want to recover, it is defined in the attibutes of the class z_identity_cl
model ?= cl_parent->get_model( 'mo' ).</i>
When i open the popup i get the next error:
<i>BSP exception : the object numero_ocup.htm(this is the page i want to open) in URL sap/ZHR_PDWEB_GDPT/numero_ocup.htm is a view. Initialize the controller.</i>
what do i have to do?
any help?
thanks in advanceHi Eduardo,
you should be calling the Controller in the URL not the View. after calling the controlles in the URL create the view in the DO_REQUEST of the Controller. This should resolve the issue.
In the the DO_INIT define the Parent class of the Controller.
METHOD do_init.
DATA: lr_my_parent TYPE REF TO zcl_hr_main_control.
* set (MVC) model
lr_my_parent ?= me->m_parent.
set_model( model_instance = lr_my_parent->model
model_id = 'Z' ).
me->model = lr_my_parent->model.
ENDMETHOD.
method DO_REQUEST.
* datadeclaration
DATA: abs TYPE REF TO if_bsp_page.
* if input is available, dispatch this input to subcomponent.
* this call is only necessary for toplevel controllers.
dispatch_input( ).
* if any of the controllers has requested a navigation,
* do not try to display, but leave current processing
IF is_navigation_requested( ) IS NOT INITIAL.
RETURN.
ENDIF.
* output current view (create, set attibutes, and call)
abs = create_view( view_name = 'to_disp.htm' ).
* set attribute model if needed
abs->set_attribute( name = 'model' value = model ).
* call master views
call_view( abs ). "calls itself
endmethod.
Cheers
Amandeep -
Steve, "Simple JSF Popup List of Values Page " does not work..
Hi Steve,
I read "Not Yet Documented ADF Sample Applications" #80 : "Simple JSF Popup List of Values Page " and download SimpleADFBCLOVJSF.zip, but when I try to run the sample, I get this error :
JBO-33001: Cannot find the configuration file /xxx/common/bc4j.xcfg in the classpath
What is wrong ?
Thank you,
xtantoThanks for reporting this. I've uploaded a newer version of the zip file that fixes this issue.
It was due to a last-minute refactoring of my model project from having the application module living in a package named "xxx" to another package named "example.model" -
Refresh popup list of values javascript
I try to change value of popup list of values with javascript.
When i set it with javascript i get only return value visible in popup list of values (display). When i add refresh in dynamic action item is clean..and dont have any value..
How to set display and return value correctly...
Thanks...
Edited by: Nihad Haskovic on Jul 18, 2012 3:18 AMI am not sure if I understand your question, but if you want to show two display value columns you can use a concatenation, for example:
select raum||' - '||some_other_column display_value, raum return_value from standort order by 1
You can also build a custom popup LOV picker. If you wanted to have popup list of values that selected a number of columns and contained custom report filters you could do so by:
1. create a report page which queries the table you wish pick from
2. change the page template to be a popup lov style template
3. in the "Post Element Text" attribute put a link to the new popup page using javascript similar to: javascript:popupURL('f?p=&APP_ID.:10:&SESSION.')
( you may wish to wrap it around an image such as this one )
<img src="#IMAGE_PREFIX#htmldb/icons/view_small.gif" />
4. make one of the columns in your report a link to javascript to passback the value and close the popup window. A good example of this javascript can be viewed by viewing the HTML page source of the popup page finder which is linked from the APEX page definition page. -
Select list to popup list of values
Hi
i am doing without refresh by using two select list.
as i choose class from first select list related section to that class comes into second list
it is working fine .
if i change item type select list to popup list of values.
then it is not working fine
what i change into code so that it works fine by using popup list of values.
javascript-------------------------------------------------
<script language="JavaScript1.1" type="text/javascript">
function get_select_list_xml(pThis,pSelect){
var l_Return = null;
var l_Select = html_GetElement(pSelect);
var get = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=CASCADING',1);
get.add('SELECT1',pThis.value);
gReturn = get.get('XML');
if(gReturn && l_Select){
var l_Count = gReturn.getElementsByTagName("option").length;
l_Select.length = 0;
for(var i=0;i<l_Count;i++){
var l_Opt_Xml = gReturn.getElementsByTagName("option");
appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
l_Opt_Xml.firstChild.nodeValue)
get = null;
function appendToSelect(pSelect, pValue, pContent) {
var l_Opt = document.createElement("option");
l_Opt.value = pValue;
if(document.all){
pSelect.options.add(l_Opt);
l_Opt.innerText = pContent;
}else{
l_Opt.appendChild(document.createTextNode(pContent));
pSelect.appendChild(l_Opt);
</script>
application process------------------------------------
BEGIN
OWA_UTIL.mime_header ('text/xml', FALSE);
HTP.p ('Cache-Control: no-cache');
HTP.p ('Pragma: no-cache');
OWA_UTIL.http_header_close;
htp.prn('<data>');
HTP.prn ('<select>');
HTP.prn ('<option value="' || 1 || '">' || '- All Section -'|| '</option>');
FOR c IN (select DISTINCT(section) ,CLASS_ID from class_details where class_id=:SELECT1 ORDER BY SECTION ASC)
LOOP
HTP.prn ('<option value="' || c.section || '">' || c.section || '</option>');
END LOOP;
HTP.prn ('</select>');
htp.prn('</data>');
END;
calling statement-------------------------------------------------
onChange="javascript:get_select_list_xml(this,'P134_SECTION');"
Thanks & Regards
VedantI haven't tried this, but check
How to remove basic/advanced button in inputListOfValues search dialog
This does not have complete solution, but might give you some lead. -
NOT Getting Values for LOCATION...on MultiProvider REPORT
HI All,
I have a MultiProvider on 4 cubes.All these 4 cubes having object LOCATION. I can see data in all cubes for LOCATION. I am running a report on this MultiProvider.
Problem:
I am not getting Values for LOCATION. Why?
What I did:
I checked all location objects of all 4 cubes @ MultiProvider level .
I didn't use any Infoprovider in Qry designer sections.
Please suggest. What is the reason how to solve..
THanks & Regards.
Sri.
Edited by: siri26 k on Dec 5, 2008 10:41 AM
Edited by: siri26 k on Dec 5, 2008 10:41 AMhello,
in the identification tab of the MP,make sure you have checked all four checkboxes across the 4 infoproviders.
then in Listcube T-Code, select your MP,display the records based on selection inputs and see if location is populated.
If the data is not coming in listcube, then it will not come in the Query too.
Reg,
Dhanya -
Not getting values in the variable
Hi experts,
in this program
i want VBPA-vbeln = xblnr....but there is a data length error. so I ahve declare one variavble of length 10. & i am moving this xblnr to this variable but not getting value in that variable that i am moving..& give me the possible solutions...
when '0FI_AR_4'.
data: t_DTFIAR_3 like DTFIAR_3 occurs 0 WITH HEADER LINE.
data: BEGIN OF t_DTFIAR_3 occurs 0.
include structure DTFIAR_3.
data: xblnr1(10).
data: END OF t_DTFIAR_3.
data : BEGIN OF t_partner occurs 0,
VBELN like vbpa-VBELN,
parvw like vbpa-PARVW,
kunnr like vbpa-kunnr,
END OF t_partner.
data : xblnr1(10).
t_DTFIAR_3[] = C_T_DATA[].
move t_DTFIAR_3-xblnr to t_DTFIAR_3-xblnr.
select VBELN PARVW kunnr
into table t_patner
from vbpa
FOR ALL ENTRIES IN t_DTFIAR_3
where VBELN = t_DTFIAR_3-xblnr.
SORT t_partner BY VBELN PARVW.
loop at t_DTFIAR_3.
loop at t_partner where VBELN = t_DTFIAR_3-xblnr1.
if t_partner-PARVW = 'ZA'.
t_DTFIAR_3-YPARVW1 = t_partner-PARVW.
t_DTFIAR_3-YPART1 = t_partner-kuNNR.
elseif t_partner-PARVW = 'ZR'.
t_DTFIAR_3-YPARVW2 = t_partner-PARVW.
t_DTFIAR_3-YPART2 = t_partner-kuNNR.
ELSEif t_partner-PARVW = 'ZE'.
t_DTFIAR_3-YPARVW3 = t_partner-PARVW.
t_DTFIAR_3-YPART3 = t_partner-kuNNR.
ELSEif t_partner-PARVW = 'ZS'.
t_DTFIAR_3-YPARVW4 = t_partner-PARVW.
t_DTFIAR_3-YPART4 = t_partner-kuNNR.
ENDIF.
MODIFY t_DTFIAR_3.
endloop.
ENDLOOP.
C_T_DATA[] = t_DTFIAR_3[] .
Thanks in advanceHI,
While moving use the WRITE TO option.
WRITE VBPA-vbeln TO xblnr.
Regards
Sudheer -
Using bean.variable for inputText but not getting value
Hi I am using ADF BC JSF 10.1.3.2.
I have a search page that has : dropdown1,
based on dropdown1, I populate the dropdown 2 and with autosubmit and partialtrigger and also set either of the two search layouts true
LAyout 1 based on dropdown1 value, say x, is rendered and I have 3 inputText , each have value= #{backingbean.variable}.
Now when i am running this page, I got dropdown2 rendered with correct values and layout 2 rendered as required. Problem starts when I enter a value in the inputText1 and click on search button. In the search method, I try to get value for variable with so many ways : getVariable(), this.getInputText1.getValue()/// All these returned null.
I tried to initialize the variable. In this case, the inputText1 showed initialised value and when i change value and submit, in the search method I still get the old initialised value.
The inputText1 somehow never sets the value
Please help..
Regards
SudhaHi,
I'm not exactly sure about what your functionality is but from what I gather the problem could be that if the bean is request scope then the value of the input text is already lost when you are trying to retrieve it.
In any case I think that the best thing to do is to use the default view criteria functionality to perform the search if it is done on a view object.
Gabriel. -
From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?
Hi,
Use NVL or COALESCE:
NVL (col_a, col_b)
Returns col_a if col_a is not NULL; otherwise, it returns col_b.
Col_a and col_b must have similar (if not identical) datatypes; for example, if col_a is a DATE, then col_b can be another DATE or it can be a TIMESTAMP, but it can't be a VARCHAR2.
For more about NVL and COALESCE, see the SQL Language manual: http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions119.htm#sthref1310
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
Explain, using specific examples, how you get those results from that data.
Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
See the forum FAQ: https://forums.oracle.com/message/9362002 -
I am getting the following error with IE9 and Firefox 26 with application express 3.2:
SCRIPT5007: Unable to get value of the property 'nodeName': object is null or undefined
apex_ns_3_1.js, line 589 character 10
this.dialog.check2 = function (e){
var tPar = html_GetTarget(e);
var lEl = $x('apexir_col_values_drop');
var l_Test = true;
****** while(tPar.nodeName != 'BODY'){
tPar = tPar.parentNode;
if(tPar == lEl){l_Test = false;}
if(l_Test){$x_Remove('apexir_col_values_drop')}
This happens when I click the Gear Icon, then Filter, then I click the dropdown arrow under expressions and pick an expression from the list.
If I set (through IE Developer tools) back to IE8 mode, I don't get the error.Guess no one is using 3.2 any longer or no one else gets this error..... Guess I can edit the JavaScript file to trap the error since it really doesn't seem to cause an issue. Just didn't want to have to go that route.
-
Getting values from a datagrid to an ArrayCollection
Hi, I have a drag and dropable datagrid. I fill it with rows of data from another datagrid. Finally, my application demands savings the data from the datagrid into an array collection along with the index of each row. How do i get values from a datagrid into an arrayCollection variable? Please help me..!
Whatever is dropped into the DataGrid automatically goes into its dataProvider property, typically an ArrayCollection. Just access the data grid's dataProvider property to see the values.
-
Can you get values back from a stored procedure via OUTPUT parameters?
Can you get values back from calling a stored procedure via OUTPUT parameters/variables? I call the SP via a SQL statement from a script either in a WF or DF.
I thought I read some reference that DI could not get the values from OUTPUT parameters but I could not find it again (don't know if it is in any of the documentation or referred to in a forum.
I did try a couple of tests but it did not reutrn any values via OUTPUT. But before I give up I thought I'd see if you could and maybe I needed to change something.This isn't exactly an answer to your question, but I'll point out that, given that you're resorting to a SQL script in the first place, there's no reason you can't also turn the output parameters into a regular result or record set. (The following uses T-SQL, although I think it's pretty generic.)
declare @param1 int, param2 varchar(100), @return int;
exec @return = proc @param1 = @param1 output, @param2 = @param2 output;
select @param1 as param1, @param2 as param2;
That is, to get from output parameters to a "regular" output from the SQL script isn't much of a leap...
Jeff Prenevost
BI Consultant
Ann Arbor, MI -
How to get values from a stored package variable of type record ?
Sir,
In my JClient form, I need to get values from a database stored package variable of type record. And the values are retained in the JClient form for the whole session. The values are copied only once when the form is started.
What is the best way to do that ?
Thanks
StephenStephen,
not sure what your model is, but if it is Business Components, I think I would expose the properties as a client method on the application module. This way all JClient panels and frames will have access to it. You could use a HashMap to store the data in teh app module.
If JDBC supports the record type, then you should be able to call it via a prepared SQL statement. If not, you may consider writing a PLSQL accessor to your stored procedure that returns something that can be handled.
Steve Muench provides the following examples on his blog page
http://otn.oracle.com/products/jdev/tips/muench/stprocnondbblock/PassUserEnteredValuesToStoredProc.zip
http://otn.oracle.com/products/jdev/tips/muench/multilevelstproc/MultilevelStoredProcExample.zip
Frank -
Getting values from a stored procedure with no parameters
Hi,
I'm trying to get values out of a stored procedure that I created on SQL server. I'm trying to get XML values out of the database, but I'm not sure how to get any data out of it written to a file if the procedure doesn't have any parameters.
So I'm just making a call:
CallableStatement cs = conn.prepareCall("{call myproc}");
cs.execute();How do I get values back from this stage?
Thank you very much,
LiorThe short form answer, which assumes that the stored procedure is returning the XML as an out parameter would go something like this.
public void build(String newUserID, String newPassword) throws SQLException {
String sql = "{ call GET_ITEM_DETAIL(?, ?, ?, ?, ?, ?) }" ;
try{
init(newUserID, newPassword) ;
setCallableStatement(getConnection().prepareCall(sql)) ;
getCallableStatement().setInt(1, getItemNumber()) ;
getCallableStatement().registerOutParameter(2, oracle.jdbc.driver.OracleTypes.CURSOR) ;
getCallableStatement().registerOutParameter(3, oracle.jdbc.driver.OracleTypes.INTEGER) ;
getCallableStatement().registerOutParameter(4, oracle.jdbc.driver.OracleTypes.VARCHAR);
getCallableStatement().registerOutParameter(5, oracle.jdbc.driver.OracleTypes.VARCHAR) ;
getCallableStatement().registerOutParameter(6, oracle.jdbc.driver.OracleTypes.VARCHAR) ;
getCallableStatement().execute() ;
setSqlResult(getCallableStatement().getInt(3)) ;
setSqlMessage(getCallableStatement().getString(4)) ;
if( getSqlResult() != 0 ){
throw new SQLException(getSqlMessage(), null, getSqlResult()) ;
setResultSet((java.sql.ResultSet) getCallableStatement().getObject(2)) ;
if( getResultSet() != null ){
while( getResultSet().next() ){
setItemType(getResultSet().getString("ITEM_TYPE")) ;
setItemValue(getResultSet().getString("ITEM_VAL")) ;
setDisplayType(getCallableStatement().getString(5)) ;
setDisplaySize(Integer.parseInt(getCallableStatement().getString(6))) ;
catch(SQLException e){
java.util.Date now = new java.util.Date() ;
java.text.DateFormat format = java.text.DateFormat.getInstance() ;
setSqlMessage( e.getClass().getName() + " : " + format.format(now) + " : " + e.getMessage() + " : IN " + getClass().getName() ) ;
System.err.println(getSqlMessage()) ;
throw e ;
finally{
closeResources() ;
}The GET_ITEM_DETAIL stored procedure returns several out parameters of various types. The code registers them as out parameters along with an anticipated type and then calls the getXXX(n) method that corresponds with that data type in the appropriate position.
As I mentioned in my other post, the onus of returning the XML is on the stored procedure, when you get it into Java it's going to be a java.lang.String that you can then parse by whatever means is appropriate to your situation.
Regards,
Maybe you are looking for
-
Ipod touch library restore! HELP PLEASE!
Someone help please! I have an ipod touch, my pc stoped working so my entire library got erased. Is it possible to somehow bring up my old library on my newly restored computer? -Im using the same computer now as I was when I had my original itunes l
-
Default font and size for office mac O8. I prefer Times New Roman, size 12
I have OS 10 and Word Office Mac : 2008. I prefer using generally Times New Roman, size 12 but sometimes for some applications something called Calumbria (spelling?) comes up ... and then I have to search for in the long list for Times New Roman. 95
-
hi, i am trying to see the workflow log for my workflows but they are all shown blank. in SWI1 i enter the task name, date range and execute and i am able to see the worklfow ID list. when i double click one of those id, the next screen that comes up
-
[PartyName1 [6672]] Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80004005 Description: "Transaction (Pro
-
How can I get my Java to work?
Hi all, I am trying to install an educational program called IBM SPSS Statistics version 21 however, the install screen does not display any writing and when clicking the "continue" button nothing happens. Basically the installer will not load and I