Using PHP to display OID jpegPhoto attribute
Has anyone been able to display the OID jpegPhoto attribute using PHP?
I'm running OAS 10g R2 with PHP 4.3.9
I've activated the PHP extension modules gd2lib and exif to manipulate images.
I can also retrieve and display all OID attributes using PHP, except for the jpegPhoto attribute which looks like a small binary string.
Any help would be appreciated.
Thanks.
create a procedure with this code
OWA_UTIL.mime_header (l_mime, FALSE);
OWA_UTIL.http_header_close;
WPG_DOCLOAD.download_file (l_lob);
where l_lob is your BLOB field and l_mime is the mime type of the photo.
and then in your page just write
<img src=/portal/pls/portal/my_schema/my_plsql_proc?param1=value1>
Similar Messages
-
Using PHP to display semi-random images?
Hello,
I'm looking for help using PHP and MySQL to generate semi-random images on my web site. Here's what I'm trying to do: I have 60 images, but I only want to display 16 at a time (for examlpe http://artisdead.net/antelopegardens.php).
The way I imagine this is, the design has 16 image placeholders. I want Placeholder 1 (the first image) to randomally pull record ID 1, 2, or 3 from the SQL database, while Placeholder 2 pulls record ID 4-6, etc. It's important that one of the first 3 images displays first, while one of the second 3 images displays next, etc.
I've found various ways to randomize all the images, but I'm not understanding how to constrain the randomization the way I'm looking to. Any help would be greatly appreciated. Thanks in advance.Alamo_Melt wrote:
The way I imagine this is, the design has 16 image placeholders. I want Placeholder 1 (the first image) to randomally pull record ID 1, 2, or 3 from the SQL database, while Placeholder 2 pulls record ID 4-6, etc. It's important that one of the first 3 images displays first, while one of the second 3 images displays next, etc.
Before offering a possible solution, I should point out that your plan has a minor flaw. If you display only 16 images, and want the random choice to come from incremental sets of three, the maximum number you can have in your set is 48. The final 12 images will never be selected. For 60 images, you need 20 placeholders. The alternative is to have a total set of 64 images, and make the random choice come from incremental sets of four images.
With that caveat, here's how I would do it. The primary keys of your records might not be consecutive, particularly if records are deleted and new ones added, so it might be a good idea to have a separate column with consecutive numbers from 1 to the the maximum. To select random numbers from incremental groups of three, use the following:
$id = array();
$min = 1;
$max = 3;
for ($i = 0; $i < 16; $i++) {
// generate random number from current set
$id[$i] = mt_rand($min, $max);
// increment the minimum and maximum numbers for the next set
$min += 3;
$max += 3;
// join the selected values as a comma-separated string
$vals = implode(',', $id);
$sql = "SELECT image FROM images WHERE id IN ($vals)";
// excecute the SQL query -
How use PHP to read image files from a folder and display them in Flex 3 tilelist.
Hello. I need help on displaying images from a folder dynamically using PHP and display it on FLEX 3 TileList. Im currently able to read the image files from the folder but i don't know how to display them in the TileList. This is my current code
PHP :
PHP Code:
<?php
//Open images directory
$imglist = '';
$dir = dir("C:\Documents and Settings\april09mpsip\My Documents\Flex Builder 3\PHPTEST\src\Assets\images");
//List files in images directory
while (($file = $dir->read()) !== false)
if (eregi("gif", $file) || eregi("jpg", $file) || eregi("png", $file))
echo "filename: " . $file . "\n";
$dir->close();
?>
FLEX 3 :
Code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="pic.send();">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.events.FlexEvent;
import mx.rpc.events.FaultEvent;
import mx.events.ItemClickEvent;
import mx.rpc.events.ResultEvent;
public var image:Object;
private function resultHandler(event:ResultEvent):void
image = (event.result);
ta1.text = String(event.result);
private function faultHandler(event:FaultEvent):void
ta1.text = "Fault Response from HTTPService call:\n ";
]]>
</mx:Script>
<mx:TileList x="31" y="22" initialize="init();" dataProvider = "{image}" width="630" height="149"/>
<mx:String id="phpPicture">http://localhost/php/Picture.php</mx:String>
<mx:HTTPService id="pic" url="{phpPicture}" method="POST"
result="{resultHandler(event)}" fault="{faultHandler(event)}"/>
<mx:TextArea x="136" y="325" width="182" height="221" id="ta1" editable="false"/>
<mx:Label x="136" y="297" text="List of files in the folder" width="182" height="20" fontWeight="bold" fontSize="13"/>
</mx:Application>
Thanks. Need help as soon as possbile. URGENT.i have made some changes, in the php part too, and following is the resulting code( i tried it, and found that it works.):
PHP Code:
<?php
echo '<?xml version="1.0" encoding="utf-8"?>';
?>
<root>
<images>
<?php
//Open images directory
$dir = dir("images");
//List files in images directory
while (($file = $dir->read()) !== false)
if (eregi("gif", $file) || eregi("jpg", $file) || eregi("png", $file))
echo "<image>" . $file . "</image>"; // i expect you to use the relative path in $dir, not C:\..........
//$dir->close();
?>
</images>
</root>
Flex Code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"
creationComplete="callPHP();">
<mx:Script>
<![CDATA[
import mx.rpc.http.HTTPService;
import mx.controls.Alert;
import mx.events.FlexEvent;
import mx.rpc.events.FaultEvent;
import mx.events.ItemClickEvent;
import mx.collections.ArrayCollection;
import mx.rpc.events.ResultEvent;
[Bindable]
private var arr:ArrayCollection = new ArrayCollection();
private function callPHP():void
var hs:HTTPService = new HTTPService();
hs.url = 'Picture.php';
hs.addEventListener( ResultEvent.RESULT, resultHandler );
hs.addEventListener( FaultEvent.FAULT, faultHandler )
hs.send();
private function resultHandler( event:ResultEvent ):void
arr = event.result.root.images.image as ArrayCollection;
private function faultHandler( event:FaultEvent ):void
Alert.show( "Fault Response from HTTPService call:\n " );
]]>
</mx:Script>
<mx:TileList id="tilelist"
dataProvider="{arr}">
<mx:itemRenderer>
<mx:Component>
<mx:Image source="images/{data}" />
</mx:Component>
</mx:itemRenderer>
</mx:TileList>
</mx:Application> -
How To Display User Photo (jpegphoto attribute) From OID LDAP Entry
Hello everyone,
I've spent a few days looking for a solution to this problem with no luck.
I have a PLSQL database package that generates an organisation chart of users. It works fine but I am struggling to retrieve the users photo.
I have tried linking to the jpg files in my /oiddas/ui/oracle/ldap/das/Images/users/ folder but these files do not always exist so this is unreliable. These files only appear to be created if a user has previously viewed their profile in Self Service Console. Even if the files exist they are often out of date and don't reflect the photo held in OID.
I know the photo is stored in the jpegphoto attribute and I have been using DBMS_LDAP calls to retrieve other user details but I just can not find a definitive answer to how I send this image to the browser.
If anyone has any ideas, sample code or web links it would be appreciated.
Thanks,
MattThe idea would be to get the attribute value from OID using DBMS_LDAP or Java (whatever is easyer for you) and dump it in a file. Then generate the URL to the file.
When you initiate the LDAP connection to get the picture, remember to specify jpegphoto as a binary attribute.
Octavian -
How to display image in database using php
i've try search all hope that you all can give me some guidance how to display data that is in image or BLOB using PHP. just a query and php code that will make display of the image. hope that you all show me the example or give me reference that i need to solve my problem.
Hi,
Have a check on these Google results, you might find something there...
http://www.google.com/search?sourceid=navclient-ff&ie=UTF-8&q=%22display%20image%22%2Boracle%20%2Bphp -
Using Flex/PHP to Display MYSQL data and Images
Does anyone have any good examples of using Flex 3 in conjunction with PHP to display data and images from a mysql database? I've searched a lot and it seems hard to find this combination. I have manged to create a login system using this which allows users to login via usernames and passwords that are stored in my mysql database (Grizzz helped me out a lot with this).
But I now want to create a product selection in the site with the categories down the left hand side and the products related to these categories displayed in the other panel once each of these products are clicked. The guy I'm making it for wants to be able to add and delete categories as well as add and delete products so obviously it needs to be done using php and mysql. I'm looking for something similar to the way the online shop is laid out in the following example:-
https://www.whitestonecheese.co.nz/Radshop/bin/Whitestone.html
Thanks for any suggestions.To solve this problem I had to use labelFunction. The working line was this:
<mx:DataGridColumn headerText="Description" labelFunction="dataGrid_labelFunc" dataField="messageDetail"/>
The function looks like this:
private function dataGrid_labelFunc(item:XML, col:DataGridColumn):String {
var qN:QName = new QName(vm, col.dataField);
return item[qN].text(); -
Jpegphoto attribute on messener express
Hi All,
Is it possible to display any ldap user's photograph using 'jpegphoto'
attribute on Messenger Express ??
I am using JES 2005Q1 on Solaris 9 sparc platform.
Thanks,
ShujaatHi Jay,
I am not talking about the jpg attachments. Instead I am concerned with my company's employees who have uploaded their images for the employee's identificaton. Ldap attribute for images is "jpegphoto" & the format of this attribute is binary instead of string.
Now I want to display their images whenever they log into ME.
Any luck ?
Thanks. -
Using a Variable in HttpService url attribute
I have a dynamic url defined below
public var forecastURL:String = "
http://www.weather.gov/forecasts/xml/SOAP_server/ndfdSOAPclientByDay.php?lat="
+ latitude + "&lon=" + longitude +
"&format=12+hourly&startDate=" + todaysDate +
"&numDays=" + numberDays + ""
I would like to use the var without the {} bind. The compiler
complains if the url is not surrounded in quotes. This should be
simple? How can I use a var within the url attribute without the
bind brackets?
<mx:HTTPService
id="forecastRequest"
url = "{forecastURL}" result="resultHandler(event)"
/>Not Possible..why don't you use the subtitle box instead of help url?
-
Re: [iPlanet-JATO] Re: using begin childName Display method
Steve,
It sounds like you have your display fields in a container view, and
that container view is inside of a view bean. I haven't tested whether
the fireChildDisplayEvents has a "deep" effect on its container view
children. Meaning that you may have to set fireChildDisplayEvents="true"
for the <jato:containerView> tag instead. If all else fails and you need
to just get it working, you can set the fireDisplayEvents="true" for
each display field tag separately.
craig
stephen_winer wrote:
I should clarify my earlier statement. The data I want to display is
coming from a model (tied in in the createChild method). I want to
conditionally reformat the text that is being substituted in the JSP
for a JATO form element, but I want this to happen on the server, not
with JavaScript. The begin<childName>Display and
end<childName>Display methods allow me to do this, in theory, but I
can not get them to execute.
Steve
--- In iPlanet-JATO@y..., Belinda Garcia <belinda.garcia@s...> wrote:
I don't currently use a begin or end Display method. I merely bind
the fields to
the model when the child is created and use the setValue to
initially set the
value to what's in the model. I get nulls though if I try to use a
tiled View. I
haven't quite got this figured out.
Belinda
X-eGroups-Return:
sentto-2343287-1135-1008613974-belinda.garcia=sun.com@r...
X-Sender: stephen_winer@y...
User-Agent: eGroups-EW/0.82
From: "stephen_winer" <stephen_winer@y...>
X-Originating-IP: 155.188.191.4
X-Yahoo-Profile: stephen_winer
Mailing-List: list iPlanet-JATO@y...; contact
iPlanet-JATO-owner@y...
Date: Mon, 17 Dec 2001 18:32:48 -0000
Subject: [iPlanet-JATO] using begin<childName>Display method
Content-Transfer-Encoding: 7bit
I want to be able to conditionally show/hide data as well as
format
it for display without touching the model. I found the
begin<childName>Display and end<childName>Display methods that
provide the hooks to do this, but I have been unsuccessful in
getting
these method to execute. I added the
fireChildDisplayEvents="true"
attribute to the jato:useViewBean tag, but this has not helped.
I
also added some debug to the ContainerViewBase class in the
public
boolean beginChildDisplay(ChildDisplayEvent event) method to see
what
was happening. The displayMethodMap was returning null for the
child
display methods that were in the view bean. I covered all the
bases
(compiling, redeploying, etc.) and nothing has worked. Is there
anything I am missing or is there some working example of this?
Steve
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsp
>For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jspThe hidden field was present in the page, but it looked like this:
<input type="hidden" name="jato.defaultCommand" value=""../search"">
Seems like there is a small bug in the code generating this tag.
FYI - I am using JATO1.2
What file displays this text? Maybe I can go in and fix it and rejar
it.
Steve
--- Mike Frisino wrote:
Steve,
Can you check the HTML source that shows up in the browser? Do you see an entry that looks like this at the bottom of the form in
question?
>
<input type="hidden" name="jato.defaultCommand" value="/search">
To answer your question - it should work as you described. Some of the JatoSample make use of the defaultCommandChild. Can you try
running the sample BasicSample->Field Types and let us know what you
see.
>
Failing this you can send me your jsp file , maybe there is some subtle issue there. michael.frisino@s...
>
>
----- Original Message -----
From: stephen_winer
Sent: Friday, December 07, 2001 8:05 AM
Subject: [iPlanet-JATO] Using the defaultCommandChild in a form
I am trying to set the defaultCommandChild in my jato:form tag to be
the searcg button. The search button definition is:
<jato:button name="search"/>.
The form tag definition is:
<jato:form name="PendingIA" defaultCommandChild="/search">
Clicking on the search button works fine, but hitting return in one
of the textFields (which submits the form) passes a value of "" to
the createChild method in my viewBean, which throws an error. Why
does this not just work as normal and trigger the handleSearchRequest
() method?
Steve
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsp
Service.
>
>
>
[Non-text portions of this message have been removed] -
Re: [iPlanet-JATO] using begin childName Display method
Oops. Sorry about that, Craig. I didn't realize I might leave that impression.
I'm sure the tiled
views work since you have so many examples of these and it's a relatively
simple concept, isn't it?
Not to mention a necessary one. I didn't have time to debug my code and find
out what I was doing
wrong where the tiled views are concerned. I decide to just try to implement
tiled views later and
just stick with one of everything for now and get that working.
Yes, I have reviewed your comments and am taking them into consideration. I am
able to save and
retrieve values with my model at this point.
Thanks.
Belinda
X-eGroups-Return:
sentto-2343287-1143-1008622698-belinda.garcia=sun.com@r...
X-Sender: craig.conover@s...
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4)Gecko/20011019 Netscape6/6.2
X-Accept-Language: en-us
From: "Craig V. Conover" <craig.conover@s...>
X-Yahoo-Profile: cvconover
Mailing-List: list [email protected]; contact
[email protected]
Date: Mon, 17 Dec 2001 13:00:10 -0800
Subject: Re: [iPlanet-JATO] using begin<childName>Display method
Content-Transfer-Encoding: 7bit
Belinda,
He may also be binding the models, howerver, he needs to change the way
the value appears before it is displayed which is why you would use the
display events.
Your null value issue is a completely different issue and has nothing to
do with it being a tiled view. I don't want anyone getting the idea
that the tiledView binding is broken. It does work. You issue should
have something to do with the inconsistent way in which you are getting
your model. At least from what I could tell in your source code that you
sent me.
Have you reviewed my comments I sent to you in your source code?
craig
Belinda Garcia wrote:
I don't currently use a begin or end Display method. I merely bind the
fields to
the model when the child is created and use the setValue to initially setthe
value to what's in the model. I get nulls though if I try to use a tiledView. I
haven't quite got this figured out.
Belinda
X-eGroups-Return:
sentto-2343287-1135-1008613974-belinda.garcia=sun.com@r...
X-Sender: stephen_winer@y...
User-Agent: eGroups-EW/0.82
From: "stephen_winer" <stephen_winer@y...>
X-Originating-IP: 155.188.191.4
X-Yahoo-Profile: stephen_winer
Mailing-List: list [email protected]; contact
[email protected]
Date: Mon, 17 Dec 2001 18:32:48 -0000
Subject: [iPlanet-JATO] using begin<childName>Display method
Content-Transfer-Encoding: 7bit
I want to be able to conditionally show/hide data as well as format
it for display without touching the model. I found the
begin<childName>Display and end<childName>Display methods that
provide the hooks to do this, but I have been unsuccessful in getting
these method to execute. I added the fireChildDisplayEvents="true"
attribute to the jato:useViewBean tag, but this has not helped. I
also added some debug to the ContainerViewBase class in the public
boolean beginChildDisplay(ChildDisplayEvent event) method to see what
was happening. The displayMethodMap was returning null for the child
display methods that were in the view bean. I covered all the bases
(compiling, redeploying, etc.) and nothing has worked. Is there
anything I am missing or is there some working example of this?
Steve
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsp
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsp
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jspThe hidden field was present in the page, but it looked like this:
<input type="hidden" name="jato.defaultCommand" value=""../search"">
Seems like there is a small bug in the code generating this tag.
FYI - I am using JATO1.2
What file displays this text? Maybe I can go in and fix it and rejar
it.
Steve
--- Mike Frisino wrote:
Steve,
Can you check the HTML source that shows up in the browser? Do you see an entry that looks like this at the bottom of the form in
question?
>
<input type="hidden" name="jato.defaultCommand" value="/search">
To answer your question - it should work as you described. Some of the JatoSample make use of the defaultCommandChild. Can you try
running the sample BasicSample->Field Types and let us know what you
see.
>
Failing this you can send me your jsp file , maybe there is some subtle issue there. michael.frisino@s...
>
>
----- Original Message -----
From: stephen_winer
Sent: Friday, December 07, 2001 8:05 AM
Subject: [iPlanet-JATO] Using the defaultCommandChild in a form
I am trying to set the defaultCommandChild in my jato:form tag to be
the searcg button. The search button definition is:
<jato:button name="search"/>.
The form tag definition is:
<jato:form name="PendingIA" defaultCommandChild="/search">
Clicking on the search button works fine, but hitting return in one
of the textFields (which submits the form) passes a value of "" to
the createChild method in my viewBean, which throws an error. Why
does this not just work as normal and trigger the handleSearchRequest
() method?
Steve
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsp
Service.
>
>
>
[Non-text portions of this message have been removed] -
Using PHP to generate images in alternate colors
I have a PNG image of a black silhouette graphic with
softened edges against a transparent background.
Can I use PHP to generate this image in alternate colors
(allowing the black graphic to be displayed in a color other than
black)?AngryCloud posted in macromedia.dreamweaver:
> I have a PNG image of a black silhouette graphic with
softened
> edges against a transparent background.
>
> Can I use PHP to generate this image in alternate colors
> (allowing the black graphic to be displayed in a color
other than
> black)?
I have no experience with this, but I was just poking around
in the GD
references and found a comment on imagefill() that might
help:
http://us.php.net/manual/en/function.imagefill.php
Comment:
http://us.php.net/manual/en/function.imagefill.php#81873
Or you may need to work with some of the other alpha
functions.
Mark A. Boyd
Keep-On-Learnin' :) -
How do I search a word document stored in a BLOB using PHP?
I have been successful at saving files in a blob field using oracle.
I need to search through the word document, how can I do it using PHP?
Please help!You're going to want to look at the Text Application Developer's guide.
9i - http://otn.oracle.com/pls/db92/db92.show_toc?partno=a96517&remark=drilldown&word=microsoft+word
10g -
http://otn.oracle.com/pls/db10g/db10g.show_toc?partno=b10729&remark=drilldown&word=text+application+developer%27s+guide
Give this a read and it'll give you what you need in order to search CLOB and BLOB fields for text data.
It all works around a particular type of index which is then referenced using a CONTAINS clause in your SQL... eg:
SELECT id FROM documents WHERE CONTAINS( document_body, 'Oracle' ) > 0
Once you've got your head around the basic priniciples you're going to want to look at the document filters. This should allow you to index MS Word documents (warning: I've never used this for Word).
It's not something that you can just pick up from reading a 20 line reply on a forum, but it sounds like what you're looking for.
We use it here in order to look up on HTML documents, and it works a treat. We converted our Word documents to HTML so we could mark them up and then display them inline on pages.
We wrap up the SQL that actually does the CONTAINS clause in a PL-SQL function, but I don't image there's a problem issuing a CONTAINS over OCI. Let me know if it works!
Might this be an option for you?
Blog at http://robertbaillie.blogspot.com -
Having Truble Reading and Echoing Using PHP in HTML. Possible Variable Scope Problem?
Hey guys,
Thanks for your always knowledgable help! Today I am working with displaying text from a text file in an HTML table using PHP. I can't get the data to display properly, I think it has something to do with the scope of the variables, but I am not sure. Here is the code I am struggeling with:
<table width="357" border="1" cellspacing="0" cellpadding="0">
<tr>
<td width="165">Pizza 1</td>
<td width="186"><? echo $price['0']; ?></td>
</tr>
<tr>
<td>Burger 1</td>
<td><? echo $price['1']; ?></td>
</tr>
<tr>
<td>Drink 1</td>
<td><? echo $price['2']; ?></td>
</tr>
</table>
In the above PHP (not shown) the array $price is filled properly (I tested by echoing each bit line by line) but by the time we get into the HTML it seems the array is empty or it is not liking how I am calling it. Does the scope of a PHP variable end with the closing "?>" tag? Am I missing something? Bellow is the full code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
body {
background-color: #333;
color: #FFF;
</style>
</head>
<body>
<?php
$menu=fopen("prices.txt","r") or exit("Unable to open file!");
$price=array();
$priceposition=null;
$tempstring;
//This loop does all of the READING and populating of variables
while(!feof($menu))
//Check to see if this is the first pass, if not add one to the array possition
if ($priceposition==null){
$priceposition=0;
else{
$priceposition++;
//populate the temparary string
$tempstring = fgets($menu);
//Populate the array if the temporary string is not a comment
if(substr($tempstring,0,2) != "//"){
$price['$priceposition']= $tempstring;
echo $price['$priceposition'];
//End of reading loop
fclose($menu);
?>
<table width="357" border="1" cellspacing="0" cellpadding="0">
<tr>
<td width="165">Pizza 1</td>
<td width="186"><? echo $price['0']; ?></td>
</tr>
<tr>
<td>Burger 1</td>
<td><? echo $price['1']; ?></td>
</tr>
<tr>
<td>Drink 1</td>
<td><? echo $price['2']; ?></td>
</tr>
</table>
</body>
</html>
and you can run the code on my test server here: christianstest.info/phptest/readwritetesting/readtest.php
thanks guys!MurraySummers wrote:
Try changing this -
fclose($menu);
to this -
fclose($menu);
echo "<pre>";exit(print_r($price));
and see what you get.
Wow, what a great little peice of testing code, thanks! That showed me the problem right away! Is there any way to test your php line by line in Dreamweaver CS6? I am used to computer programing in Visual Studio and Eclipse where they have an option of running code line by line and seing how variables populate and change with each line of code execution. Or is thier a program that can do this for PHP? -
Hello.
Is there a way to use set_item_instance_property on display item?
Or change font color of disabled text item?
Thanks.Set_item_instance_property is the new built-in. Don't use the old display_item. Help says: "Maintained for backward compatibility only."
Use the new one. There are all properties in the built-in you need for changing the visual attributes.
try it
Gerd -
Why cannot I use hidden or display only item to store value for insert?
hi, Gurus:
I have a question:
I implemented a form with report region in a page, the update works OK, but the add function has a problem:
There is a column, offender_ID, which is a foreign key for another table, it should not be null during insert. However, even I pass the offender ID from master page when user click the create button, and it did shows in the form, it must be a text filed to insert successfully, why cannot I use hidden or display only item to store this value for insert? (If I use hidden or display only item, insert won't be successful, apex reports I tried to insert a null value to offender_ID column.)
Many Thanks in advance.
SamHi,
There is a column, offender_ID, which is a foreign key for another table, it should not be null during insert. However, even I pass the offender ID from master page when user click the create button, and it did shows in the form, it must be a text filed to insert successfully, why cannot I use hidden or display only item to store this value for insert? (If I use hidden or display only item, insert won't be successful, apex reports I tried to insert a null value to offender_ID column.)I think both hidden and display items have attributes that can cause problems because of different ways these items function than non-hidden and non-display-only items function. Display Only items have a "Setting" of "Save Session State" Yes/No? That can be a problem.
Would you do this? Make these items regular items instead and see if you can get those working. Then, we will try to change the fields back to hidden or display only.
Howard
Congratulations. Glad you found the solution.
Edited by: Howard (... in Training) on Apr 11, 2013 10:26 AM
Maybe you are looking for
-
HP StorageWorks Ultrium 960 not showing up in windows
hi everyone i have a HP StorageWorks Ultrium 960 - model q1538a - whic i have connected to a adaptec scsi 39160 problem i have is that the device is seen in device manager which it says device is working and drivers are upto date but cant see the
-
BI tools comparison - Advantages of SAP BI
Hi, I need to know the advantages or addtional features in SAP BI tools over other BI/Warehousing tools in market such as Cognos/Hyperion, etc,. Your inputs are highly valued. Thanks in Advance. Prakash C
-
CloudControl 12c: deploy Agent 12c on RAC via RPM?
Hello , I've just installed the CloudControl 12c and I'm pretty astonished about the new look and feel of the GUI (compared to GridControl 10g) :-) Installing the agent on hosts using the RPM-package is rather easy. But I'm not sure how to install th
-
SAPscript last page windows.
Dear all, I would like to shows windows a,b,c on the first page only if the first page is the last one. Otherwise I would like the windows a,b,c are displayed on the last page only. How to proceed? Regards. Nozome.
-
Good evening, I have a new laptop as my old one died. This new one has Vista on. I know you all say don't use Vista with Dreamweaver but I have no choice right now. Dreamweaver installed ok and is working except the F12 is not working. I have checked