Surprise behaviour of select in forms 4.5
Hi All,
I am working on modification of a few old forms by some other programmer. a specific select statement is selecting null values
SELECT max(DOCNO), max(UNIT_CODE) INTO STKSAL_DOCNO,:GROUP_COMP_CODE FROM DOHEAD WHERE DEFACNO = :BLOCK1.DOCNO;
when I run the query in plsql it gives proper result but in forms its giving null values. it is finding the record as it is not going to exception but the values selected are null. seems to be a simple problem but i am not finding any solution. I've tries trim functions and all I could think of.
Can anybody please suggest something??
Thanks a lot in advance.
Warm Regards
Vivek Bajaj
Hi,
I'd check if the where clause really is what it needs to be
Frank
Similar Messages
-
Printer selection in Forms 10g
Hello,
I am looking for a suggestion, to realize a printer selection in Forms 10g.
For a migration I have to replace the command
win_api_dialog.select_printer with something similar.
Some threads suggest to implement a java class.
Under
How i select printer in Forms9i
exist an example.
The implementation there is based on the JDK 1.4.
I need an implementation based on JDK 1.3.
Inside of the JDK 1.3 exist only a simple printer dialog.
(compare http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4645377 )
Probably exist the option to use the C-API of WebUtil. The C-API could be used to start a printer dialog of a dll. I like to avoid this option, but if you an example for that option, I appreciate to see an example for that.
In all other respects, I hope on your suggestions.I invest some more time on that topic, but did not found a solution to display a printer selection on the client.
The only thing that i found in forum was that you can read the standard printer out the registry. But I would need all local installed printers.
I hope on your help. -
Can we selectively flatten form fields in a PDF file?
I have a PDF with some form fields in it. I want to selectively flatten a few form fields in the PDF using a java API. I have checked the documentation and found a method transformPDF in the OutputServiceService. But this method flattens all the form fields in the PDF document.
Can we selectively flatten form fields in a PDF file? If yes how?
This was possible in Adobe Document Server V6.
Regards,
RaghaYou will need an event in the form that will indicate that you want the flattening done. Once you determine what that is it is simply a single statement for each field:
fieldname.access = "readOnly";
Now when the form is rendered, the user will not be able to get access to these fields. -
Several questions about multiple selects on Forms.
I want to create a form with a multiple select list. I know I can do this if I based the form off a table, correct? I mean, I try but the form does not allow me to put multiple selects on a form based off a table
So what I did was create a procedure that has a parameter of type owa_text.vc_arr, but the form freaks out. It just hangs at "Retrieving Form Data".
So, what gives? Can I use multiple select lists on forms? If not, why have them in Portal?
RichHi Richard,
In Portal it's not possible to create a form with a multiselect.
Oracle has remove this feature from Webdb. Don't ask me why.
The Multiselect is now only available for the parameter forms or reports. You can use them in a where clause like WHERE DEPTNO in :v_dept.
Regards
Arnoud -
I'm a rookie with a complex issue:
I'm having trouble working through an upload/select option
within my form. I have successfully created a form for a
client to select from a variety of photos to create a new
record in the database. Problem is, they want me to combine
the menu selection with an option to upload a file to the
server and record the filename within the database. I'm
familiar with creating upload forms, but not in combination
with a menu selection as an option and processing it. I told
you I was a rookie.
My db table 'staff' has several fields with one being
'staff_photo' for the filename. I'm not sure how to combine
the processing script with the current one I have. I've been
piecing together bits to try to make this work, but I'm
coming across some snags:
#1 The record is not recording in the database, nor is the
filename copying to the server.
#2 None of my error messages are coming up if something is
working incorrectly
#3 After the script is successful, it should load up the
page 'staff_list.php'.
I was hoping to have had this figured out by now,
considering I've been on this for over a week and still
haven't found the solution. I hope someone can help me out
with this.
My form is as follows:
[HTML]<form method="post" name="form1"
enctype="multipart/form-data" action="<?php echo
$editFormAction; ?>">
<table width="80%" align="center" cellspacing="0"
border="0">
<tr valign="baseline">
<td nowrap align="right">Select Photo:</td>
<td><select name="staff_photo">
<option value="">No photo</option>
<?php buildImageList('../../photos/staff/'); ?>
</select>
<span class="small"> (If
there is no photo
available, please choose 'No-Phot-Available.jpg' or 'No
photo')</span></td>
</tr>
<tr valign="baseline">
<td nowrap align="right">Upload Photo: </td>
<td><input name="staff_photo" type="file" />
</td>
</tr>
<tr valign="baseline">
<td nowrap align="right">Name:</td>
<td><input name="staff_name" type="text"
class="widebox"
value="" size="32" maxlength="150"></td>
</tr>
<tr valign="baseline">
<td nowrap align="right"> </td>
<td><input type="submit" value="Insert
record"></td>
</tr>
</table>
<input type="hidden" name="MM_insert" value="form1">
<input name="staff_photo" type="hidden" id="staff_photo"
/>
</form>[/HTML]
And here's the process:
[PHP]$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" .
htmlentities($_SERVER['QUERY_STRING']);
if ((isset($_POST["MM_insert"])) &&
($_POST["MM_insert"] ==
"form1")) {
define('UPLOAD_DIR', '../../photos/staff/');
$file = str_replace(' ', '_',
$_FILES['staff_photo']['name']);
$permitted = array('image/gif', 'image/jpeg',
'image/pjpeg', 'image/png');
$typeOK = false;
foreach ($permitted as $type) {
if ($type == $_FILES['staff_photo']['type']) {
$typeOK = true;
break;
if ($typeOK) {
switch($_FILES['staff_photo']['error']) {
case 0:
if (!file_exists(UPLOAD_DIR.$file)) {
$success =
move_uploaded_file($_FILES['staff_photo']['name'],
UPLOAD_DIR.$file);
if ($success) {
$insertSQL = sprintf("INSERT INTO staff (staff_name,
staff_position, staff_subposition, staff_desc, staff_photo,
staff_spec_1, staff_spec_2, staff_spec_3, staff_spec_4,
staff_spec_5) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s,
%s)",
GetSQLValueString($_POST['staff_name'], "text"),
GetSQLValueString($_POST['staff_position'], "text"),
GetSQLValueString($_POST['staff_subposition'], "text"),
GetSQLValueString($_POST['staff_desc'], "text"),
GetSQLValueString($_POST['staff_photo'], "text"),
GetSQLValueString($_POST['staff_spec_1'], "text"),
GetSQLValueString($_POST['staff_spec_2'], "text"),
GetSQLValueString($_POST['staff_spec_3'], "text"),
GetSQLValueString($_POST['staff_spec_4'], "text"),
GetSQLValueString($_POST['staff_spec_5'], "text"));
mysql_select_db($database_wvgsadmin, $wvgsadmin);
$Result1 = mysql_query($insertSQL, $wvgsadmin) or
die(mysql_error());
if ($Result1) {
$insertGoTo = "staff_list.php";
if (isset($_SERVER['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
$insertGoTo .= $_SERVER['QUERY_STRING'];
header(sprintf("Location: %s", $insertGoTo));
} else {
$result = "Error uploading $file. Please try again.";
break;
case 3:
$result = "Error uploading $file. Please try again.";
default:
$result = "System error uploading $file. Contact
webmaster.";
} else {
$result = "$file cannot be uploaded. Acceptable file
type: .gif, .jpf, .png";
?>[/PHP]
Thank you for your time!
toad78Try this forum:
PDF Forms -
Sub-selects in forms causing ora-24333
We are running in a new 11g environment and are receiving an ora-24333 from forms with sub-selects. The same form works in 10g and the sql statement, itself, works in sqlplus. The following is an example of code
exec_sql.parse(oracle_handle, oracle_cursor,
'update vendor a
set (status, vendor_type) =
(select decode(rec_sttus,'||''' '''||','||'''ACTIVE'''||',
'||'''I'''||','||'''INACTIVE'''||',
'||'''D'''||','||'''DELETE'''||',
'||'''F'''||','||'''FOREIGN'''||',
'||'''N'''||','||'''RENUMBERED'''||',
'||'''K'''||','||'''KEEPER'''||',
rec_sttus),
vndr_type
from prch_vndr b
where a.vendor_no = b.vndr_num)
where vendor_no in
(select vndr_num
from prch_vndr)');
t_temp := exec_sql.execute(oracle_handle, oracle_cursor);
exec_sql.parse(oracle_handle, oracle_cursor, 'commit');
t_temp := exec_sql.execute(oracle_handle, oracle_cursor);
Any ideas where we might have a configuration setting missing or what has changed with 11g forms of which we are unaware?
Edited by: kwalker on Dec 26, 2012 2:00 PM
Edited by: kwalker on Dec 26, 2012 2:00 PMHi Kelly,
We are running in a new 11g environment and are receiving an ora-24333 from forms with sub-selects. The same form works in 10g and the sql statement, itself, works in sqlplus. The following is an example of codeAlways post code snippets in {code} tags as explained in FAQ.
>
exec_sql.parse(oracle_handle, oracle_cursor,
'update vendor a
set (status, vendor_type) =
(select decode(rec_sttus,'||''' '''||','||'''ACTIVE'''||',
'||'''I'''||','||'''INACTIVE'''||',
'||'''D'''||','||'''DELETE'''||',
'||'''F'''||','||'''FOREIGN'''||',
'||'''N'''||','||'''RENUMBERED'''||',
'||'''K'''||','||'''KEEPER'''||',
rec_sttus),
vndr_type
from prch_vndr b
where a.vendor_no = b.vndr_num)
where vendor_no in
(select vndr_num
from prch_vndr)');
t_temp := exec_sql.execute(oracle_handle, oracle_cursor);
exec_sql.parse(oracle_handle, oracle_cursor, 'commit');
t_temp := exec_sql.execute(oracle_handle, oracle_cursor);Any ideas where we might have a configuration setting missing or what has changed with 11g forms of which we are unaware?>
a. EXEC_SQL package for simple updates looks like an overkill. EXECUTE IMMEDIATE will meet the requirement.
b. The ORA-24333 error is related to data. Is the database and schema for 10g, SQLDeveloper and 11g the same? If they are different then check data in the database/schema used with Forms 11g.
Cheers, -
Dynamic Table Selection in Forms?
Hi,
In form creation the options available are,
1. Selecting schema name(only one)
2. Selecting table name(only one).
My requirement is we are having same table in many schemas. We need to create a form on this table but user should be given with a list to select the schema name they want so the form should point to table from the selected schema.
Is it possible?
Thanks,
karthick
Actually we dont even have separate schemas in Apex. We are connectin to different schemas using DBLINK's feature of oracle.
But if it possible to switch between schemas present in the Apex means then that will be fine for me as of nowAnyone faced this issue before?
Please help
Edited by: kart on Jun 16, 2010 3:58 PM
Edited by: kart on Jun 17, 2010 12:30 PM -
Master detail: select in form (newbie)
I've been looking at this example:
http://labs.adobe.com/technologies/spry/samples/data_region/DataSetMasterDetailSample.html
The bit of code I cannot understand is this:
onchange="document.forms[0].citySelect.disabled = true; (That's in
the first "select" element.)
Indeed, when I test this on a page of my own, I must remove
this bit of code to get the second select list to work properly.
That is, in my trials that bit of code seems to inhibit the second
list from populating per the selection from the first data set.
This seems logical: the element with id="citySelect" is somehow
"disabled". But in the Adobe example it works just fine... so I
guess I am asking under what circumstances is the "disabler"
disabling...
TIA,
Greg SmithHi,
what you initially did should work. However, a master may have many children and the attribute you move into the form is the one of the first detail row. So if the master does not have details then you only see the label. I don't know why you have to build this construct, but wouldn't it be better to add the attribute on the View Object directly (adding a second entity object rerference)?
Frank -
When combo selected, user form sholud be open
Hi
In system form, when value is selected in the combo box, at same time user form should be opened. what is the coding for this process? can anyone help me..
Regards
BhuvanaHi Bhuvana
in the combo select event use this code to get your User form to load
LoadFromXML("solution.srf")(Name of the srf file)
oform = oapp.Forms.Item("solut")(FormUID)
service_solution() (databinding)
this is an easy way to load a form the for this use should have LoadFromXml() function like this
Public Sub LoadFromXML(ByVal FileName As String)
Dim oXmlDoc As New Xml.XmlDocument
Dim sPath As String
Try
sPath = IO.Directory.GetParent(Application.StartupPath).ToString
oXmlDoc.Load(sPath & "\" & FileName)
oapp.LoadBatchActions(oXmlDoc.InnerXml)
Catch ex As Exception
oapp.MessageBox(ex.Message)
End Try
End Sub
if this helps do reward points
Edited by: Cool Ice on Jul 28, 2008 12:44 PM -
Dropdown boxes selection-additional form field
FormsCentral -->Templates tab --> Trade Seminar R.S.V.P Form ( https://adobeformscentral.com/?f=fFzLm5nQP1QqDDU2UeQTsw&preview# )
In this form there is a feature I would like to create in one of my forms. Under "meals" if you select "other" an extra form field appears...how do I create this?
Thx!When you create the drop down there is a "Include Other Choice" option on the field property panel - check it.
-
Hi all!
now I have a problem. I want to recieve data from mysql, I used web service and I built successfully, but it dose not return right. Please fix it for me!
This code:
package WsSrc;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.DriverManager;
public class Testuser {
public int testLogin(String name)
Connection conn = null;
ResultSet rs = null;
int result = 0;
try {
String dbURL = "jdbc:mysql://localhost/dblogin"; // url of the mysql database
String username = "root"; // username of wsasset database
String password = ""; // password of wsasset database
Class.forName("com.mysql.jdbc.Driver");
conn = DriverManager.getConnection(dbURL,username,password);
String StrSql = "select * from tbuser where Username = '"+name+"'";
PreparedStatement statement = conn.prepareStatement(StrSql);
rs = statement.executeQuery();
if(!rs.next())
result = 0;
}else
result = 1;
} catch (Exception ex)
ex.printStackTrace();
return result;
}Bridging data from one interactive PDF form to another interactive PDF form, programatically, cannot be accomplished on the desktop.
In the absence of a a server-based solution you are limited to cut-and-paste for Reader clients. Data export/import is a potential desktop solution under two circumstances:
1) for Reader clients, the PDF forms have been rights-enabled for data import/export
2) users have Acrobat
Steve -
Hi,
I have one issue here which is:
Oracle 10g
Suppose you have a select stament which contain
A lot of columns can i reflect this statment in form
Block and apply delete update insert action in this block
Regards,
Edited by: kingadmin on Aug 19, 2012 10:31 PMIs this a onetime task? If so, i would
-create a database view
-create an INSTEAD-OF-trigger on the view
-base your block on the view.
It might be that you have to change the key-mode of the block to maybe "Non-Updateable" and that you have to create your own ON-LOCk-trigger.m(Depends on the complexity of the view) -
I can not select oracle forms file type on translationHub import file menu,why?
I had Create New Project Base Translation project,than,i press "Import File" menu,press "select files" button,
and i found the file type list had "oracle report file(*.rex)" and "ALLfile(*.*)",but no Oracle forms file type list,
Why,and i can do it ?Read this document on metalink 1559704.1
-
Curious behaviour when selecting VI's Icon
Hi all:
Please, open this VI (it's empty) and click on it's icon.
It's the first time I see this, so I don't know if it is normal. The selection moves.
I think it's cool.
Using LV 7.1 in WinXp SP2
Aitortxo.
Attachments:
Curious behaviour selection VI's icon.vi 6 KBHey, that does look pretty cool.
And yes, it is normal. As a brief explanation, when you create an icon, all white pixels that are not "enclosed" by another color are treated as transparent. LabVIEW is drawing the selection (which moves around any object) around the thin spiral line you have created, and that's what it looks like.
For more info on how icons handle transparent regions:
http://digital.ni.com/public.nsf/allkb/829671e93cc58d8786256d8900014ca3
Message Edited by Jeff B on 01-10-2006 07:41 AM -
Multiple select multipart/form-data + FileUploader
Hi
I'm using asp multiple select form field with
multipart/form-data +
FileUploader to upload a file (works fine) and writing the
contents of
a form to a database which works fine apart from the multiple
select
which although allows me to select multiple items only
returns the
first selected item to the database.
Anywork arounds to this??
Thanks in advance!!
Buzby
There's nothing more dangerous than a resourceful idiotMulti-part requests are not packaged the same as regular requests, so the getParameter() method doesn't work on it (although I think it would get anything passed through the query string as part of the action parameter but I'm not sure).
You can also try the com.oreilly.servlet class MultipartRequest. I don't know if that's the same one found in the www.servlets.com link, but it is REALLY easy. Essentially, it looks like this:
MultipartRequest mr = new MultipartRequest(request, "[pathtosavefiles]'");
String param = mr.getParameter("paramname");
So instead of calling getParameter() on the request object, you now instead call it on the MultipartRequest object. When you instantiate the MultipartRequest object, it parses the request body for you, and also saves any uploaded files into the directory you specified in your path in the constructor.
I hope that helps.
Michael
Maybe you are looking for
-
Firmware 2.2 Help! I can't use a Universal Base Dock!
Hello! I've been looking for hours on Apple but I can't find the Firmware 2.2 of iPod Touch 2G! The mean reason for I've been looking for, it's because my dad gift me this christmas a Universal Dock with black box from Apple, but when I put the iPod
-
Installation of ECC 6.0 EHP 6 IDES
Hi Experts, I want to install ECC EHP 6 on Windows Server 2012 with MSSQL SERVER. I tried 4 times but didn't get success everytime, system Fails at Import ABAP steps. I am trying with BD IDES of EHP6. If possible please explain me the steps from scra
-
Internet explorer can access webistes but firefox cannot find the servers
So one day i got on my computer and none of my browsers could find the servers at any f the websites I attempted to visit. Then all of a sudden IE started to work and I use it from then until now. Now i need to switch to firefox because silverlight i
-
What Component should be used to display the list on UI
Hi All, I have a table in which when the user selects a row and tries to remove the row. I am supposed to show the pop up which shows all the rows matching to the header of the row. In my backing bean i have the context of the row so i could extract
-
Resizing drop zone photo?
I have read through this forum and don't see any answers for this question for new versions of iDVD. I am using 7.1.2 I have dropped a photo into one of the drop zones for a template, but the photo is zoomed way in. I found if I hold the command butt