Global selection modifications problem in LR2
Hello All,
I have discovered a bug in LR 2 (including the past and current version 2.3) which I would like to confirm if others have encountered this issue or know of a fix or workaround.
When I select a range of images or all the images and then I wish to change globally apply a rating color or star ranking etc only the first image in the selection is modified with my new settings. I am viewing in the grid mode in all cases.
For example 1) I select all ten pictures in a collection. 2) Select the #6 key to apply a rating color (RED in this case) 3) End result is only the first image in the entire selection will be given the rating color I have chosen instead of all ten images.
In LR1 the procedure I describe was possible and I used it on a daily basis to globally apply rating, stars, metadata (ie copyright info) etc to a range or entire selection of images.
At this time I have to individually select each image one at a time to apply my ratings etc. This is a time consuming and painfully process.
I regret that LR2 does not maintain the color ratings I applied in Iview but per a suggestion from Peter I found a workaround which is to create a keyword for the range of images in Iview and then upon import to LR2 I can find the images via the keyword. That works for finding the set of images but I still have to apply the color rating in LR2 and at this time it can only be done one at time not globally. The trick I described is also a great solution as an additional method for tagging images with metadata which will readable by other applications when the primary metadata or tagging may have been unique to the first application used by the user.
Is this indeed a bug in LR2 and if so has it been documented by Adobe yet?
So far I have tried and failed with the following.
1) Created new catalog imported new images which have never been in Lightroom 1 or 2.
2) Reset color label presets in preferences menu
Note LR1 will allow me to do global modifications to a range or images or all images which I select.
Thanks,
Tony S.
Tony,
Are you trying to make those changes on your second monitor? The grid has to be on the primary monitor for changes to multiply-selected images to take effect. They tell me that this isn't a bug, but a feature.
Hal
Similar Messages
-
I have changed the Descriptions in Global structure u0085the problem is cha
Hi All,
I have <b>Restricted Key Figures and Calculated Key figures</b> more than 30 .
Based on this RKF and CAK I have Created reports more than 20
Now my user has changed the Discretions of all the Restricted Key Figures and Calculated Key figures..
<b>I have changed all the Descriptions in Global structure the problem is changed description is not affecting in Local structure..</b>
Is I have to drag and droop all the Restricted Key Figures and Calculated Key figures.. in all the reports.. or is there any alternate way is there to refresh the all the Queries..
Regards,
SHAIKThanks Bhanu and Voodi,
i am facing one more Issue....this qus i posted before...
My User Requirement is he want to see the
<b>Deliver Number , Billing Number Vs Delivery Quantity , Billing Quantity, Invoice Value</b> in One Line.
I try to generate report in MultiProvider , but it is splitting in Two rows and it is showing Hash against Delivery.
Need Help .It is my requirement ..
In all the Sales reports they are seeing like this only .
I will appreciate your Help ..
Regards,
Shaik. -
[iPhone] Custom UITableViewController and selecting cell problem.
Hello,
I'm creating a custom table view controller by declaring a UIViewController and adopting the UITableViewDataSource and UITableViewDelegate protocol.
With my current implementation, if I select a cell to transition to another view and then navigate back to the tableview, the cell will remain selected.
There must be some delegate method I am not implementing.
If I update the header file of my table view controller by removing the adopted protocols and subclassing the UITableViewController, I dont have this "selection sticking" problem.
Any ideas as to what I am doing wrong?
Thanks!You're not doing anything wrong, except by omission. If you choose to implement a table view controller as a UIViewController rather than a UITableViewController, you are responsible for controlling selection/deselection of the cells on returning back to the table view from some child view. In the common case where something going on in the child controller affects what cell should be selected/deselected on returning back to the parent table view, this is exactly what you want, because the UITableViewController doesn't always get it right, to sometimes comical effect.
How you would set this up is highly context-dependent.
Doug -
Select-options Problem in module pool
Hi,
I have created select-options in a seperate program and i have called the subscreen in module pool program.
I dont have any problem with the display of select-options but whatever the value given is not getting in to the program. Hw to solve this problem
Assured Points
Thanks in Advance
Jaihi,
did you declare that in top include?
if not declare it globally.
In stead of subscreen, try to do with screen itself.
Create screen like this.
selection-screen begin of screen 300.
selection-screen begin of block b1 with frame title text-000.
select-options : so_ebeln for v_ebeln modif id g1,
so_vbeln for v_vbeln modif id g2.
selection-screen end of block b1.
selection-screen end of screen 300.
Call this screen : in PAI of ur another screen.
call selection-screen 300.
Regards
Sandeep REddy -
At selection-screen problem: triggering an error message...
Hello experts,
I have 3 radiobuttons and 1 parameter in my selection screen. it works in such a way that whenever the user clicks on the 3rd radiobutton the parameter will be inputtable. Now, what I want to do is that whenever the 3rd radiobutton is clicked and the user forgot to put a value in the paramater an error message will be triggered saying 'please put a value'.
Now, creating a code for that is easy but here is the problem: whenever I click on any of the radiobuttons the message triggers. Anyway, below is my code:
SELECTION-SCREEN BEGIN OF BLOCK box1 WITH FRAME TITLE text-001.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: pr_upld RADIOBUTTON GROUP grp MODIF ID id3
USER-COMMAND ucomm.
SELECTION-SCREEN COMMENT 2(20) text-007 FOR FIELD pr_upld.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 03(15) text-a11 FOR FIELD p_flnme MODIF ID id3.
PARAMETERS: p_flnme LIKE rlgrap-filename DEFAULT 'C:\' MODIF ID id3.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(22) text-002 FOR FIELD p_dcode MODIF ID id1.
PARAMETERS: p_dcode LIKE vbak-kunnr MODIF ID id1,
p_name1 LIKE kna1-name1 MODIF ID id1.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: pr_list RADIOBUTTON GROUP grp MODIF ID id4.
SELECTION-SCREEN COMMENT 2(7) text-003 FOR FIELD pr_list MODIF ID id4.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: pr_add RADIOBUTTON GROUP grp MODIF ID id2.
SELECTION-SCREEN COMMENT 2(3) text-005 FOR FIELD pr_add MODIF ID id2.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: pr_edit RADIOBUTTON GROUP grp MODIF ID id5.
SELECTION-SCREEN COMMENT 2(4) text-006 FOR FIELD pr_edit MODIF ID id5.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 03(20) text-a12 FOR FIELD p_code MODIF ID id2.
*PARAMETERS: p_kunnr LIKE zts0001-kunnr.
PARAMETERS: p_code LIKE zts0001-cdseq MODIF ID id6.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK box1.
AT SELECTION-SCREEN OUTPUT.
IF v_compflag EQ space.
LOOP AT SCREEN.
IF screen-group1 = 'ID1'.
screen-input = '0'.
screen-output = '1'.
MODIFY SCREEN.
ELSEIF screen-group1 = 'ID2'.
screen-active = '1'.
MODIFY SCREEN.
ELSEIF screen-group1 = 'ID3'.
screen-active = '0'.
MODIFY SCREEN.
ELSEIF screen-group1 = 'ID4'.
screen-active = '1'.
MODIFY SCREEN.
ELSEIF screen-group1 = 'ID5'.
screen-active = '1'.
MODIFY SCREEN.
ELSEIF screen-group1 = 'ID6'.
screen-active = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ELSEIF v_compflag NE space.
LOOP AT SCREEN.
IF screen-group1 = 'ID1'.
screen-active = '0'.
MODIFY SCREEN.
ELSEIF screen-group1 = 'ID2'.
screen-active = '0'.
MODIFY SCREEN.
ELSEIF screen-group1 = 'ID3'.
screen-active = '1'.
MODIFY SCREEN.
ELSEIF screen-group1 = 'ID4'.
screen-active = '1'.
MODIFY SCREEN.
ELSEIF screen-group1 = 'ID5'.
screen-active = '0'.
MODIFY SCREEN.
ELSEIF screen-group1 = 'ID6'.
screen-active = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
*for users that are not controllers
LOOP AT SCREEN.
IF screen-name = 'P_CODE'.
screen-input = '0'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
IF pr_list = 'X' OR
pr_add = 'X' OR
pr_upld = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'ID6'.
screen-input = '0'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ELSEIF pr_edit = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'ID6'.
screen-input = '1'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
*for controllers
IF pr_upld = 'X'.
LOOP AT SCREEN.
IF screen-name = 'P_FLNME'.
screen-input = '1'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ELSEIF pr_list = 'X'.
LOOP AT SCREEN.
IF screen-name = 'P_FLNME'.
screen-input = '0'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
AT SELECTION-SCREEN.
IF pr_edit = 'X' AND p_code IS INITIAL.
MESSAGE e008 WITH 'Please specify Code.'.
ENDIF.
Again, thank you guys and have a nice day!Hi viraylab,
1. Such validations can be handled in the event
START-OF-SELECTION.
2. We should them and other such validations,
using this logic
START-OF-SELECTION.
IF ERRORCONDIDTION.
<b>MESSAGE 'PLEASE ENTER ' TYPE 'S'
LEAVE LIST-PROCESSING.</b>
ENDIF.
WRITE :/ 'ABC'.
3.
The most important statements are
A) message should be of type I, or S, or W
(and not error E)
b) LEAVE LIST-PROCESSING
(it discontinues the further list showing,
and again, re-displays, the selection screen)
regards,
amit m. -
[Background:]
(1)There are two parameters in a radio button group.
One is P_SCREEN,it means display report on screen
and another is P_FILE,it means output report into a file.
(2)There is a parameter P_NTFILE, use it to indicate output file path.
[Target:]
(1)After the selection-screen built,
If the P_FILE is checked,P_NTFILE should be enable.
If the P_SCREEN is checked,P_NTFILE should be disable.
[Code:]
Parameter in Block2
SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: P_SCREEN RADIOBUTTON GROUP R1. " Screen output
SELECTION-SCREEN COMMENT 04(21) TEXT-001.
SELECTION-SCREEN POSITION 32.
PARAMETERS: P_FILE RADIOBUTTON GROUP R1. " NTFILE output
SELECTION-SCREEN COMMENT 35(17) TEXT-002.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK B2.
Parameter in Block3
SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME.
PARAMETERS: P_NTFILE(45) TYPE C LOWER CASE OBLIGATORY MODIF ID SC1.
P_PCFILE LIKE RLGRAP-FILENAME OBLIGATORY.
SELECTION-SCREEN END OF BLOCK B3.
*& AT SELECTION-SCREE
AT SELECTION-SCREEN.
IF P_SCREEN = 'X'.
FLAG = 0.
ENDIF.
IF P_FILE = 'X'.
FLAG = 1.
ENDIF.
*& AT SELECTION-SCREE ON <FIELD>
AT SELECTION-SCREEN ON RADIOBUTTON GROUP R1.
IF P_SCREEN = 'X'.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'SC1'.
SCREEN-INPUT = FLAG.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
IF P_FILE = 'X'.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'SC1'.
SCREEN-INPUT = FLAG.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
[Problem:]
P_NTFILE can not refresh between enable and disable status.
Anyone can help me?*& Report Z_JAGANOBJECT *
REPORT Z_JAGANOBJECT line-count 0(1) .
Tables sscrfields.
*--parameters--
SELECTION-SCREEN BEGIN OF BLOCK RB1 WITH FRAME TITLE new.
selection-screen :skip 2.
PARAMETERS : cmp_name(10) type c,
imp_code(5) type n,
exp_cmp(10) TYPE c,
Exp_mtrl(10) TYPE c.
------------------------radi button---------------------
SELECTION-SCREEN BEGIN OF BLOCK RB WITH FRAME TITLE text.
selection-screen: skip 1.
PARAMETERS : Import RADIOBUTTON GROUP RB user-command usr,
Export RADIOBUTTON GROUP RB DEFAULT 'X'.
SELECTION-SCREEN END OF BLOCK RB.
SELECTION-SCREEN END OF BLOCK RB1.
*--push button--
SELECTION-SCREEN PUSHBUTTON /40(20) SAVE USER-COMMAND STORE.
DATA : FLAG TYPE I.
*--internal tables--
data : begin of itab occurs 0,
cmp_name(10) type c,
imp_code(5) type n,
end of itab.
data : begin of itab1 occurs 0,
exp_cmp(10) TYPE c,
Exp_mtrl(10) TYPE c,
end of itab1.
*--initalisaton--
INITIALIZATION.
save = 'store'.
text = ' Type '.
new = ' Import- Export details'.
*--selection screen--
AT SELECTION-SCREEN.
case SSCRFIELDS-ucomm.
when 'STORE'.
FLAG = '1'.
if import = 'X'.
itab-cmp_name = cmp_name.
itab-imp_code = imp_code.
append itab.
clear itab.
endif.
if export = 'X'.
itab1-exp_cmp = exp_cmp.
itab1-Exp_mtrl = Exp_mtrl.
append itab1.
clear itab1.
endif.
ENDcase.
*--selection screen output--
AT SELECTION-SCREEN OUTPUT.
IF export = 'X'.
LOOP AT SCREEN.
IF SCREEN-NAME = 'CMP_NAME' OR SCREEN-NAME = 'IMP_CODE'.
SCREEN-INPUT = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
elseIF import = 'X'.
LOOP AT SCREEN.
IF SCREEN-NAME = 'EXP_CMP' OR SCREEN-NAME = 'EXP_MTRL'.
SCREEN-INPUT = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
end-of-selection.
LOOP AT ITAB.
WRITE : /10 itab-cmp_name, 30 itab-imp_code.
ENDLOOP.
LOOP AT ITAB1.
WRITE : /10 itab1-exp_cmp,50 itab1-exp_mtrl.
ENDLOOP.
hope its useful,
reward points if its useful
regards
vijay -
Tabbed selection screen problem.
Hi expert,
I need some help in creating my selection screen.
Right now i'm creating a tabbed selection screen as the code below follows.
PARAMETERS: p_test AS CHECKBOX USER-COMMAND testrun DEFAULT 'X'.
SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.
PARAMETERS: p_offkdt TYPE sy-datum MODIF ID thr.
SELECT-OPTIONS: s_konfe FOR p0002-konfe.
SELECTION-SCREEN END OF SCREEN 100.
SELECTION-SCREEN BEGIN OF SCREEN 200 AS SUBSCREEN.
SELECTION-SCREEN: BEGIN OF LINE,
COMMENT 1(20) text-005 MODIF ID yea
FOR FIELD p_lowdt,
POSITION POS_LOW.
PARAMETERS: p_lowdt TYPE begda MODIF ID yea,
p_updt TYPE endda MODIF ID yea.
SELECTION-SCREEN: END OF LINE.
PARAMETERS: p_keydt TYPE dats MODIF ID yea.
SELECTION-SCREEN END OF SCREEN 200.
SELECTION-SCREEN BEGIN OF SCREEN 300 AS SUBSCREEN.
PARAMETERS: p_lvdat TYPE dats MODIF ID lv.
SELECTION-SCREEN END OF SCREEN 300.
SELECTION-SCREEN: BEGIN OF TABBED BLOCK prog_selection FOR 4 LINES,
TAB (20) button1 USER-COMMAND push1,
TAB (20) button2 USER-COMMAND push2,
TAB (20) button3 USER-COMMAND push3,
END OF BLOCK prog_selection.
Now as I'm using tab and subscreen, therefore i need to initialize the subscreen which i wanted to use which i did in the initialization event.
prog_selection-dynnr = 100.
prog_selection-activetab = 'PUSH1'.
With the above code, my default tab would be screen 100 which is the first tab.
My problem right now is, after i execute the program, and then i press the back button to go back to the selection screen, the default tab 100 is shown again while i wanted to show the last tab which was picked before the program was executed. Please kindly advise how can i solve this problem.
Many Thanks!
-Suwardi Nursalim-Hi,
DATA: V_DYNNR TYPE SY-DYNNR VALUE '0100',
V_ACTIVETAB(4).
INITIALIZATION.
MOVE 'PUSH1' TO V_ACTIVETAB.
AT SELECTION-SCREEN OUTPUT.
prog_selection-dynnr = V_DYNNR.
prog_selection-activetab = V_ACTIVETAB.
When the user clicks each tab of the tab strip.*
CASE SY-UCOMM.
WHEN 'PUSH1'.
V_ACTIVETAB = 'PUSH1'.
(rest of your code).
WHEN 'PUSH2'.
V_ACTIVETAB = 'PUSH2'.
(rest of your code).
WHEN 'PUSH3'.
V_ACTIVETAB = 'PUSH3'.
(rest of your code).
ENDCASE.
Hope this will help you.
Regards,
Smart Varghese -
Global View Option Problems!!!
In Tiger you had the option to choose "This Window Only" or "All Windows." In Leopard you can select "Use as Defaults," for the view you are in such as icons,coverflow, etc. The problem is it only works for some windows. If you try to change the size in the window there is no way to get back your global settings. Am I missing something?
Yay, I found it! (Your message prompted me to look further.)
If you hold down OPTION the "Use as Defaults" button changes to "Restore to Defaults". This gives you an easy way to set a folder back to the global settings.
Really if you mess with anything in the view options pane, it is being set JUST for that individual folder and is equal to Tiger's "This Window Only". The reason that the defaults button is often grayed out is because that folder is already set to use the global settings.
They made this feature a lot more confusing than it was in Tiger.
So the only main functionality change seems to be that the view setting (icon/list/column/coverflow) is now set globally instead of per window:
http://arstechnica.com/reviews/os/mac-os-x-10-5.ars/12#divided -
A strange applet selection fail problem
Hi, All. I am trying to implement the RSA encryption and decryption using rmi. I use the RSA implementation sample code in the previous post and the RMIPurse sample code in the package (3.0.2 classic ) for testing. However, after I add some initialization codes into the PurseImpl class, I got the "applet selection failed" error.
The code that I modified based on RMIPurse
import javacard.framework.ISO7816;
import javacard.framework.ISOException;
import javacard.security.CryptoException;
import javacard.security.KeyBuilder;
import javacard.security.KeyPair;
import javacard.security.RSAPrivateCrtKey;
import javacard.security.RSAPublicKey;
import javacardx.crypto.Cipher;
public class PurseImpl extends CardRemoteObject implements Purse {
private short balance = 0;
private byte[] number;
// crypto variables
final static byte GETSET_CLA = (byte) 0x85;
final static byte CRYPT_CLA = (byte) 0x00;
// Instruction set for SimpleString
final static byte SET = (byte) 0x10;
final static byte GET = (byte) 0x20;
final static byte SELECT = (byte) 0xA4;
// This buffer contains the string data on the card
byte TheBuffer[];
// globals
RSAPrivateCrtKey rsa_PrivateCrtKey;
RSAPublicKey rsa_PublicKey;
KeyPair rsa_KeyPair;
Cipher cipherRSA;
final short dataOffset = (short) ISO7816.OFFSET_CDATA;
public PurseImpl() {
super(); // export it
number = new byte[5];
// crypto
TheBuffer = new byte[100];
// generate own rsa_keypair
try {
rsa_KeyPair = new KeyPair(KeyPair.ALG_RSA_CRT, KeyBuilder.LENGTH_RSA_1024);
rsa_KeyPair.genKeyPair();
rsa_PublicKey = (RSAPublicKey) rsa_KeyPair.getPublic();
rsa_PrivateCrtKey = (RSAPrivateCrtKey) rsa_KeyPair.getPrivate();
cipherRSA = Cipher.getInstance(Cipher.ALG_RSA_PKCS1, false);
catch (CryptoException e) {
short sw = (short) 0x9100;
sw |= e.getReason();
ISOException.throwIt(sw);
}I got:
Receiving initial reference... java.rmi.RemoteException: Applet selection failed, SW = 6d00
That's strange. because without the initialization codes in try/catch block, there is no problem to select the applet. Can anyone help?I have exactly the same problem when calling (trying to) any applets method. Where are these parameters to be turned on?
-
I have 3 select lists: the first two are with submit and the last one is just select list. Each list depends on the previous one.
I have set null and default values for each list. The problem occurs when I first start the application, but after selecting an option in the first list all is fine and when I reset the fields everything works as it should.
So the problem only occurs when the application is first launched....
This is the error message:
Error: ORA-01858: a non-numeric character was found where a numeric was expected performing List of Values query: "SELECT TESTTIME d, TESTTIME r FROM TESTSETUP WHERE TESTDATE = :P3_TESTDATE and TERM = :P3_TERM ".
How can this be corrected?
Any help would be greatly appreciated.
Thank - GregI have set null and default values for each list
These values are not available in committed session state for the subsequent select lists to use.
Solution: Create a OnLoad Before Header computation (conditional upon the value of the select list being null) to set it to whatever null/default value you want. This will "initialize" the value so that your dependent select lists can work properly. -
Global temp table problem w/ODP?
I'm using the current version of the ODP .NET data adapter to access a global temporary table on an Oracle
9.2.0.4.0 server created with -
CREATE GLOBAL TEMPORARY TABLE euik_dex_open_tasks_temp1
(resource_id NUMBER,
task_assignment_id NUMBER,
task_id NUMBER,
incident_id NUMBER,
customer_product_id NUMBER,
inventory_item_id NUMBER,
contract_service_id NUMBER)
ON COMMIT DELETE ROWS
(See below for what is returned from the data dictionary for this table)
If I use SQLPlus to insert a row into this table, then query the table immediately, I see the inserted row.
If I use the same exact SQL through the ODP adapter, the ExecuteNonQuery statement returns the fact the 1 row was inserted. However, doing a SELECT from the table immediately after the INSERT, no rows are returned. See the .NET test ap, below.
Also, note that if I use a global temp table made with ON COMMIT PRESERVE ROWS, the ODP adapter works fine.
What am I doing wrong? Thanks in advance...
Pat
Private Sub TestTempTable()
Dim Str1 As New System.Text.StringBuilder
Dim Strx As New System.Text.StringBuilder
Dim StrOut As New System.Text.StringBuilder
Dim nInsert As Integer
Dim nRow As Integer
'Insert into the global temp table
Str1.Append("INSERT INTO euik_dex_open_tasks_temp1(resource_id, " & vbCrLf)
Str1.Append(" task_Assignment_id, " & vbCrLf)
Str1.Append(" task_id, " & vbCrLf)
Str1.Append(" incident_id, " & vbCrLf)
Str1.Append(" customer_product_id, " & vbCrLf)
Str1.Append(" inventory_item_id, " & vbCrLf)
Str1.Append(" contract_service_id) " & vbCrLf)
Str1.Append(" VALUES(1,2,3,4,5,6,7)" & vbCrLf)
Dim cn As New Oracle.DataAccess.Client.OracleConnection
Dim dr As Oracle.DataAccess.Client.OracleDataReader
Dim cd As New Oracle.DataAccess.Client.OracleCommand
Try
cn.ConnectionString = "Data Source=XXX;User ID=mickey;Password=mouse;"
cd.CommandType = CommandType.Text
cd.Connection = cn
cn.Open()
'Run the query to load data in the temp table
cd.CommandText = Str1.ToString()
nInsert = cd.ExecuteNonQuery()
MessageBox.Show(nInsert & " row(s) inserted.")
'See if there are rows in the temp table
Strx.Append("Select * from euik_dex_open_tasks_temp1")
cd.CommandText = Strx.ToString()
dr = cd.ExecuteReader
nRow = 0
While dr.Read
StrOut.Append(dr(0) & vbCrLf)
nRow = nRow + 1
End While
MessageBox.Show(nRow & " row(s) selected.")
Catch ex As OracleClient.OracleException
MessageBox.Show(ex.Message)
Catch ex As Exception
MessageBox.Show(ex.Message)
Finally
cn.Close()
End Try
End Sub
OWNER TABLE_NAME TABLESPACE_NAME CLUSTER_NAME IOT_NAME PCT_FREE PCT_USED
INI_TRANS MAX_TRANS INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS MAX_EXTENTS PCT_INCREASE
FREELISTS FREELIST_GROUPS LOGGING BACKED_UP NUM_ROWS BLOCKS EMPTY_BLOCKS AVG_SPACE
CHAIN_CNT AVG_ROW_LEN AVG_SPACE_FREELIST_BLOCKS NUM_FREELIST_BLOCKS DEGREE INSTANCES
CACHE TABLE_LOCK SAMPLE_SIZE LAST_ANALYZED PARTITIONED IOT_TYPE TEMPORARY
SECONDARY NESTED BUFFER_POOL ROW_MOVEMENT GLOBAL_STATS USER_STATS DURATION
SKIP_CORRUPT MONITORING CLUSTER_OWNER DEPENDENCIES COMPRESSION
APPS EUIK_DEX_OPEN_TASKS_TEMP1 10 40 1 255
1 1 NO N
1 1 N ENABLED NO Y N NO
DEFAULT DISABLED NO NO SYS$TRANSACTION DISABLED NO DISABLED
DISABLEDAndrew,
As David indicated if you do not wish to have "auto commit mode" you just need to use a transaction object to manually control the transaction.
I'm just nervous at the idea of ODP.NET initiating interactions I am not aware of.I think it would be more fair to say "finishing interactions" in this case rather than "initiating interactions" but you could always just run a SQL trace from the database to see exactly what is happening if you are concerned.
HTH,
- Mark
=======================================
Mark A. Williams
Oracle DBA
Author, Professional .NET Oracle Programming
http://www.apress.com/book/bookDisplay.html?bID=378 -
Multiple Schema select Query problem
Hi everyone,
when I tried to execute a select query as following,
select A.field1, B.field2 from S1.table1 A, S2.table2 B
in a session bean, it gives an exception as follows
" An illegal attempt to use multiple resources that have only one-phase capability has occurred within a global transaction"
Can anyone pls help me in this regard.
Thanking you
D. Suresh KumarThis is the query i thought of executing
SELECT * FROM SCH2.AP_TRANSACTION_EPS A, TRANSACTION_TYPES B WHERE C_FUND_CODE = '" + fundCode + "'AND D_TRADE_DATE = to_date('" + date + "','yyyy-mm-dd') AND A.C_TRANS_CODE = B.C_TRANS_CODE " + " AND B.C_TRANS_TYPE = '" + transType + "' ";
where "fundCode", "date","transType" are java variables.
The error message is
[8/1/03 12:38:49:688 IST] 491a6a5 TransactionIm E WTRN0062E: An illegal attempt to use multiple resources that have only one-phase capability has occurred within a global transaction.
[8/1/03 12:38:49:750 IST] 491a6a5 ConnectO A CONM6014I: Received exception (IllegalStateException) in method (enlist). Issuing new exception (IllegalTransactionStateException). The original exception's stack trace was: java.lang.IllegalStateException
Thanking you -
This report will take delivery document number and delivery date from user and fetches details from delivery table and fetches
corresponding sales order details and billing details and displays sales order details with ALV list.
<< Please only post the relevant portions of your code >>
i just want to know that is this way of fetching the data into internal table okay ?are there any better ways of fetching the data into the internal table ? why is it looping in work area of lips, why not in likp?
(plz dont use field-symbols or oo abap or macros) I WANT TO USE PLAIN AND SIMPLE ABAP STATEMENTS LIKE ABOVE..
By using "vbeln type lips-vbeln" are we refering to the field or data element? plz suggest.
P.S. [my approach was to inner join likp and lips into itab(my internal table).
select data from kna1, vbak,vbap,vbrp into respective internal tables like it_kna1,it_vbak etc.
then using individual loops into the tables, i would use read table to insert data into itab(my final internal table) plz suggest which method wud be more efficient? ]
Edited by: Rob Burbank on Jun 8, 2009 11:54 AMok i am posting the select queries once again.
i want to know why are we looping in t_lips and why not t_likp? bcoz tlikp is the header table, if we loop thru it and then read the rest tables then what will be the problem? plz clarify with examples._
[my idea was to loop at t_likp then read t_lips.append the lips data into t_order(main internal table).then do read table on t_kna1,t_vbap etc indexing t_order. so plz suggest whether my approach was write or wrong?if wrong why?plz site any other ways of doing this query.
types: begin of ty_vbap,
vbeln type vbap-vbeln,
posnr type vbap-posnr, .....
does the declaration statement in types refer to tables or data elements? what is the difference if we declare it like:
types: begin of ty_vbap,
vbeln type vbeln,
posnr type posnr, .....
select-options:
s_deldoc FOR likp-vbeln, " Delivery
s_dldate FOR likp-lfdat. " Delivery Date
Get delivery document number,delivery date,customer number from
delivery header table
SELECT vbeln " Delivery
lfdat " Delivery Date
kunnr " Customer Number 1
FROM likp
INTO TABLE t_likp
WHERE vbeln IN s_deldoc
AND lfdat IN s_dldate.
IF sy-subrc EQ 0.
Get Customer name for customer numbers from Customer master table
SELECT kunnr " Customer Number 1
name1 " Name 1
FROM kna1
INTO TABLE t_kna1
FOR ALL ENTRIES IN t_likp
WHERE kunnr EQ t_likp-kunnr.
IF sy-subrc EQ 0.
Get delivery item number,sales document number,sales item number,
delivery quantity from delivery item table
SELECT vbeln " Delivery
posnr " Delivery Item
vgbel " Document number of
" reference document
vgpos " Item number of reference item
lfimg " Actual quantity delivered
vrkme " Sales unit
FROM lips
INTO TABLE t_lips
FOR ALL ENTRIES IN t_likp
WHERE vbeln EQ t_likp-vbeln.
IF sy-subrc EQ 0.
Get sales document number,item number,material,material description,
ordered quantity from sales item table
SELECT vbeln " Sales Document
posnr " Sales Document Item
matnr " Material Number
arktx " Short text for sales order
" item
kwmeng " Cumulative Order Quantity
vrkme " Sales unit
FROM vbap
INTO TABLE t_vbap
FOR ALL ENTRIES IN t_lips
WHERE vbeln EQ t_lips-vgbel
AND posnr EQ t_lips-vgpos.
IF sy-subrc EQ 0.
Get sales document number ,created date,purchase order number from
sales header table
SELECT vbeln " Sales Document
erdat " Date on Which Record Was" Created
aufnr " Order Number
FROM vbak
INTO TABLE t_vbak
FOR ALL ENTRIES IN t_lips
WHERE vbeln EQ t_lips-vgbel.
IF sy-subrc EQ 0.* Get billing document number,billing item,reference delivery document
number,delivery item number,billing item from billing item table
SELECT vbeln " Billing Document
posnr " Billing item
vgbel " Document number of the
" reference document
vgpos " Item number of the" reference" item
fklmg " Billing quantity in" stockkeeping unit
vrkme " Sales unit
FROM vbrp
INTO TABLE t_vbrp
FOR ALL ENTRIES IN t_lips
WHERE vgbel EQ t_lips-vbeln
AND vgpos EQ t_lips-posnr.
ENDIF. " IF SY-SUBRC EQ 0
ENDIF. " IF SY-SUBRC EQ 0
ENDIF. " IF SY-SUBRC EQ 0
ENDIF. " IF SY-SUBRC EQ 0
ELSE.
Display message if records are not found for entered values
MESSAGE S000.
EXIT.
ENDIF. " IF SY-SUBRC EQ 0
Looping Delivery item internal table to assign values to order
internal table
LOOP AT t_lips INTO fs_lips.
Get delivery date and customer number for delivery document number
from delivery header internal table
READ TABLE t_likp WITH KEY vbeln = fs_lips-vbeln
INTO fs_likp.
Get customer name for customer number from customer master internal
table
IF sy-subrc EQ 0.
READ TABLE t_kna1 WITH KEY kunnr = fs_likp-kunnr
INTO fs_kna1.
Get sales document number,item number,ordered quantity for delivery
document number,item number from sales item internal table
IF sy-subrc EQ 0.
READ TABLE t_vbap WITH KEY vbeln = fs_lips-vgbel
posnr = fs_lips-vgpos INTO fs_vbap.
Get goods issue date and purchase order number for sales document
number from sales header internal table
IF sy-subrc EQ 0.
READ TABLE t_vbak WITH KEY vbeln = fs_vbap-vbeln INTO fs_vbak.
IF sy-subrc EQ 0.
Get billing document number,billing item,billing quantity for delivery
document number,delivery item number from billing item internal table
READ TABLE t_vbrp WITH KEY vgbel = fs_lips-vbeln
vgpos = fs_lips-posnr INTO fs_vbrp.
Assign sales,delivery,billing fields into respective fields of sales
order internal table
IF sy-subrc EQ 0.
fs_order-vbeln = fs_vbap-vbeln.
fs_order-posnr = fs_vbap-posnr.
fs_order-erdat = fs_vbak-erdat.
fs_order-kunnr = fs_likp-kunnr.
fs_order-name1 = fs_kna1-name1.
fs_order-aufnr = fs_vbak-aufnr.
fs_order-matnr = fs_vbap-matnr.
fs_order-arktx = fs_vbap-arktx.
fs_order-kwmeng = fs_vbap-kwmeng.
fs_order-vrkme = fs_vbap-vrkme.
fs_order-vbeln1 = fs_lips-vbeln.
fs_order-posnr1 = fs_lips-posnr.
fs_order-lfimg = fs_lips-lfimg.
fs_order-vrkme1 = fs_lips-vrkme.
fs_order-vbeln2 = fs_vbrp-vbeln.
fs_order-posnr2 = fs_vbrp-posnr.
fs_order-fklmg = fs_vbrp-fklmg.
fs_order-vrkme2 = fs_vbrp-vrkme.
APPEND fs_order TO t_order.
CLEAR fs_order.
ENDIF. " IF SY-SUBRC EQ 0
ENDIF. " IF SY-SUBRC EQ 0
ENDIF. " IF SY-SUBRC EQ 0
ENDIF. " IF SY-SUBRC EQ 0
ENDIF. " IF SY-SUBRC EQ 0
ENDLOOP. " LOOP AT T_LIPS INTO FS_LIPS -
hi all,
hope all r doing fine?
anyway i have a query which is mentioned below:-
select field1,.....fieldn
from <dbtable1>
into corresponding fields of table itab
where <condition>.
select field1,...fieldn
from <dbtable2>
appending corresponding fields of table itab
where <condition>.
the above two select stmts retrieve same set of fields from two different database tables into same internal table itab..
now my question is ...........is any other way to change 2nd select statement without using appending correspondin fields
but the functionality should remain the same as it is after changing..................
bcos appending corresponding is causing performance problem in data retrieval.
thanx alot in advance.
for sure points will be given for all the helpful answers
JackHi,
You can use like that:
select field1,.....fieldn
from <dbtable1>
into corresponding fields of table itab1
where <condition>.
select field1,...fieldn
from <dbtable2>
appending corresponding fields of table itab2
where <condition>.
now u use:
loop at itab2 into w_itab2.
read table itab1 into w_itab1 with key w_itab1-<primary field> = w_itab2-<Primary field>.
if sy-subrc = 0.
append w_final into i_final.
else continue.
endif.
endloop.
*i_final table having all data ( i.e itab2 & itab1 data) -
Select query problem in JDBC sender adapter
Hello Experts,
We have a problem with PI sender adapter that PI has started to miss records in database some database records are missing and we are using the below selet query :
SELECT * FROM [database name].[dbo].[Material_Movement] WHERE [Process_Order_Number] = (Select TOP 1 [Process_Order_Number] FROM [database name].[dbo].[Material_Movement] WHERE ([PI_Read_Date] IS NULL AND [Movement_Type] = (SELECT TOP 1 [Movement_Type] FROM [database name].[dbo].[Material_Movement] WHERE [Transaction_Code] = 'xyz' AND [PI_Read_Date] IS NULL ORDER BY Created_Date ASC))) AND [Transaction_Code] = 'xyz' AND [Movement_Type] = (SELECT TOP 1 [Movement_Type] FROM [database name].[dbo].[Material_Movement] WHERE [Transaction_Code] = 'xyz' AND [PI_Read_Date] IS NULL ORDER BY Created_Date ASC) AND [PI_Read_Date] IS NULL ORDER BY [Transaction_ID] ASC
I am weak in select query could you please check and suggest how the query can be modified to avoid this issue .
Thanks,
SomenathHi ,
After looking into These Query .. I found ...
Your Query Will run such Kind of scenario ..
1.) Movement Type will be fetched from from below Query
SELECT TOP 1 Movement_Type
FROM database name.dbo.Material_Movement
WHERE Transaction_Code = 'xyz'
AND PI_Read_Date IS NULL
ORDER BY Created_Date ASC
2.) on the basis of abovr fetched moment code . your Query will fetch 1 Process Order number
Select TOP 1 Process_Order_Number
FROM database name.dbo.Material_Movement
WHERE ( PI_Read_Date IS NULL
AND Movement_Type = Moment Type will be same as 1.
3.)
After Getting 1 and 2 . Query will fetch Data from table " dbo.Material_Movement "
On the basis of ..
Movement_Type = value from 1.
Process_order_type = value from 2.
Transaction_Code = 'xyz'
ORDER BY Transaction_ID ASC
So check Missed record Fullfill this Condition or not ....................
If not ... You will get why they are not picked by your given Query ...........
Hope it helps ..
regards
Prabhat Sharma.
Maybe you are looking for
-
how can i import tables from a different schema into the existing relational model... to add these tables in the existing relational/logical model? plss help note; I already have the relational/logical model ready from one schema... and I need to add
-
Javascript to handle browser closure
Hi, my application needs to handle all the events of browser closure. The differents events are 1) close the browser using the "X" button 2)Close the browser window using ALT+F4 key 3)Close the window when its in fully minimised state and using the c
-
We have two brand new 13" Macbook Pros. With 10.6.7 they were very snappy in getting web pages on our Airport network. After updating to 10.6.8 we've experienced slow and stopped performance in accessing web pages. Operating these two computers si
-
Blackberry Z10 sharing Media not recognising the devices
Hi, Media sharing is not working in my BlackBerry Z10, Devices are visible in "Devices for sharing Media" and I have selected the desired devices however, in "select a device to play on" none of device is visible to select. I am trying to connect my
-
Finding Imported CD in iTunes 11
I just imported a Vanessa Williams CD (The Real Thing). When I search for it under album, it is listed. When I search under artist, the album is not listed under Vanessa Williams.