Buliding a SELECT in PSP using fields from html form
Hi everyone, first of all forgive me my poor english.
I'm making "CV Base" in PSP as a school project. And I've got a search html form like this (simple version):
select list: Profession
text field: Age
And my question is... How to build a select in psp which will parse only given parameters? For example. I'm looking for C Programmer in any age so i select C Pogrammer from the list and leave afe field blank. So the SELECT should be sth like this: select * from Person where Profession like 'C Programmer'; But in another search i need a programmer who is 25 years old... So select has one more WHERE... I'm sure You all know what I mean
Please help me.
Martin
Hey, i wanna open cursor and don't know how to do this. Got this:
<%@ plsql parameter="f_wyk" type="varchar2" default="NULL" %>
<%! sel_str varchar2(1000) := 'SELECT imie, nazwisko, wiek, ulica, nr_domu, nr_lokalu, kod_pocz, miasto, nazwa_woj FROM Uczelnia ucz, Stanowisko stan, Jezyk jez, Wojewodztwo woj, Wyksztalcenie wyk, Adres adr, Osoba os, os_wyk ow, os_jez oj, os_sta ost, os_ucz ou WHERE nazwa_wyk LIKE :1 ...
<% OPEN cur FOR sel_str USING 'pod%'; %>
<% LOOP %>
<% FETCH cur INTO rosoba; %>
<% EXIT WHEN cur%NOTFOUND; %>
<%= rosoba.imie %>
<% END LOOP; %>
<% CLOSE cur; %>
and when i put <% OPEN cur FOR sel_str USING *'pod%'; %>* it works but i'cant use parameter <% OPEN cur FOR sel_str USING *<%=f_wyk%>*; %>
I have
Projekt\psp>loadpsp -replace -user system/system szukaj2.psp
ORA-20006: "szukaj2.psp": compilation failed with the following errors.
"szukaj2.psp", line 100, pos 31: PLS-00103: Encountered the symbol "<" when expecting one of the following:
( - + case in mod new not null out <an identifier>
<a double-quoted delimited-identifier> <a bind variable> avg
count current exists max min prior sql stddev sum variance
execute forall merge time timestamp interval date
<a string literal with character set specification>
<a number> <a single-quoted SQL string> pipe
<an alternatively-quoted string literal with character set specification>
<an alternatively-q
please help
Similar Messages
-
Fill in pdf form fields from html form
hi
i went to this site http://accesspdf.com/html_pdf_form/
and saw that it worked great
so i downloaded their code, and uploaded it to my site (php friendly) and it gives me an error that the pdf file is corrupted
http://inovasphere.com/pdf/pdf_form_interface.php
can someone tell me what i am doing wrong? i made no changes to their code, just uploaded as is
OR
if there is another way to do this i am all ears. i want to user to fill in some fields online and then they click enter and then the fields of
a pdf file in the same directory get filled in, and it is then delivered to the user, and the fdf file is emailed out to the site owner
thanks!i stared at that page for what seemed like an eternity before i even posted here and they dont say how to install pdftk on my godaddy server that hosts my site
is that what i am supposed to do? seems like a massive hassle. i have installed it on my PC and i use it with the DOS prompt, but there is a complete disconnect from what i do with the pdf file (dump_fields) and when i upload it to my site.
i still get 'wrong format' 'corrupted file' error
so unfortunately the site u are referring me back to doesnt tell the reader how to get the thing to work on their own site, which is why i posted here in the first place, hoping somebody would know. :)
thanks for the reply tho .... -
Protect Form Fields from "Clear Form"
I've created PDF Form with various fields, and created button to make readonly for all the Field data. This PDF Form will be used by 3 persons in different section. How to protect all filled text fields from "Clear Form" function in Form Tool.
Once the Form fields are filled by 1 person, the other person can not use the "Clear Form" function to clear all filled fields. Please guide to to protect filled text,checklist fields from "Clear Form".If one flattens the form fields then they become context and are no longer form fields. It is possible to selectively flatten PDF content like annotations, form fields, page ranges, and by the "print/no print" property for Acrobat versions 6 or above.
The flattenPages is not available to Reader.
PDFScripting.com has a tool bar button that can perform selective flattening. -
Using methods from another Form C#
Hello!
I'm having some trouble using methods from one Form in another one. Here's the deal:
This is a snippet from my 'main' form:
public partial class PRINCIPAL : Form
//some variables here
Form2 Config = new Form2();
Form3 Cadastro = new Form3();
public PRINCIPAL()
InitializeComponent();
//code goes on and on
//Here's the method I want to call on the other forms (Form2 and Form3)
public void salva_banco()
this.Validate();
this.projetoBindingSource.EndEdit();
this.modulosBindingSource.EndEdit();
this.funcaoBindingSource.EndEdit();
this.estadosBindingSource.EndEdit();
this.tableAdapterManager.UpdateAll(this.database1DataSet);
//And here is where I show Form3
private void projetoDataGridView_CellDoubleClick_1(object sender, DataGridViewCellEventArgs e)
Cadastro.ShowDialog();
//And here is where I show Form2
private void funcaoDataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
Config.ShowDialog();
}// And the code keeps on going}
And this is a snippet from Form3:
public partial class Form3 : Form
public Form3()
InitializeComponent();
private void Form3_Load(object sender, EventArgs e)
this.projetoTableAdapter.Fill(this.database1DataSet.Projeto);
this.modulosTableAdapter.Fill(this.database1DataSet.Modulos);
private void btnOK_Click(object sender, EventArgs e)
if (projetoTextBox.Text == "")
MessageBox.Show("some text here");
else
////// HERE IS THE PLACE WHERE I WANT TO CALL THE METHOD! "salva_banco()"
I've read lots of suggestions but none satisfied my condition.
I appreciate any help.
Thanks.You need to find the instance of the PRINCIPAL form to call the method on. If you know there will always be exactly one open you can use:
var principalForm = Application.OpenForms.OfType<PRINCIPAL>().Single();
principalForm.salva_banco();
David
David http://blogs.msdn.com/b/dbrowne/ -
Can't pass parameter from HTML form of multipart/form-dta type to JSP
I am using request.getParameter(passed variable name) to pass data from HTML form to JSP with no problem. WHen I try to pass data from HTML form of multipart/form-dta type to JSP as following:
< form enctype="multipart/form-data" name="theForm" method="post" ACTION="http://titan.ssd.loral.com:7778/ifs/jsp-bin/ifs-cts/stringsecond.jsp">
The passed value is null. Why?
How can I pass data successfully from this form to JSP?
How can I pass data from JavaScript to JSP?
Thank youI am using request.getParameter(passed variable name)
to pass data from HTML form to JSP with no problem.
WHen I try to pass data from HTML form of
multipart/form-dta type to JSP as following:
< form enctype="multipart/form-data" name="theForm"
method="post"
ACTION="http://titan.ssd.loral.com:7778/ifs/jsp-bin/if
-cts/stringsecond.jsp">
The passed value is null. Why?because the jsp most likely does not handling of POST parameters like this.
How can I pass data successfully from this form to
JSP?jsp's are not meant to read such amounts of data. this (= uploading) is a typical task for a specialized servlet. there you have full control over input and output. if you need to, you can still forward to a jsp after processing in the servlet.
How can I pass data from JavaScript to JSP???? i'm not sure what exactly you mean. normally you put it into an url and submit it.
robert -
JEditorPane can't handle POST from HTML form?
I posted this before but i never got an answer so i'll try again :-)
Im running a tomcat server were i have a jsp script that uploads files to the server. What i need to do to is to use a regular java application for the rest of the "project" im working on.
And i can get the JSP page to be displayed properly using JEditorPane but i cant get the html FORM POST in the JSP to execute... i dont know if theres some limits in JEditorPane or if im just using the wrong type of approach on this one.
This is the server
http://chilly-schrimp.kicks-ass.org/uploadbean/SimpleUpload.jsp
(only works if my computer is turned on)
Heres the code:
=======================================================================
import javax.swing.*;
import javax.swing.event.*;
import java.io.*;
public class JSPtest {
public static void main(String[] args) {
JEditorPane pane = null;
try {
pane = new JEditorPane("http://chilly-schrimp.kicks-ass.org/uploadbean/SimpleUpload.jsp");
catch (IOException ex) {
ex.printStackTrace(System.err);
System.exit(1);
pane.setEditable(false);
// Add a hyperlink listener.
final JEditorPane finalPane = pane;
pane.addHyperlinkListener(new HyperlinkListener() {
public void hyperlinkUpdate(HyperlinkEvent ev) {
try {
if (ev.getEventType() == HyperlinkEvent.EventType.ACTIVATED)
finalPane.setPage(ev.getURL());
} catch (IOException ex) { ex.printStackTrace(System.err); }
JFrame frame = new JFrame();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setContentPane(new JScrollPane(finalPane));
frame.setSize(350,400);
frame.setVisible(true);
=======================================================================
any suggestions??
thanx
/ericI am using request.getParameter(passed variable name)
to pass data from HTML form to JSP with no problem.
WHen I try to pass data from HTML form of
multipart/form-dta type to JSP as following:
< form enctype="multipart/form-data" name="theForm"
method="post"
ACTION="http://titan.ssd.loral.com:7778/ifs/jsp-bin/if
-cts/stringsecond.jsp">
The passed value is null. Why?because the jsp most likely does not handling of POST parameters like this.
How can I pass data successfully from this form to
JSP?jsp's are not meant to read such amounts of data. this (= uploading) is a typical task for a specialized servlet. there you have full control over input and output. if you need to, you can still forward to a jsp after processing in the servlet.
How can I pass data from JavaScript to JSP???? i'm not sure what exactly you mean. normally you put it into an url and submit it.
robert -
How to add into dynamic selection criteria (FBL1N) - custom field from LFB1
Hello all,
i have following problem. I added new customer field into table LFB1 (Z* field). And now i need to use this field as dynamic selection criteria in transaction FBL1N. I enhanced selection view for logical database KDF - i have created new customer view and I added my new field from LFB1. It is OK, i see this field in dynamic selection criteria in FBL1N but if i try to select according that Z* field, short dump occured.
open cursor with hold LC_KRED for select (VF_KRED_FIELDS)
from <b>VF_KRED</b>
where LIFNR in KD_LIFNR
and BUKRS in KD_BUKRS
and LAND1 in KD_LAND1
and KONZS in KD_KONZS
and VBUND in KD_VBUND
and AKONT in KD_AKONT
and BUSAB in KD_BUSAB
and (VF_KRED_WHERE)
Problem is in VF_KRED - this is database view (LFA1 joins LFB1). This view has no Z* fields and therefore it cannot be use in statement above -> dump.
Is needed repature of standard - enhancement of view VF_KRED?
Thank you very much.Hi guys,
thanks so far. I managed to show prompts in the report. But still my problem is nor 100% solved
I would like t achieve that the filtered criteria in the report title is separated through a comma like in the report filter summary - e.g.: {001, 002, 003, 004} followed by just 1chart/table that is including the whole information.
When I however just drag a variable into the report it automatically created different sections, right? Like ........ table, chart, whatever... .......table chart whatever........
Regards -
Hi There,
In SAP GRC 10.0, our team had an issue where we could not add duplicate fields from separate table (see ERROR: Select Currency/UoM field for the selected analyzed fields). This was resolved by the SAP Note 1904313/ 1904314 (http://service.sap.com/sap/support/notes/1904313).
We upgraded our system to SAP GRC 10.1 SP05 and could now add the duplicate fields from separate tables. SAP Note 1904313/ 1904314 was part of SAP GRC 10.1 SP03 so it makes sense that we, in a higher version (SP05), would be able to do this.
The issue now is when we add the duplicate fields from different tables and run the Ad-hoc Query to test if the data source works correctly, the No Data Selected warning persists. This means that the data source provides no data for analysis, which is required to write our business rules.
Below is an example:
Basic data source with just one currency reference field EBAN-WAERS.
When you run the Ad-Hoc Query you receive data.
Basic data source with second currency reference field EKKO-WAERS.
When you run the Ad-Hoc Query no data is found.
Please also make reference to the following thread logged by my colleague (ERROR: Select Currency/UoM field for the selected analyzed fields)
Any assistance to receive data with duplicate fields from separate tables will be highly appreciated.
Thanking you in advance.
Regards
Gary KhanHi
following are the error messages from dump
hrtText
There is already a line with the same key.
hat happened?
Error in ABAP application program.
The current ABAP program "SAPLCKMS" had to be terminated because one of the
statements could not be executed.
This is probably due to an error in the ABAP program.
rror analysis
You wanted to add an entry to table "\FUNCTION-POOL=CKMS\DATA=T_DYN_CKMLCR",
which you declared
with a UNIQUE KEY. However, there was already an entry with the
same key.
This may have been in an INSERT or MOVE statement, or within a
SELECT ... INTO statement.
In particular, you cannot insert more than one initial line into a
table with a unique key using the INSERT INITIAL LINE... statement.
rigger Location of Runtime Error
Program SAPLCKMS
Include LCKMSF01
Row 226
Module type (FORM)
Module Name DYNAMIC_PERIOD_CLOSING
Source code where dump ocured
222
223 APPEND ht_ckmlpp TO t_add_ckmlpp.
224 APPEND LINES OF ht_ckmlcr TO t_add_ckmlcr.
225 INSERT ht_ckmlpp INTO TABLE t_dyn_ckmlpp.
>>>> INSERT LINES OF ht_ckmlcr INTO TABLE t_dyn_ckmlcr.
227 ENDWHILE.
Also I guess there is problem with material ledger in R/3 side
I have never worked on material ledger before so dont hav idea of Tcode and tables in SAP R/3 for material ledger.
Thanks
Navneet -
Using Fields from PDF when saving
Im looking on how to use fields in a pdf form when saving the form.
ex. Incident Report
Staff open up the form. Put in the information. Want it so when they save it puts the clients name and date in the save as. So they open Incident_Report.pdf when they save it would be Incident_Report_ClientsName_Date.pdf Yes the staff could type that in that way but want to make it as easy for everyone involved.So let's say you have the following fields in your file:
Incident_Report
ClientsName
Date
You can then add this code to the file's WillSave action (under Tools - JavaScript - Set Document Actions):
var newFileName = this.getField("Incident_Report").valueAsString + "_" + this.getField("ClientsName").valueAsString + "_" + this.getField("Date").valueAsString + ".pdf";
app.response("Please copy the text below and use it as the new file-name:","", newFileName)
Of course, you can adjust the message to the user, and even the format of the file-name, although I've used the format you specified. -
Need to get the values from "Signed" field from PDF form.
Hi,
This is Dinesh. I am PHP Developer. My issue is "I am not able to get the value of "signed" field from the PDF form when the form has been submitted.". I want to get the Digital Signature value of that field and i need to store it in the DB.
Please help me here Or Please forward this issue to any of the PHP developer who solved this issue and let me know.
Thanks & Regards
DineshHi Vikas,
you can use this badi MRM_WT_SPLIT_UPDATE, the method will be WHTAX_SPLIT_UPDATE
in this badi please see the importing and exporting parameters, you will get the values of withholding tax code as TE_RBWS in export parameters.
Please search in google or SCN you will get how to use it. -
Hi APEX users and developer, especially forum's active users, please get me rid of this problem because it is really very bad situation.
I have a real trouble with application. It behaves unusual. Application is used by 60 users but only 3 of them have these problem and they can not use the application anymore.
Application is
http://apex.oracle.com/pls/apex/f?p=70547
After fields are filled and some rows checked from tabular form in page, user submits the page. Process called newReyestr calls plsql procedure from package with inputs from page. But only same 3 users get empty fields in plsql code. I see it just after when the first line stepped in procedure.
So, "what is the problem?"Hi NoGot,
you know, I have not written big quote. The code was big. But it has no any meaning. Because problem is in first line. No need to understand it.
There is no any difference between those users. They also tried it from different browser and even computers.
BTW: I am not russian. -
Hi,
I am required to create a large number of input forms. For each form item, there is a heading to describe what the form item collects and also additional descriptive text, such as units of measurements etc.
I intend to create a report that will loop through and display this captured data on a per day basis. As there could be several forms of data multiplied over several days or weeks, this will return a lot of data
eg.
Day 1
Data 1
Data 2
Data 3 etc...
Day 2
Data 1
Data 2
Data 3 etc...
Day 3
Data 1
Data 2
Data 3 etc...
etc........
In addition to the data captured in the database, i also need to furnish the returned data in the report with the headings and descriptive text that was on the forms so that the context of the data is apparent.
I have thought about how i may acheive this
1. check each data item returned and append the appropriate text (could involve hundreds of checks against hundreds of data items....Yikes seems like a bad way to do this
2. maybe theres another way....reading around i wondered if XML could be used ( i have no experience with XML)
if the form was constructed with XML, and when the report runs, the returned data is able to be linked to the appropriate XML section and the descriptive text could be appended, rather than be subjected to numerous if...else statements....is this feasible with XML? how could i achieve this?
Sorry if this is unclear or not what XML is about and i'm way off...I'm learning this stuff as i go along so only have the internet and forums to bounce ideas off.
Thanks for reading this and if you've got any ideas about how i might achieve this with XML or not...i'm very open to suggestions
CheersDatabase is MySQL
SnakEyez02 wrote:
Ok, let's take this one step at a time. First what database type is this going into? Pointing you in the right direction for that is the best place to start.
>> MySQL
Next when you talk about returning the data to a report, are you using a reporting service or what are you trying to do here?
>> HTML/PHP report created with Dreamweaver with queries to recordset
Depending on what needs to be done, the type of database and the complexity of the data, I have found that simply entering the data into the database and running a query out of a Sharepoint server or even Excel will usually suffice unless there is something in play that we don't know about.
>> Yes i can query the database and use those results, what i also want to use is the extraneous elements, such as headings, descriptive text e.g for an input field that captures temperature, you would have
Heading Input element Descriptive text
Temperature: [ Input temp in box here] degree centigrade
I want to know if there is a way of reusing these from my forms into my report by using XML, rather that some onerous checking process to append the text to returned data.
Thanks for taking the time to consider this.. -
How to keep the input field from PDF Form to RTF
Hi,
I'm looking to keep the input fields from my pdf form document to Rtf so I can use them in my Rtf document.
Regards,
AlanGood day Alan,
I'm afraid that's not possible as form fields in a PDF file have no equivalent either in a Word format (.docx/.doc) or within the Rich Text Format (.rtf). That data is simply stripped during the conversion as there's no equivalent available.
Kind regards,
David
Acrobat Community Manager
Adobe Systems -
Using xsgl:insert-request to insert non-English character data from HTML form
I tried to insert a text written in French and pasted into an HTML form into my database following the recipe from the XSQL release notes.
The table:
create table content_object (
id number(9) constraint pk_content_object primary key,
author number(9),
title varchar2(256),
abstract varchar2(1024),
object_type_id number(9),
content_meat clob,
XML file the form is posted to:
<?xml version="1.0"?>
<xsql:insert-request connection="demo"
xmlns:xsql="urn:oracle-xsql"
table="content_object"
transform="article_form_to_content_object.xsl"/>
article_form_to_content_object.xsl:
<?xml version = '1.0'?>
<ROWSET xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xsl:version="1.0">
<xsl:for-each select="request/parameters">
<ROW>
<TITLE><xsl:value-of select="title_field"/></TITLE>
<ABSTRACT><xsl:value-of select="abstract_field"/></ABSTRACT>
<CONTENT_MEAT><xsl:value-of select="content_field"/></CONTENT_MEAT>
</ROW>
</xsl:for-each>
</ROWSET>
The result was:
<ROW num="2">
<ID>6</ID>
<TITLE>Le go</TITLE>
<ABSTRACT>Vin bouchonn</ABSTRACT>
<CONTENT_MEAT>Des conditions de conservation au tant d</CONTENT_MEAT>
</ROW>
All strings were cropped at the point where the first accented character appeared.
Any idea why this is happening? With English texts it works just fine.
MaciejAnother user hit this problem this week. I debugged it and posted the reply in the discussion thread:
http://technet.oracle.com:89/ubb/Forum11/HTML/002799.html
It's a JDK bug in character set conversion that has a simple workaround, just indicate the ISO-8859-1 encoding on your XSQL page. See the end of this other thread for details. -
Update fields from Adobe Form to Table
Hello,
I want to integrate Adobe Form into Webdynpro ABAP Application in which I want to have 2 fields which need to be updated to a DB Table.
For this first I created an Interface in Transaction SFP , added 2 import parameters of type <Table Type>-<FieldName>. Then I created a Webdynpro Component created a new I Interactive Form UI Element and binded the Context of the Form to the Interface.
Then I added 2 fields to the form from Data View . Everything is fine but when I run the Webdynpro Application the fields are not available for Input.i.e. They are in the ReadOnly Mode.
The 'enabled' property of the Interactive Form is checked.
Please help.
Any help would be highly appreciated.
Thanks.
Edited by: SAPEPDeveloper on Feb 7, 2011 11:45 PMHi,
The process explained is ok, but I can explain you a better way.
1) Create the webDynpro Component first.
2) Create the context nodes as per the requirement.
3) From the 'integration' panel drag and drop the Interactive form UI element into the view.
4) Bind dataSource to root context node.
5) Check enabled property true.
6) Give a template source name (ZName).
7) On double clicking the template source, system will prompt you to enter the interface name. Map context node to the interface.
8) Interface gets created automatically and the lifecycle designer gets opened.
9) Goto the properties tab and give layout type as 'ZCI Layout'
10) Drag and drop required fields from the data view to the layout designer.
11) Insert webdynpro script from the Utilities
12) Edit -> Form Properties -> Defaults -> XDP Preview Format should be dynamic
13) Drag and drop 'Submit Button' from Library palette -> Webdynpro native controls
On clicking the submit button at runtime you will get the control in the webdynpro submit event.
Above all these you have to check with your basis team, that the 'usage credentials' have been applied while configuring the ADS. Go to SE38 and run the program 'FP_TEST_IA_01' and check whether it is giving an error message or not.
Hope this Helps.
Thanks & Regards,
Sanoosh
Maybe you are looking for
-
Can someone help me with this program?
Can someone make this program for me? Make a Java-webapplication containing a few webpages (html-files and servlets, but NO jsp's). With this application you can get bankdata from a database, for example: page 1: html-file: Welcome on the website, ty
-
How to get the cancel event of inlineDocument-style dialog.
Hi experts, My customer has a question about ADF dialog framework. When we open new inlineDocument-style dialog from af:commandButtton, how can we get dialog cancel event? [Sample code] <af:commandButton id="cb2" action="dialog:test" windowModalityTy
-
How to embed quicktime movie in keynote
Can I embed or insert a quicktime video within a Keynote Presentation? I was able to insert my quicktime file but only see a picture. Not able to play the movie.. Any suggestions? Thanks
-
Website opens in bookmarks window
If the bookmarks window is open, this url, http://www.xe.com/ucc/convert.cgi?Amount=1,000.00&From=GBP&To=EUR opens '''inside''' the bookmark window if it is just left-clicked
-
BAM-06146 and BAM-01265 Faults
HI, I am getting below fault when i am pushing payload to BAM Data Object using BAM Adapter in BPEL flow. Is there a problem with payload( according to BAM-06146) or tablespace problem (according to BAM-01265) or any other problem is there. Please he