Setting button property after selecting data from list
I am not able to set the button property after selecting data from list.
I would like to say that
* If a user select an item from list, then user is only allowed to update or delete the data. The update and delete button should be enabled and save button should be disabled.
* If the users types data manually, then user is allowed only to save this as new entry. The update or delete button at this time should be disabled and only save button should be enabled.
I want to say that
In both case, value will be there
In one case, value will be from list and that is available for update or delete
in another case, value will be typed from keyboard that is available for save(new entry).
I do not want to use separate form for update/delete/save new record. I want to use single form for all these operations.
I am using Form 6i and oracle 8
Please guide me, I am trying to find this answer for last four days, but could not find the answer. Please help me. Waiting for you reply...
Thanks Mr. fdellipriscoli,
But where should this code be written and
Where the parameter be set to 'YES'
I think this code should be written somewhere when calling list.
But bydefault list is called by pressing F9 key. Then where the parameter be set to 'YES' .
Please help Mr. fdellipriscoli. Waiting for your reply...
Similar Messages
-
How to select data from a PL/SQL table
Hi,
I am selecting data from database after doing some screening i want to store it in a PL/SQL table (temporary area) and pass it to oracle reports.
Is there any way to select the data from a PL/SQL table as a cursor. Or is there any other way of holding the temporary data and then pass it back as a cursor.
Regards
KamalA PL/SQL "table" is anything but a table. Whoever came up with this term in PL/SQL to describe what is known as dynamic arrays (the correct programming terminology that existed since the 70's if not earlier and what is used in all other programming languages I'm familiar with)... well, several descriptions come to mind and none of them are complimentary.
You cannot "select" from a PL/SQL dynamic array as it is not a table within the Oracle context of tables.
Thus you need to convert (cast) a PL/SQL dynamic array into a temporary Oracle data set/table in order to select from it. This is in general a Bad Idea (tm). Oracle tables and SQL and concurrency controls and all that are especially designed for processing data. PL/SQL arrays is a very simplistic data structure with very limited usage. Why would you want to use that in SQL via a SELECT statement when you can use Oracle tables (or proper temp tables) instead? Besides that, it is also slow to cast a dynamic PL/SQL array into an Oracle SQL data set structure (context switching, copying of memory, etc).
The proper way to use PL/SQL to generate data sets for use via the SQL engine is pipelined table functions.
This is not to say that you should never use PL/SQL arrays and casting in SQL.. simply that you need to make sure that this is the correct and scalable way to do it. And that will also always be an exception to the rule when you do. -
ORA-13773: insufficient privileges to select data from the cursor cache
We are trying to create STS using the below query:
exec sys.dbms_sqltune.create_sqlset(sqlset_name => 'TEST_STS', -
sqlset_owner => 'SCOTT');
The below procedure will load sql starting with 'select /*MY_CRITICAL_SQL*/%' from cursor cache into STS TEST_STS.
DECLARE
stscur dbms_sqltune.sqlset_cursor;
BEGIN
OPEN stscur FOR
SELECT VALUE(P)
FROM TABLE(dbms_sqltune.select_cursor_cache(
'sql_text like ''select /*MY_CRITICAL_SQL*/%''',
null, null, null, null, null, null, 'ALL')) P;
dbms_sqltune.load_sqlset(sqlset_name => 'TEST_STS',
populate_cursor => stscur,
sqlset_owner => 'SCOTT');
END;
We were getting the following error: ORA-13761: invalid filter
After granting the below privileges to the user we are getting the below error:
Err msg:
ERROR at line 1:
ORA-13773: insufficient privileges to select data from the cursor cache
ORA-06512: at "SYS.DBMS_SQLTUNE", line 2957
ORA-06512: at line 10
For SQL Tuning Sets:
GRANT ADMINISTER ANY SQL TUNING SET TO scott;
For Managing SQL Profiles:
GRANT CREATE ANY SQL PROFILE TO scott;
GRANT ALTER ANY SQL PROFILE TO scott;
GRANT DROP ANY SQL PROFILE TO scott;
For SQL Tuning Advisor:
GRANT ADVISOR TO scott;
Others:
GRANT SELECT ON V_$SQL TO SCOTT;
GRANT SELECT ON V_$SQLAREA TO SCOTT;
GRANT SELECT ON V$SQLAREA_PLAN_HASH TO SCOTT;
GRANT SELECT ON V_$SQLSTATS TO SCOTT;
grant select on sys.DBA_HIST_BASELINE to SCOTT;
grant select on sys.DBA_HIST_SQLTEXT to SCOTT;
grant select on sys.DBA_HIST_SQLSTAT to SCOTT;
grant select on sys.DBA_HIST_SQLBIND to SCOTT;
grant select on sys.DBA_HIST_OPTIMIZER_ENV to SCOTT;
grant select on sys.DBA_HIST_SNAPSHOT to SCOTT;
Any info from your end to resolve the issue will be of great help.
ThanksWhat is the alert log reporting. Are you seeing any other errors than these in the alert log too?
-
Hello All,
I have data in a datagrid and I want the user to be able to
select data from it and and enter some addition info in text input
boxes and then send it by clicking a submit button. What is the
best way to get the selected rows from the data grid into a
variable to send(somehow convert selected rows to string and put
them in a text area)? Or is there a better alternative like using a
list control? Ultimately the data will get sent to me in an email
via a php script. Any help or insight would be appreciated!
Thanks!Use the DataGrid's dataProvider.
When you are ready, loop over the dataProvider using
selectedIndices or selectedItems. In that loop, build your string
using the current loop item and the values form wherever else you
need, and put the string in a variable.
When you build the email, put that string in the body. -
How to restrict user to select date from the calendar into a text item
Hi All,
I am using oracle 10g.IN a form i am having a block 'client_block' in that i am having a text_item ' entry_date' which is a datebase item and i have set enabled false in property palette and i created an image item on the same form and i have an calendar icon on it .In when_image_pressed trigger for image item i have written this code
SET_ITEM_PROPERTY('CLIENT_BLOCK.ENTRY_DATE',ENABLED,PROPERTY_TRUE);
DATE_LOV.Get_Date(sysdate,'CLIENT_BLOCK.ENTRY_DATE');
This is working perfectly but user can enter or delete date into the text_item through keyboard i want to restrict that they can only select date from calendar.
I have tried setting item property enabled false in triggers but it is not working.
Can someone help me what trigger i have to use and how?.
Thanks
SriHi,
This is working perfectly but user can enter or delete date into the text_item >>>through keyboard i want to restrict that they can only select date from calendarSet Insert allowed to 'NO' in property pallete of item ENTRY_DATE.
In ON-ERROR Trigger::
BEGIN
DECLARE
err_code CONSTANT NUMBER := error_code;
err_type CONSTANT VARCHAR2(3) := error_type;
BEGIN
IF (err_type = 'FRM'
AND err_code IN (40200)) THEN
Message('Updates Not allowed, Please Select Your Date from Calendar');
Message(' ');
ELSE
NULL;
END IF;
END;
END;
Thanks,
Bhujendra -
Close Excel File after getting data from it
Hi!
I have a big vi to make data aquisiton from a spectrometer. I have the aquisition part and the "save to spreeadsheet" part also. Now I want to make a button to open the data from the excel file and show it in a xy chart. I had some problems but now its working except one important thing. After I read the data from the file and have it in the chart, it seems like the file it's not closed cause if I try to open it in excel, it "hangs" the computer. If I stop the vi, there's no problem. What can I do? I saw here in the forum that its not necessary to open or/and close spreedsheet files but i think this problem is because the file it's not "released" or something. Any help would be great.
Here's the part of the vi that reads the file, and the file itself.
Thanks in advanceStrange. I made the attachment. Anyway, here it is:
Attachments:
open data file.vi 17 KB
scan 11h21m17s .xls 44 KB -
Selecting data from external table
Hi there
I was wondering if somebody could assist me. When I try to select data from an external table, no data is displayed, and in my log file I receive the following error:
KUP-04026: field too long for datatype. Please find attached my external table script.
CREATE TABLE DEMO_FILE_EXT
MACODE NUMBER(7),
MANO NUMBER(7),
DEPNO VARCHAR2(2 BYTE),
DEPTYPE NUMBER(5),
STARTDATE NUMBER(8),
ENDDATE NUMBER(8),
OPTIONSTART NUMBER(8),
BENEFITSTART NUMBER(8),
STARTSUSPEND NUMBER(8),
ENDSUSPEND NUMBER(8),
INITIALS VARCHAR2(5 BYTE),
FIRSTNAME VARCHAR2(20 BYTE),
SURNAME VARCHAR2(25 BYTE),
STR1 VARCHAR2(30 BYTE),
STR2 VARCHAR2(30 BYTE),
STR3 VARCHAR2(30 BYTE),
STR4 VARCHAR2(30 BYTE),
SCODE VARCHAR2(6 BYTE),
POS1 VARCHAR2(30 BYTE),
POS2 VARCHAR2(30 BYTE),
POS3 VARCHAR2(30 BYTE),
POS4 VARCHAR2(30 BYTE),
PCODE VARCHAR2(6 BYTE),
TELH VARCHAR2(10 BYTE),
TELW VARCHAR2(10 BYTE),
TELC VARCHAR2(10 BYTE),
IDNUMBER VARCHAR2(13 BYTE),
DOB NUMBER(8),
GENDER VARCHAR2(1 BYTE),
EMPLOYER_CODE VARCHAR2(10 BYTE),
EMPLOYER_NAME VARCHAR2(900 BYTE)
ORGANIZATION EXTERNAL
( TYPE ORACLE_LOADER
DEFAULT DIRECTORY DEMO_FILES
ACCESS PARAMETERS
( RECORDS DELIMITED BY newline
BADFILE 'Tinusb.txt'
DISCARDFILE 'Tinusd.txt'
LOGFILE 'Tinusl.txt'
SKIP 1
FIELDS TERMINATED BY '|'
MISSING FIELD VALUES ARE NULL
(MACODE,
MANO,
DEPNO,
DEPTYPE,
STARTDATE,
ENDDATE,
OPTIONSTART,
BENEFITSTART,
STARTSUSPEND,
ENDSUSPEND,
INITIALS,
FIRSTNAME,
SURNAME,
STR1,
STR2,
STR3,
STR4,
SCODE,
POS1,
POS2,
POS3,
POS4,
PCODE,
TELH,
TELW,
TELC,
IDNUMBER,
DOB,
GENDER,
EMPLOYER_CODE,
EMPLOYER_NAME
LOCATION (DEMO_FILES:'Test1.txt')
REJECT LIMIT UNLIMITED
LOGGING
NOCACHE
NOPARALLEL;
I have the correct privileges on the directory, but the error seems to be on the EMPLOYER_NAME field. The file I try to upload is in pipe-delimited format. The last field in the file does not have a pipe-delimiter at the end. Can this be the problem? Must I go and look for any trailing spaces? Can I specify in the external table script how many characters I need for the employer_name field? We receive this file from an external company
Thank you very much for the help
Ferdiecommon mistake, you gave the field sizes in the
column listing of the table, but not in the file
definition. oracle does not apply one to the other.
in the file defintion section, give explict field
sizes.Hi shoblock
Sorry for only coming back to you now, thank you for your help, I had to give the explicit field size for the last column (employer name).
Thank you once again!!
Ferdie -
Select data from ORacle in an orchestration
Hi,
I am looking for an example of orchestration with two way send port. The orchestration should select data from an oracle DB using input to orchestration. Based on the query results, orch has different paths to follow.
Can someone please point me to an example/sample or let meknow what is the best way to do it?
Thanks in advance.
SRGHi ,
You can go ahead with Oracle Polling which have a select statement against the DB.
There is a good post from Bali which i am listing below
dpsbali-biztalkweblog.blogspot.in/2011/10/polling-using-biztalk-wcf-oracle.html
http://pellitterisbiztalkblog.wordpress.com/2013/07/01/polling-oracle-database-using-stored-procedures-functions-or-packaged-procedures-and-functions/
There is also a MSDN link available for this
http://msdn.microsoft.com/en-in/library/dd788467.aspx
Thanks
Abhishek -
Select data from Table1 based on Table2
Hi Guys,
Can you guide me up on how to select data from Table1 based on Table2?
I want to fetch data which is not there in table2 in my table1 select query.
Is that I have to do it with the loops after I select data from both tables or can it be handled directly in my select query?
Please suggest.
Regards,
Kumar.hi
Try This
In Where condition filedname (Not Equal) < > itab2-fieldname.
select * from itab1
into table lt_tab.
seect * from itab2
into table lt_tab
for all entries in lt_tab
where name < >(Not Equal to)itab2-fieldname. -
Select data from an MS Access db?
Can I use ODBC to select data from an MS Access Database from 'within' Oracle. For instance with SQL*Plus or within a stored procedure? If so, where can I find detailed documentation about how to do this. If not, is there another way?
Yes, but each of these is a completely separate setup.
If you want to connect to Access from SQL*Plus, you'd have to set up SQL*Plus to make an ODBC connection. <http://tahiti.oracle.com> has all the Oracle documentation online, I believe there's a SQL*Plus guide there that will walk you through setting this up.
If you want to connect to Access from within Oracle, via a database link, you'll need to look into the Oracle Transparent Gateways products. Again, there are references at <http://tahiti.oracle.com> that cover this in great detail.
Justin -
How to select data from 3rd row of Excel to insert into Sql server table using ssis
Hi,
Iam having Excel files with headers in first two rows , i want two skip that two rows and select data from 3rd row to insert into Sql Server table using ssis.3rd row is having column names.CUSTOMER DETAILS
REGION
COL1 COL2 COL3 COL4 COL5 COL6 COL7
COL8 COL9 COL10 COL11
1 XXX yyyy zzzz
2 XXX yyyy zzzzz
3 XXX yyyy zzzzz
4 XXX yyyy zzzzz
First two rows having cells merged and with headings in excel , i want two skip the first two rows and select the data from 3rd row and insert into sql server using ssis
Set range within Excel command as per below
See
http://www.joellipman.com/articles/microsoft/sql-server/ssis/646-ssis-skip-rows-in-excel-source-file.html
Please Mark This As Answer if it solved your issue
Please Mark This As Helpful if it helps to solve your issue
Visakh
My MSDN Page
My Personal Blog
My Facebook Page -
How to select data from cluster table
hi experts,
I have a report which picks data from bseg (cluster table ) for a month report it is taking around 4 minutes to process.I feel it is not good when take the report after some months.
how to select data from these table???how to declare itab for these cluster tables????can we include any search condition or any other kind of internal table???
please advice.
maniHi Manikandan,
The following code may be helpful to understand how to select the data from cluster table.
Types: Begin of ty_kna1,
Kunnr type kna1-kunnr,
adrnr type kna1-adrnr,
end of ty_kna1,
begin of ty_bseg,
belnr type bseg-belnr,
kunnr type bseg-kunnr,
end of ty_bseg,
begin of ty_final,
belnr type bseg-belnr,
kunnr type kna1-kunnr,
adrnr type kna1-adrnr,
end of ty_final.
Data: it_kna1 type table of ty_kna1,
wa_kna1 type ty_kna1,
it_bseg type table of ty_bseg,
wa_bseg type ty_bseg,
it_final type table of ty_final,
wa_final type ty_final.
Select kunnr adrnr from kna1 into table it_kna1 where....
if sy-subrc = 0.
select belnr kunnr into table it_bseg for all entries in it_kna1 where kunnr = it_kna1-kunnr.
endif.
sort it_kna1 by kunnr.
Loop at it_bseg into wa_bseg.
move wa_bseg-belnr to wa_final-belnr.
read table it_kna1 into wa_kna1 with kunnr = wa_bseg-kunnr binary search.
if sy-subrc = 0.
move: wa_kna1-kunnr to wa_final-kunnr,
wa_kna1-belnr to wa_final-belnr.
endif.
append wa_final to it_final.
clear wa_final.
endloop.
Loop at it_final into wa_final.
write: / wa_final-belnr, wa_final-kunnr, wa_final-adrnr.
endloop.
Reward if useful.
Thankyou,
Regards. -
Selecting data from a RDBMS table using connector framework, JDBC-Connector
Hi Experts,
I'm trying to select data from a mysql database that is connected via the BI-JDBC System in the portal (EP 7 SP 11).
The connection (using the Connector Gateway Service) is set up, but selecting data fails.
Can you please give me a code example how to select data from a table using INativeQuery or IOperation / IExcecution ?? IQuery is depracted...
Here my piece of code, actually method "connection.newNativeQuery()" throws exception "BICapabilityNotSupportedException: Operation is not supported":
IConnection connection = null;
public void connectToJDBCSystem(String jdbcSystem) {
// open a connection
try { // get the Connector Gateway Service
Object connectorservice =
PortalRuntime.getRuntimeResources().getService(IConnectorGatewayService.KEY);
IConnectorGatewayService cgService =
(IConnectorGatewayService) connectorservice;
if (cgService == null) {
response.write("Error in get Connector Gateway Service <br>");
try {
ConnectionProperties prop =
new ConnectionProperties(request.getLocale(), request.getUser());
connection = cgService.getConnection(jdbcSystem, prop);
} catch (Exception e) {
response.write("Connection to JDBC system " + jdbcSystem + " failed <br>");
response.write((String)e.getMessage() + "<br>");
e.printStackTrace();
if (connection == null) {
response.write("No connection to JDBC system " + jdbcSystem + "<br>");
} else {
response.write("Connection to JDBC system " + jdbcSystem + " successful <br>");
} catch (Exception e) {
response.write("Exception occurred <br>");
// up to this point it works fine...
// build query using an IExecution object obtained from the Connection object
response.write("prepare query 'SELECT idArt, art FROM art' <br>");
String qstr = "SELECT idArt, art FROM art";
INativeQuery query = null;
try {
query = connection.newNativeQuery();
response.write("execute query...<br>");
ResultSet rs = (ResultSet)query.execute(qstr);
while (rs.next()) {
response.write("<th>" + rs.getString(1) + "</th>");
} catch(Exception e)
response.write("connection.newNativeQuery() failed <br>");
response.write((String)e.getMessage() + "<br>");
e.printStackTrace();
} finally {
if( connection != null )
try {connection.close();}
catch(Exception ee){}
Many thanks in advance, Monika
Edited by: Monika Verwohlt on Jan 26, 2010 9:49 AMHowever this doesn't affect the XML encoding in data retrieved from XMLType using PL/SQL or programs (but it does work OK for SQLPlus SELECT).When performing an explicit serialization, with getClobVal method or XMLSerialize function, the database character set is used :
NLS_LANG = FRENCH_FRANCE.WE8MSWIN1252
NLS_CHARACTERSET = AL32UTF8
SQL> select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
SQL> create table test_nls of xmltype;
Table créée.
SQL> insert into test_nls values(xmltype('<?xml version="1.0" encoding="UTF-8"?><root/>'));
1 ligne créée.
SQL> select * from test_nls;
SYS_NC_ROWINFO$
<?xml version="1.0" encoding="WINDOWS-1252"?>
<root/>
SQL> select t.object_value.getclobval() from test_nls t;
T.OBJECT_VALUE.GETCLOBVAL()
<?xml version="1.0" encoding="UTF-8"?><root/>
SQL> select xmlserialize(document object_value as clob) from test_nls;
XMLSERIALIZE(DOCUMENTOBJECT_VALUEASCLOB)
<?xml version="1.0" encoding="UTF-8"?><root/> -
How to select data from struture
hello experts,
here i stuk am in smart forms where i want to populate the data from struture.
here in our comp there is no functional guy so i face bit problem to find a perticuler table but at last i found
a struture from where my problem can be resolve so can u tell me if i want to select data from struture
so how it is possible...
thanks in advance....Hi,
ST05 is the transaction used for tracing the SQL...for the particular time between Swtich on and Switch off..
If it is still difficult for you..
Then use this approach..
Go to the structure in SE12.
Then double click on the data element of the field you are looking for.
Then whereused list of the data element and search in tables..
You might get the tables that is using this data element..
Thanks,
Naren -
Incorrect year conversion when selecting date from DatePicker
Hi,
I have a problem when I select date from the date picker calendar to the inputDate item.
The date in input item and date picker calendar are displayed as Buddhist year (Gregorian year + 543) ex. year 2012 is 2555 Buddhist year.
When I selected date from the date picker, the year put in the inputDate item is converted to Gregorian year (2012). It should be buddhist year (2555)
Does anybody know where I can check how the year is converted?
Thanks.
nat...Hi Bijesh,
I use version 11.1.2.2.0. Actually, I got the patch from Oracle support already but it is not working properly with my application. The behavior is like this...
- First, I set the current date as a default date in the inputDate item and date is shown correctly -- 10/10/2555.
- The calendar in datePicker is also displayed correctly with year 2555.
- But when I selected the date from the datePicker, it put 10/10/2012 in the inputDate item.
I am not sure where I can check how the year is converted back to Gregorian. Any clue?
Thanks.
nat...
Maybe you are looking for
-
Cant scroll in firefox 17.0.1
hello i bought a new samsung series 9 ultrabook ever since i installed firefox im having issue that i cant scroll with touchpad i checked in safe mode and add ons disables and it didnt work as well i tried in different browsers as ie9 and chrome and
-
How to count the elements with values in a Source?
I have 2 measures which needs the same dimensions as inputs. So i use "Source.join()" to fill the inputs of both the measures like this: Source result = m1.join(m2).join(d1).join(d2); m1, m2: the "Source"s of the "MdmMeasure"s d1, d2: the "Source"s o
-
Installing iTunes with x64 XP Pro
How can I install iTunes on a system that is running x64 XP Pro. It keeps telling me that its not compatible. Is it compatible or are there different drivers I need to download and install? Windows XP Pro
-
WRT54G not connecting properly with Netgear switch
I have a WRT54Gv4 which I've been using as both a WAP and a wired switch. I now have too many wired devices to plug into the built-in switch, so I tried to expand the WRT54G using a Netgear FS108 8-port switch. The WRT54G and the FS108 both work perf
-
How to hide rows with merged cells?
I would like to know how to hide rows on numbers with merged cells, could do it normally at excel but I am not being able to do it at Numbers. thanks!