Help with Reading values from static table in a .pdf file
Hi guys,
Pls try to clear this doubt of mine.
I basically have 2 files. Both are .pdf extension and they have tables in them. I need to compare certain values in one file with the corresponding values in the other table in the second file.
I need to do this programatically in c# . net
I have tried using packages like pdfbox and stuff which convert the pdf file into text. But cant I get the table as an object or something using which I can access the required rows and columns?
Also, these tables are static information. They are not a part of a form or anything like that.
Please help me with this.
Thanks.
The document is corrupt. Try a backup.
Similar Messages
-
Help with listing records from two tables
Hi: I have two tables joined by the first field. The field is primary key in first table. Need help listing records from both tables with each record one line/record.
create table EVENTS (
event_key varchar2(64) primary key,
event_description varchar2(64),
create_time int
create table EVENT_UPDATES (
event_key varchar2(64) NOT NULL ,
update_description varchar2(64),
update_time int
insert into EVENTS values('Event1', 'This is event1', 1);
insert into EVENT_UPDATES values('Event1', 'Ticket created', 3);
insert into EVENT_UPDATES values('Event1', 'Event cleared', 10);
insert into EVENTS values('Event2', 'This is event2', 4);
insert into EVENT_UPDATES values('Event2', 'Ticket created', 6);
insert into EVENT_UPDATES values('Event2', 'Event cleared', 8);I want to print each record in EVENTS table as one line and corresponding records in EVENT_UPDATES as one line/record like this
Event1 1 This is event1
3 Ticket created
10 Event cleared
Event2 4 This is event2
6 Ticket created
8 Event clearedTIA
Raviselect case weight
when 1 then event_key
end key,
time_val,
description
from (
select event_key,
create_time time_val,
event_description description,
1 weight
from events
union all
select event_key,
update_time,
update_description,
2 weight
from event_updates
order by event_key,
weight
KEY TIME_VAL DESCRIPTION
Event1 1 This is event1
3 Ticket created
10 Event cleared
Event2 4 This is event2
6 Ticket created
8 Event cleared
6 rows selected.
SQL> SY. -
Help with getting values from request. Very Strange!!
Hello,
My very strange problem is the following.
I have created three dynamic list boxes. When the user select
the first list box, the second becomes populated with stuff
from a database. The third becomes populated when the second
is selected. Now, I have used hidden values in order for
me to get the selected value from the first listbox. The
following code is my first listbox:
<SELECT NAME="resources" onChange="document.hiddenform.hiddenObject.value = this.option [this.selectedIndex].value; document.hiddenform.submit();">
<OPTION VALUE =""> Resource</OPTION>
<OPTION VALUE ="soil"> Soil </OPTION>
<OPTION VALUE ="water"> Water </OPTION>
<OPTION VALUE ="air"> Air </OPTION>
<OPTION VALUE ="plants"> Plants </OPTION>
<OPTION VALUE ="animals"> Animals </OPTION>
</SELECT>
I use the getRequest method to get the value of hiddenObject.
At this time I am able to get the value of hiddenObject to populate
the second list box.
But, when the user selects an item from the second list box
and the second form is also submitted,
I lose the value of hiddenObject. Why is this??
The code to populate my second listbox is the following:
<SELECT NAME ="res_categories" onChange="document.hiddenform2.hiddenObject2.value = this.options[this.selectedIndex].value; document.hiddenform2.submit(); ">
<OPTION VALUE ="" SELECTED> Category</OPTION>
Here I access a result set to populate the list box.
Please help!!Form parameters are request-scoped, hence the request.getParameter("hiddenObject"); call after the submission of the second form returns a null value because the hiddenObject parameter does not exist within the second request.
A solution would be to add a hiddenObject field to your second form and alter the onChange event for res_categories to read
document.hiddenform2.hiddenObject.value=document.1stvisibleformname.resources.option[document.1stvisibleformname.resources.selectedIndex].value;
document.hiddenform2.hiddenObject2.value = this.options[this.selectedIndex].value;
document.hiddenform2.submit();You will then come across a similar problem with your third drop-down if indeed you need to resubmit the form...
A far better approach would be to create a session scoped bean, and a servlet to handle these requests. Then when the servlet is called, it would set the value of the bean property, thus making it available for this request, and all subsequent requests within the current session. This approach would eliminate the need for the clunky javascript, making your application far more stable. -
Please help with retrieving values from object stored in a vector
hi..
i have a class Magazine with 2 varibles name and price like this
class magazine
String name;
int price;
i have created a vector called selectedmag which stores objects of Magazine class... now each object will contain the name and price rite...
i want to print the values stored in vector ie i want to print the vector elements...like
Name: Mag1
Price: 10
which wil be present in object1...
and then
Name: Mag2
Price:15
which wil be present in object2...
and so on...
plz help...
if i give selectedmag.elementAt(position) i am not able to get the above output...plz help me.....
thanks,
Akshathahi,
Yes i have used a for loop to print the values... it goes like this
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.*;
class Magazine
String title;
int price;
public class sessiontrack1 extends HttpServlet
public void doPost(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException
res.setContentType("text/html");
PrintWriter out=res.getWriter();
HttpSession session=req.getSession(true);
// This is my vector
Vector myshoppingcart=(Vector)session.getAttribute("ShoppingCart");
if(myshoppingcart==null)
myshoppingcart=new Vector();
Magazine selectedMag=new Magazine();
selectedMag.title=req.getParameter("Title");
selectedMag.price=Integer.parseInt(req.getParameter("Price"));
//Putting Magazine object into the vector myshoppingcart
myshoppingcart.addElement(selectedMag);
session.setAttribute("ShoppingCart",myshoppingcart);
out.println("<html><body>U have selected these magazines");
out.println("<br>");
//Enumeration vEnum=myshoppincart.elements();
//here a am trying to print output the values
for(int i=0;i<myshoppingcart.size();i++)
out.println("Name:" + (Magazine)myshoppingcart.elementAt(i));
out.println("<br>");
out.println("Price:" + (Magazine)myshoppingcart.elementAt(i));
out.println("<br>");
out.println("</body></html>");
this is a servlet program.... plz suggest me how to print the values... in the following format
Name: Book1
price: Rs 10
Name:Book2
price:Rs 15
Akshatha -
Need help with getting variable from static
Hello,
What I am building is an application that prompts for username/password before it shows the main screen. Once they have successfully logged in, I need to assign the username that they used, in order to use it for a button event if the make any updates.
Here is the code that I have tried to use.
public String username;
///This set's the public variable username
public void setUserName(String UserName){
username = UserName;
/////////////////Here is where they login, and assign the name to setUsername
public static void main(String args[]) throws SQLException {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
JFrame frame = new JFrame();
JTextField userName = new JTextField();
JTextField passWord = new JTextField();
Object[] options = {"OK","CANCEL"};
Object[] msg = {"UserName:", userName, "Password:", passWord};
final JOptionPane op = new JOptionPane(msg, JOptionPane.PLAIN_MESSAGE, JOptionPane.OK_CANCEL_OPTION){};
JDialog dialog = op.createDialog(frame, "Please Login");
dialog.show();
int result = JOptionPane.OK_OPTION;
try {
result = ((Integer)op.getValue()).intValue();
}catch(Exception uninitializedValue){}
if(result == JOptionPane.OK_OPTION) {
String userID = userName.getText();
String passID = passWord.getText();
Main myMain = new Main();
myMain.setUserName(userID);
if(!userID.equals("") && !passID.equals("")) {
new Main().setVisible(true);
}else {
// user cancelled
////here is the button event that also will need the username
private void selButtonActionPerformed(java.awt.event.ActionEvent evt) {
Connection conn = null;
Statement stmt3 = null;
Statement stmt4 = null;
ResultSet rset3 = null;
ResultSet rset4 = null;
String usernum = null;
String xemu = null;
String loc = null;
String ustat = null;
String manager = null;
String dept = null;
String Add = "Add";
String Update = "Update";
String groupID = "9999";
Vector columnNames = new Vector();
Vector data = new Vector();
String Manager_info[] = {"managerindex", "managers", "managername"};
String Account_info[] = {"acctypeindex", "acctype", "acctypedesc"};
String Group_info[] = {"groupnum", "groups", "groupcode"};
String System_info[] = {"systemindex", "systems", "systemname"};
String Dept_info[] = {"departindex", "departments", "departname"};
String Xemu_info[] = {"xemuindex", "xemulator", "xemudesc"};
String Location_info[] = {"locindex", "location", "locdesc"};
String Ustatus_info[] = {"ustatusindex", "userstatus", "ustatusdesc"};
Date myDate = new Date();
SimpleDateFormat formatter = new SimpleDateFormat("dd-MMM-yy");
String today = formatter.format(myDate);
System.out.println(username);
I am trying to set the public username variable to what the person enters, however since I am creating a seperate instance of it, I don't believe it will work. Any help would be very much appreciated.
Thanks.
JoshI am developing in Netbeans. If I try to remove the static keyword from main(), netbeans canno't find a main to run. I have created the User class.
Here is the main again to show what I have done.
public static void main(String args[]) throws SQLException {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
User user = new User();
JFrame frame = new JFrame();
JTextField userName = new JTextField();
JTextField passWord = new JTextField();
Object[] options = {"OK","CANCEL"};
Object[] msg = {"UserName:", userName, "Password:", passWord};
final JOptionPane op = new JOptionPane(msg, JOptionPane.PLAIN_MESSAGE, JOptionPane.OK_CANCEL_OPTION){};
JDialog dialog = op.createDialog(frame, "Please Login");
dialog.show();
int result = JOptionPane.OK_OPTION;
try {
result = ((Integer)op.getValue()).intValue();
}catch(Exception uninitializedValue){}
if(result == JOptionPane.OK_OPTION) {
String userID = userName.getText();
String passID = passWord.getText();
user.setName(userID);
user.setPassword(passID);
if(!userID.equals("") && !passID.equals("")) {
//Auth.setUserName(userID);
//Auth.setPassword(passID);
new Main().setVisible(true);
}else {
// user cancelled
This set's the variables
Here is the beginning of the evt that I am using to try and get the data.
private void selButtonActionPerformed(java.awt.event.ActionEvent evt) {
Connection conn = null;
Statement stmt3 = null;
Statement stmt4 = null;
ResultSet rset3 = null;
ResultSet rset4 = null;
String usernum = null;
String xemu = null;
String loc = null;
String ustat = null;
String manager = null;
String dept = null;
String Add = "Add";
String Update = "Update";
String groupID = "9999";
Vector columnNames = new Vector();
Vector data = new Vector();
User user = new User();
String User = user.getName();
System.out.println(User);
String Manager_info[] = {"managerindex", "managers", "managername"};
String Account_info[] = {"acctypeindex", "acctype", "acctypedesc"};
String Group_info[] = {"groupnum", "groups", "groupcode"};
String System_info[] = {"systemindex", "systems", "systemname"};
String Dept_info[] = {"departindex", "departments", "departname"};
String Xemu_info[] = {"xemuindex", "xemulator", "xemudesc"};
String Location_info[] = {"locindex", "location", "locdesc"};
String Ustatus_info[] = {"ustatusindex", "userstatus", "ustatusdesc"};
Date myDate = new Date();
SimpleDateFormat formatter = new SimpleDateFormat("dd-MMM-yy");
String today = formatter.format(myDate);
String [] str = {
"EmpID", "Account", "System", "Type", "Status", "UserID", "Group"
This gives me a null on the println, how can I get the data that was entered in main()?
Thanks,
Josh -
RowKey[] keys = myView.getMyDataProvider().getAllRows();
Long val1;
Double val2;
if (keys!=null){
try {
for (int i=0;i<keys.length;i++){
val1 = (Long)myView.getMyDataProvider().getValue("tblalias.columnid1", keys);
val2 = (Double)myView.getMyDataProvider().getValue("tblalias.columnid2", keys[i]);
.... own code
} catch (Exception ex){
ex.printStackTrace();Never use the run continuous button. That is just a debug tool. You need a while loop around the read. In order to write to a table, you would need a shift register. The Express table might be different but I don't use Express VIs often. To plot, you would convert the string to a numeric and wire it to a chart.
p.s. Using the VISA Configure Serial Port with termination character enabled along with the VISA Bytes at Serial Port is a bad combination. If your instrument sends data with a termination character, you just need a constant wired to the byte count of the VISA Read. You would also eliminate the wait function. -
How to read the 'Input help with fixed values' of domain .
How to read the 'Input help with fixed values' of domain .
The domain has a Value range i want to read those values .
Are these values stored in any table ?
Plz help me i need it ver badly...
Thanks in Advance...Hi Chandra Shekhar,
To read the 'Input help with fixed values' of domain , you can use the function module : HR_P_GET_FIXED_VALUE_TEXT.
iIf you enter the domain name, you will find the fixed values entered in the domain.
These values are stored in a table DD07L(DD zero 7 L). Here the values are stored based on domain name.
See if it works for you.
Award points if its helpful.
Regards,
Bhanu -
Read data from ODS table using value mapping
hi all;
can anyone help on how to read data from ODS table using value mappingMudit,
Take a look at this blog,
<a href="/people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler">DB Lookup in Mapping</a>
Regards,
Bhavesh -
Reading Data from a Table With an Expert
Hi all - I'm trying to write an Expert in OWB that would read data from a table and create a new table based on that information. I have the table creation part down, but how can I read data from a table with an Expert? From what I've read, Experts only deal with metadata, and there is no mechanism in Experts to actually read data in the tables. Does OraTcl work in Experts? Has anyone ever came across this problem, and if so, how did you solve it? Thanks in advance for your time! - Don
Hi Don
Can also use Java and JDBC from within Tcl, see the routines in this file below, take modify or whatever;
http://blogs.oracle.com/warehousebuilder/ombora.tcl
source <dir>\ombora.tcl
set g_user scott
set g_upwd zzzzzz
set g_hostname localhost
set g_port 1521
set g_srvname ora111
oraconnect $g_user $g_upwd $g_hostname:$g_port:$g_srvname
oraselect "select * from emp" ""
As well as dumping the results to stdout (you probably want to comment that part out and change any other part you don't like), g_res is a ResultSet object you can use to do whatever.
Cheers
David -
Reading data from BSEG table with Non-key fields in where clause
Hi All,
I have to read data from BSEG table based on WBS element field (PROJK). As I'm not passing key fields to WHERE clause system couldnt run the select statement. Since BSEG is a cluster table I cant even create secondary index on PROJK field.
Could you please tell me, how to improve its performance.
Regards
Jaker.SELECT bukrs
belnr
gjahr
shkzg
dmbtr
hkont
lifnr
matnr
werks
menge
meins
ebeln
FROM bseg
INTO TABLE it_bseg
PACKAGE SIZE 10
FOR ALL ENTRIES IN it_final
WHERE bukrs EQ it_final-bukrs
AND belnr EQ it_final-belnr
AND gjahr EQ it_final-gjahr
AND buzei EQ it_final-buzei
AND hkont EQ it_final-hkont
AND werks IN s_werks.
By using package and fetch from BSEG table. gathering all other information to a final internal table.This will reduce the hit to database.And also try to put that data in hashed internal table which is it_bseg....then definetly improve the performance.
<REMOVED BY MODERATOR>
Dara.
Edited by: Alvaro Tejada Galindo on Apr 21, 2008 12:47 PM -
Reading values from JTextField and using them?
Hello,
I am trying to make a login screen to connect to an oracle database. Im pretty new to creaing GUI. I need help with reading the values from the JTextField and to be able to use them for my connection. So do I need to apply a listener? How do I go about doing that in this project. Thanks for any code or advice.
import java.util.*;
import java.awt.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.table.*;
import java.sql.*;
public class UserDialog
String databaseURL;
String driver;
String database;
String username;
String password;
String hostname;
String port;
UserDialog() {
getInfo();
static String[] ConnectOptionNames = { "Login", "Cancel" };
static String ConnectTitle = "Login screen";
public void getInfo() {
JPanel connectionPanel;
JLabel databaseURLLabel = new JLabel("Database URL: ", JLabel.LEFT);
JTextField databaseURLField = new JTextField("");
JLabel driverLabel = new JLabel("Driver: ", JLabel.LEFT);
JTextField driverField = new JTextField("");
JLabel databaseLabel = new JLabel("Database: ", JLabel.LEFT);
JTextField databaseField = new JTextField("");
JLabel usernameLabel = new JLabel("User Name: ", JLabel.LEFT);
JTextField usernameField = new JTextField("");
JLabel passwordLabel = new JLabel("Password: ", JLabel.LEFT);
JTextField passwordField = new JPasswordField("");
JLabel hostnameLabel = new JLabel("Host Name: ", JLabel.LEFT);
JTextField hostnameField = new JTextField("");
JLabel portLabel = new JLabel("Port: ", JLabel.LEFT);
JTextField portField = new JTextField("");
connectionPanel = new JPanel(false);
connectionPanel.setLayout(new BoxLayout(connectionPanel,
BoxLayout.X_AXIS));
JPanel namePanel = new JPanel(false);
namePanel.setLayout(new GridLayout(0, 1));
namePanel.add(databaseURLLabel);
namePanel.add(driverLabel);
namePanel.add(databaseLabel);
namePanel.add(usernameLabel);
namePanel.add(passwordLabel);
namePanel.add(hostnameLabel);
namePanel.add(portLabel);
JPanel fieldPanel = new JPanel(false);
fieldPanel.setLayout(new GridLayout(0, 1));
fieldPanel.add(databaseURLField);
fieldPanel.add(driverField);
fieldPanel.add(databaseField);
fieldPanel.add(usernameField);
fieldPanel.add(passwordField);
fieldPanel.add(hostnameField);
fieldPanel.add(portField);
connectionPanel.add(namePanel);
connectionPanel.add(fieldPanel);
// Connect or quit
databaseURL = databaseURLField.getText();
driver = driverField.getText();
database = databaseField.getText();
username = usernameField.getText();
password = passwordField.getText();
hostname = hostnameField.getText();
port = portField.getText();
int n = JOptionPane.showOptionDialog(null, connectionPanel,
ConnectTitle,
JOptionPane.OK_CANCEL_OPTION,
JOptionPane.PLAIN_MESSAGE,
null, ConnectOptionNames,
ConnectOptionNames[0]);
if (n == 0) {
System.out.println("Attempting login: " + username);
String url = databaseURL+hostname+":"+port+":"+database;
// load the JDBC driver for Oracle
try{
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
Connection con = DriverManager.getConnection (url, username, password);
System.out.println("Congratulations! You are connected successfully.");
con.close();
System.out.println("Connection is closed successfully.");
catch(SQLException e){
System.out.println("Error: "+e);
else if (n == 1)
System.exit(0);
public static void main (String args []) {
UserDialog ud = new UserDialog();
}thanks again,
Jamesthe reason why you can't get the text is because you are reading the value before some actually inserts anything in any fields.
Here is what you need to do:
Create a JDialog/JFrame. Create a JPanel and set that panel as contentPane (dialog.setContentPane(panel)). Insert all the components, ie JLabels and JTextFields. Add two buttons, Login and Cancel to the panel as well. Now get the username and password field values using getText() inside the ActionListener of the Login.
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class LoginDialog extends JDialog
String username, password;
public LoginDialog( ){
setTitle( "Login" );
JPanel content = new JPanel(new GridLayout(0, 2) ); // as many rows, but only 2 columns.
content.add( new JLabel( "User Name" ) );
final JTextField nameField = new JTextField( "" );
content.add( nameField );
content.add( new JLabel( "Password" ) );
final JTextField passField = new JTextField( "" );
content.add( passField );
JButton login = new JButton( "Login" );
login.addActionListener( new ActionListener(){
public void actionPerformed( ActionEvent ae ){
username = nameField.getText();
password = passField.getText();
// call a method or write the code to verify the username and login here...
content.add( login );
JButton cancel = new JButton( "Cancel" );
cancel.addActionListener( new ActionListener( ){
public void actionPerformed( ActionEvent ae ){
dispose(); // close the window or write any code that you want here.
content.add( cancel );
pack( ); // pack everything in the dialog for display.
show(); // show the dialog. -
Copy selected values from a table control into another table control
hi there,
as seen in the subject i need to copy selected values from a table control into another table control in the same screen. as i dont know much about table controls i made 2 table controls with the wizard and started to change the code... right now im totally messed up. nothing works anymore and i don't know where to start over.
i looked up the forums and google, but there is nothing to help me with this problem (or i suck in searching the internet for solutions)
i have 2 buttons. one to push the selected data from the top table control into the bottom tc and the other button is to push selected data from the bottom tc into the top tc. does somebody has a sample code to do this?you're funny
i still don't get it... can't believe, there is no tutorial or sample code around how to copy multiple selected rows from a tc.
here's my code, maybe you can tell me exactly were i have to change it:
tc1 = upper table control
tc2 = lower table control
SCREEN 0100:
PROCESS BEFORE OUTPUT.
MODULE status_0100.
MODULE get_nfo. --> gets data from the dictionary table
MODULE tc1_change_tc_attr.
LOOP AT it_roles_tc1
INTO wa_roles_tc1
WITH CONTROL tc1
CURSOR tc1-current_line.
ENDLOOP.
MODULE tc2_change_tc_attr.
LOOP AT it_roles_tc2
INTO wa_roles_tc2l
WITH CONTROL tc2
CURSOR tc2-current_line.
ENDLOOP.
PROCESS AFTER INPUT.
LOOP AT it_roles_tc1.
CHAIN.
FIELD wa_roles_tc1-agr_name.
FIELD wa_roles_tc1-text.
ENDCHAIN.
FIELD wa_roles_tc1-mark
MODULE tc1_mark ON REQUEST.
ENDLOOP.
LOOP AT it_roles_tc2.
CHAIN.
FIELD wa_roles_tc2-agr_name.
FIELD wa_roles_tc2-text.
ENDCHAIN.
FIELD wa_roles_tc2-mark
MODULE tc2_mark ON REQUEST.
ENDLOOP.
MODULE ok_code.
MODULE user_command_0100.
INCLUDE PAI:
MODULE tc1_mark INPUT.
IF tc1-line_sel_mode = 2
AND wa_roles_tc1-mark = 'X'.
LOOP AT it_roles_tc1 INTO g_tc1_wa2
WHERE mark = 'X'. -
> big problem here is, that no entry has an 'X' there
g_tc1_wa2-mark = ''.
MODIFY it_roles_tc1
FROM g_tc1_wa2
TRANSPORTING mark.
ENDLOOP.
ENDIF.
MODIFY it_roles_tc1
FROM wa_roles_tc1
INDEX tc1-current_line
TRANSPORTING mark.
ENDMODULE. "TC1_MARK INPUT
MODULE tc2_mark INPUT.
IF tc2-line_sel_mode = 2
AND wa_roles_tc2-mark = 'X'.
LOOP AT it_roles_tc2 INTO g_tc2_wa2
WHERE mark = 'X'. -
> same here, it doesn't gets any data
g_tc2_wa2-mark = ''.
MODIFY it_roles_tc2
FROM g_tc2_wa2
TRANSPORTING mark.
ENDLOOP.
ENDIF.
MODIFY it_roles_tc2
FROM wa_roles_tc2
INDEX tc2-current_line
TRANSPORTING mark.
ENDMODULE.
thx for anybody who can help with this! -
How to retrieve 2 values from a table in a LOV
Hi
I'm pretty new to APEX. I try to retrieve two values from a table using a LOV. I have a table named DEBIT with then columns SITE, NAME and KEY
I want to display NAME to the user in a list. When the user select an item from the list, I want to retrieve the data of the SITE and KEY column of this item in order to launch an SQL command based on this two values.
How to retrieve thes two values whant the user chooses an item from the list ?
I apologize for my english, being french.
Regards.
ChristianChristian,
From what I understood about your requirement, you want a 'select list with submit' which displays "NAME" and based on the value selected, you want to get the corresponding values for "SITE" and "KEY" from the table.
<b>Step 1: Create a select list with submit, say P1_MYSELECT </b><br><br>
Use something like this in the dynamic list of values for the select list: <br>
SELECT NAME display_value, NAME return_value
FROM DEBIT<br><br>
<b>Step 2: Create a page process of type PL/SQL block. Also create 2 hidden items P1_KEY and P1_SITE. </b><br><br>
In the PL/sQL, write something like:
DECLARE
v_key DEBIT.KEY%TYPE;
v_site DEBIT.SITE%TYPE;
CURSOR v_cur_myvals IS
SELECT KEY, SITE
FROM DEBIT
WHERE NAME = :P1_MYSELECT;
BEGIN
OPEN v_cur_myvals;
LOOP
FETCH v_cur_myvals
INTO v_key,v_site;
EXIT WHEN v_cur_myvals%NOTFOUND;
:P1_KEY := v_key;
:P1_SITE := v_site;
END LOOP;
CLOSE v_cur_myvals;
END; <br><br>
Then you can use these values for whatever purpose you need to.
Hope this helps. -
Reading values from lookup columns through custom workflow in SharePoint 2013
We are able to read the values of text, number columns through custom workflow (via coding) in SharePoint 2013. However, we are not able to read values from lookup columns. So, request anyone to provide help on this.
Thanks & regards,
AdityaHi,
According to your post, my understanding is that you want to read values from lookup columns through custom workflow in SharePoint 2013.
Since the workflow just doesn't get lookup fields, let's give it something static to work with instead. If we can capture the ID of the lookup field and store that as a static value in our list, the workflow can happily use that to look up our related.
For more information, you can refer to:
SharePoint 2013 Workflows and Lookup Columns
Thanks,
Linda Li
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Linda Li
TechNet Community Support -
How to retrieve the values from a table if they differ in Unit of Measure
How to retrieve the values from a table if they differ in Unit of Measure?
If no data is read
- Insure that you use internal code in SELECT statement, check via SE16 desactivating conversion exit on table T006A. ([ref|http://help.sap.com/saphelp_nw70/helpdata/en/2a/fa0122493111d182b70000e829fbfe/frameset.htm])
If no quanity in result internal table
- There is no adqntp field in the internal table, so no quantity is copied in itab ([ref|http://help.sap.com /abapdocu_70/en/ABAPINTO_CLAUSE.htm#&ABAP_ALTERNATIVE_1@1@]).
- - Remove the CORRESPONDING, so quantity will fill the first field adqntp1. ([ref|http://help.sap.com/abapdocu_70/en/ABENOPEN_SQL_WA.htm])
- - Then loop at the internal table and move the quantity when necessary to the 2 other fields.
* Fill the internal table
SELECT msehi adqntp
INTO TABLE internal table
FROM lipso2
WHERE vbeln = wrk_doc1
AND msehi IN ('KL','K15','MT').
* If required move the read quantity in the appropriate column.
LOOP AT internal_table ASSIGNING <fs>.
CASE <fs>-msehi.
WHEN 'K15'.
<fs>-adqnt2 = <fs>-adqnt1.
CLEAR <fs>-adqnt1.
WHEN 'MT'.
<fs>-adqnt3 = <fs>-adqnt1.
CLEAR <fs>-adqnt1.
ENDCASE.
ENDLOOP.
- You could also create another table with only fields msehi and adqntp and then collect ([ref|http://help.sap.com/abapdocu_70/en/ABAPCOLLECT.htm]) the data to another table.
Regards,
Raymond
Maybe you are looking for
-
EBS Importing Opening / Closing Balances
I am Importing EBS via transation FF.5 (APACS EBS), the file is importing all details except the Opening Balance and Closing Balance. I have checked Algorithm and they are set up. Using 4.7 Enterprise. Has anyone got any suggestions.
-
Why do I get %PIM-5-NBRCHG in the logs - 6509-E?
Hello, I just had a look at the logs on a pair of 6509's with SUP-720-3B. They have a etherchannel between them (just standard basic campus config - with OSPF) and I get these so so frequently, fairly new to multicast arena so I have no idea why this
-
Hi, I am trying to craete user in portal which is ending up with error " an error occured in the persistance.the original message was LDAP- error code 50-00000005 SecErr DSID-03151E04, Problem 4003(Insuff_Access_Rights) data 0 : something like taht.
-
Do New Earphones work with the 2nd Gen Shuffle?
So my dog chewed up my 2nd Gen Ipod Shuffle earphones and I wanted to replace them. When I went to the the apple online store they are only selling the new earphones for the 3rd Gen Shuffle, that has a remote and a mic. It only says it supports the 3
-
Need to deactivate structural auth. check for a custom Report
Hi all experts: I have a report that is based on PNPCE logical database and it displays work hours for a project, all non-sensitive information. We would like a wide range of users to have access to this but since this is based on PNPCE logical data