Name of the field that passes to a cursor
I would like the name of a field in the WHERE clause, in a cursor. In my application, I need to change the domain name to find out where the clause. I get an "Invalid number" error when I try the following:cursor l_sel2Cur (c_group varchar2)
is
Select email from test_grp_tbl6 where c_group = 1;
....
Select column_name
in l_colName
of listserv_grp_lk
where lg_id = v_listserv_grp;
................
Open l_sel2Cur (l_colName);
I hope that's enough explanation. I've seen examples where the value for the where clause is, but not where the name of the field itself. Is this possible?
Thanks in advance,
John
See the following example:
SQL> create or replace procedure print_enames(in_col in varchar, in_val in varchar2) is
2 c sys_refcursor;
3 v_name emp.ename%type;
4 begin
5 open c for 'select ename from emp where '||in_col||'='''||in_val||'''';
6 loop
7 fetch c into v_name;
8 exit when c%notfound;
9 dbms_output.put_line('ename='||v_name);
10 end loop;
11 end;
12 /
Procedure created.
SQL> select * from emp;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
---------- ---------- --------- ---------- --------- ---------- ---------- ----------
7369 SMITH CLERK 7902 17-DEC-80 800 20
7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300 30
7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30
7566 JONES MANAGER 7839 02-APR-81 2975 20
7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400 30
7698 BLAKE MANAGER 7839 01-MAY-81 2850 30
7782 CLARK MANAGER 7839 09-JUN-81 2450 10
7788 SCOTT ANALYST 7566 19-APR-87 3000 20
7839 KING PRESIDENT 17-NOV-81 5000 10
7844 TURNER SALESMAN 7698 08-SEP-81 1500 0 30
7876 ADAMS CLERK 7788 23-MAY-87 1100 20
7900 JAMES CLERK 7698 03-DEC-81 950 30
7902 FORD ANALYST 7566 03-DEC-81 3000 20
7934 MILLER CLERK 7782 23-JAN-82 1300 10
14 rows selected.
SQL> set serverout on
SQL> exec print_enames('mgr','7839')
ename=JONES
ename=BLAKE
ename=CLARK
PL/SQL procedure successfully completed.
SQL> exec print_enames('sal','1250')
ename=WARD
ename=MARTIN
PL/SQL procedure successfully completed.
SQL> exec print_enames('deptno','30')
ename=ALLEN
ename=WARD
ename=MARTIN
ename=BLAKE
ename=TURNER
ename=JAMES
PL/SQL procedure successfully completed.
Tags: Database
Similar Questions
-
WebApp search by ItemID - where to find the name of the field for that?
We want to search against the unique key that is the ItemID in WebApp points. We are unable to find information on what we call this ID name or the field element (in addition to the obvious ItemID is not working when we tried), and therefore we cannot search WebApps using the most important area in the Web application. I chatted to two agents different media who said they don't know or they think that this is possible because the system auto-assigns CAT_custom ID on it. Either the guys don't know what the system can actually do, but I can't believe that we cannot pick up against the WebApp item ID?
Anyone know the answer?
As a matter of interest, that I note that the ItemName and ItemDescription fields are called delicate that and so we can get against ItemName
Help!
Thank you
Wayne
They are correct. You cannot search by keyword ID search only appoints and
Description and you get form fields to separate search for custom fields. I have
you're not in this case workaround.
-
Write "Version name" in the field "title"?
I would export JPEGs from Aperture into lots and then import the images in the "Photos" application I would like to that the opening of 'Name of the Version' to become the "title" of the image in case of 'pictures '.
Is it possible to write the name of the Version of the opening of the batch to the export of field before (or during) 'Title' Aperture opening?
Thanks David
I don't see an easy way to do it.
Batch change presets allow only a constant string for the title field.
However, you can change the file name for the version name, if you use 'Apply to the original file' in metadata > Batch change dialog box.
As you probably know, the pictures does not use the names of files as the default titles, but you can use the script Script: batch change the titles to the w/Extension of file name in the Photos section user tip to copy the names of files in the title, once you have migrated the photo library.
Or modify the script to copy the version names in the field title in Aperture.
-
REST API - the internal names of the fields in the custom object
Hello
We have an old system that uses the SOAP API and I'm rewritten with the REST API. Before, with SOAP, you identify the fields object personalized with their internal names. Therefore, our system and stored that names in its database. Now, I'm facing a problem. as the REST API does not provide the internal names for the fields in the custom object, as their full names and IDs. Am I wrong? Is it possible to get the internal names through REST? I found, you can get this internal names through the API as a WHOLE, but is there really no way to get them using REST? It seems strange to me and I don't want to use in BULK as there limits for requests per day.
Hi Marc,
In bulk API endpoints are the best way to retrieve the details field you are looking for. Calls to retrieve this detail do not count against the daily API limits for the bulk API.
-
Save the PDF file as the name of the field in PDF format
Hi all
I have read this thread: https://acrobatusers.com/tutorials/how-save-pdf-acrobat-javascript and I still cannot understand this.
I want to have a custom of the button Save to my PDF form and have it save the filename with fields in my form. The names of the fields are 'Ready', 'NameofEvent', 'EventStartmdyy '.
so for example, the PDF is filled and returned to me with its name from default pdf as "Event application form update - 1.pdf", then I get it and click on the button, then it registers as 'DarinVegasTradeshowJune152015.pdf' and records them in a file specific to each time.
I read on a reliable access and put it in a javascript in the folder or on my computer? My colleague and I'll be the only person to save these, only on the two machines.
Hope you can help.
Thank you
I tried the following:
The correct syntax, that I, based on the returned for 'this.path' debugger
/HAUCACAM0007VS/shares/Marketing_bridge/Darin/'MasterTracker/EventRequestForms/1/test.PDF
so I changed the code of this
determine the path of the directory of the active document
Directory var = this.path.substring (0, this.path.lastIndexOf('/') + 1);
for this
determine the path of the directory of the active document
Directory var = ' / HAUCACAM0007VS/actions/Marketing_bridge/Darin /' MasterTracker/EventRequestForms/1 / '.
and it worked. I swear I've tried and some variations before.
Very interesting. I can send me this PDF file, open it without saving changes, click on save and point it to my repertoire that I wanted to.
Yay! Solved!
Thank you try67!
Yet once, for the sake of people Googling how...
---------------------------
I pasted this code into a text file, saved as a javascript (.js file), in the following Program Files > Adobe > Acrobat > Javascript, I also pasted into the folder where I will save the file.
- var mySaveAs = app.trustedFunction)
- {function (oDoc, cPath, cFlName)
- Make sure the path has trailing ' / '.
- cPath = cPath.replace(/([^/])$ /, ' $1 / ');
- try {}
- app.beginPriv ();
- oDoc.saveAs (cPath + cFlName);
- app.endPriv ();
- } catch (e) {}
- App.Alert ("Error during economy-" + e);
- }
- }
- );
Then, I created a button, it adds a javascript script. the "this .getField are looking for field names in my PDF,"Ready"is a field in my PDF which bears my name of sales managers, then, it adds a space beside it (+" "+), then go to the next field I want." It saves it in order to complete the pdf, then as SalesManager EventName 1 June 2015.pdf.
- determine the path of the directory of the active document
- Directory var = ' / HAUCACAM0007VS/actions/Marketing_bridge/Darin /' MasterTracker/EventRequestForms/1 / '.
- If (typeof (mySaveAs) == 'function') {}
- mySaveAs (this, directory, this.getField("RequestedBy").value + "" + this.getField("NameofEvent").value + "" + this.getField("EventStartmdyy").value + ".pdf");
- } else {}
- App.Alert ("Missing Save function. Contact the Forms Administrator ");
- }
Hope that helps anyone looking on the other to do so, it is quite easy once you know where to save the javascripts (and what to put in it), and then change another javascript code to meet your needs.
Thank you!
-
conditionally display name of the field page apex LABEL in the email of the Apex.
Hello
I'm using Apex email process.
I have a page where I have check conditions. ONLY WHEN the checkbox is enabled in the 'yes', I need to display this field in emails.
Please notify
field 1-birthday card order YES NO
field 2-marriage card order YES NO
If 1 is checked YES and 2 - is checked that NO, I need to insert only
The NAME of the field LABEL 1. like...
* 1 - birthday card order *. How? Please notify.
Thank you
KP
Published by: user8612301 on March 7, 2013 13:47You can query the integrated views apex
select LABEL from apex_application_page_items where application_id =110 and page_id = 18 //OR where ITEM_NAME = 'PX_ITEM_NAME'
-
How do I get the name of the file that is read by the file adapter
Hello
I read the file using the file adapter that I also want to pass the name of the file with the contents of the file
How can I do this, or how to get the name of the file that is read by the process.
Please advice
Thank you
YatanHi Yatan,
You can use the file in/out header WSDL to get the name of the file.
http://download.Oracle.com/docs/CD/B31017_01/integrate.1013/b28994/adptr_file.htm#CIAFJCCEKind regards
Yohanna. -
How to get all the names of the fields from a tcResultSet
Hi, im a connector to write to a file all the fields of the form encoding process.
to be like this:
User ID: username value
First name: First name value
Name: LastName value
I'm using the Process key instance for the tcResultSet.
I know that if I give a table or list the field names hard-coded, I can get the field values.
Like this
String fieldname = "FORM_UDF_USR_ID";
String response = formData.getStringValue (fieldName);
My question is, how can I get a list of the names of the fields in the tcResultSet so I don't need to provide
something like
formdata.getFieldlist ();?
Thank you.tcResultSet userSet = userIntf.findAllUsers (userMap);
If (userSet.getTotalRowCount ()! = 0) {}
String [] columns = userSet.getColumnNames ();
for (int i = 0; i)< columns.length;="" i++)="">
Logger.Debug (columns [i] + ":")
+ userSet.getStringValue (columns));
}Who give a shot.
-Kevin
-
I'm trying to adapt Windows to my new MacBook Pro with OS El Capitan.
I work remotely for a company and I want to connect my Mac to the server of the company.
My question is how to connect a MAc to a network drive with the permanently available connection. For example, in my old HP I went to my computer / connection to a network drive. I've selected a letter and note the name of the server that I wanted to be connected to. The connection was then shown with my other drive hard 'sections '; I want to say C:, D: (for recovery), e: (for tools) and then connecting to the external server has been shown with the selected letter.
There is no "letter" under OS X. It's a hangover very old of BACK, devices of mapping and volumes labeled mailbox.
If you are connected to your corporate network, you should see the available network volumes listed in the Finder, in ' my computer > network ", or with the command K to connect to a server.
You can create an alias for the volume and put it in the Dock, or leave on the desktop or put it somewhere else, and the next time you want to connect to this subject, simply double-click on it. You can also add the server address to your "favourites" in the connect to Server dialog box.
-
- Question
When I opened the window "save the Page under", the drop-down box file name indicates the files that have been saved a long time ago. It is not cleared by a function 'clear history' that I can find. How can I erase this?
Hello.
I think this is a related issue of Windows, because it is the Manager to save the windows file that we are talking about here (right?). You should contact Microsoft for help with this one, I think. You expect to be able to delete entries simply by touching delete on your keyboard when they are concentrated (that is how it goes for the removal of the form entries specific autocomplete in Firefox), but I have not tried.
I'm sorry I can't be more helpful.
-
Could you please tell me the name of the program that plays the files (mp3) begins with V and resembles a cone orange & white?
VLC.
-
What is the name of the table that has the name of the custom in the Oracle database Section?
What is the name of the table that has the name of the custom in the Oracle database Section?
Thank you
Nefertari
The names of the custom Sections are stored in commonExtendedAttributeML, the extended attribute table.
-
How can I get rid of the blue name and the date that is entered under the signature
How can I get rid of the blue name and the date that is entered under the signature
Yes! you see Configure text where you can uncheck date Logo etc...
For more information, see image
-
Creative Cloud Lightroom import records show that year and not the name of the file that I created
When I import files from an SD card to Lightroom, I import to an external drive as my file. Indicates the name of the folder to the year (2015) and not the name of the file that I created (Fort Worth, 12152015). This has happened with every import that I've done so far. How can I fix it?
The copy option is used to copy the files from your camera card. The Add option is used when the files are already on your hard drive. They must be copied, just added to the Lightroom Catalog. You can simply add the files that are located on a map of the camera. They must be copied to the hard drive first.
-
Can I make the fields that I created in Acrobat Pro MS justified downtown?
Hi everyone it should be so simple but really hitting my head. I try to get the fields that I created in Acrobat Pro ms to center then justify text when user types it is the Center not on the left side. I can set the size of text and other but cannot find how to make the above... Thank you
Yes, it can be done. Go to the properties of the field and under the Options box tick the box 'Allow Rich Text Formatting'.
Leave the form editing mode, click the field and press Ctrl + E. This will open the properties bar where you can set several formatting options for text, including to set it as "align justified."
Maybe you are looking for
-
On my Presario CQ60 renovated, built in the recovery D: partition / disk hard internal (250GB) is appx. 12 GB but is maxed out, red color, and play with her risk of crashing the entire operating system (done). Is there a setting I can do the d: / pa
-
Aloha, I can't install the Access Runtime SP2 update. I tried to put the Office CD in the DVD player while installing the update without success. I have also had no success when I tried to manually install the update. Please notify. Thank you.
-
How to record the numbers and words in the same file
Hello: I did a vi where I record the spectrum and its integration in different positions of a two-dimensional net. I save the information in two spreadsheet with the comand "write to file measure." Now, I am recording the parameters initial positions
-
Runtime error program: c:\program files\outlook express\msimn.exe
I get this error message when you use Outlook Express: "execution error program: c:\program files\outlook express\msimn.exe. I can restart OE and it will be authorized for a period of time but then returns the error message and it stops again... Help
-
HelloI have a request. I have a MSSQL database into two columns. One is a varchar and the second is the Image type. I would use these two fields filled to KSOAP2. I tried to send a picture in KSOAP byte array but it did not, probably, I sometimes con