Issues in editing a PK column from FORM page
Hi
I am creating interactive report and a form on a table T1 with columns A (this is the PK column),B,C, etc.. In the creation wizard I chose "Existing Trigger" for populating my PK column values for both the pages as in my case, USER will be giving/populating these values. Now in the form page, I change the 'Display type' of PK column A from 'Hidden and Protected' to 'Text field' because user has to use this column in form page, for creation and editing jobs.
Now, while creating a record, I have no issues, but while 'editing' the 'A' item from form page, the form gives errors like (ORA-20505: Error in DML) and (ORA-01403: no data found) and does not allow to edit this PK column. Any workaround? Please help.
Thanks
Bhavesh
On edit page, under processes region you will find various processes active on this page. Edit process which do DML operation on table T. On edit process page you will find 3 check boxes: Insert, Update and Delete. de-select the update checkbox and create ur own process. As the PK is editable, create one hidden item (say PX_A) on page which will preserve the value of the column A before editing. This will help editing the table row which is identified uniquely by column A only.
Similar Messages
-
How can I edit the SamAccountName column from the list or be able to edit it?
Hello,
In my view for a SharePoint list, I see three columns for SamAccountName. This list is for listing staff as a directory, so there are phone numbers, names, emails addresses, division, department and such. The SamAccountName
column for some people has incorrect username or is blank. When I edit a record in the list, the SamAccountName column is not available to edit.
How can I edit the SamAccountName column from the list or be able to edit it?
I do have user profiles working and importing profiles from AD, but the list still shows empty or incorrect SamAccountName for some records.
PaulIf the user does not remember the encryption password there is no way to use the backup.
The password cannot be removed or reset.
Delete the backup, restore as new. Sync the desired content to the device. -
How to upload a file into a db blob column from adf page
How to upload a file into a db blob column from adf page
Which option to use ?The forum search would be my first try...
Then google...
This has been asked at least once a week and got correct answers...
Timo -
Issue to Add one new column in search Page..
I have a JSP file of Service Form of Oracle Install Base . In this on select party Site page when search for any item it shows some result as a column. like address , name, country..
we have to add a new column in that search. means when we search for any Item then with address, Name and country it shows a new column also with that. I have the jsp file of that page "csifLOV.jsp". This is the generic LOV page for any database columns.
Can anybody please help where to add this new column definition.
this is code of "csifLOV.jsp".
<%--
+==========================================================================+
| Copyright (c) 2000 Oracle Corporation, Redwood Shores, CA, USA |
| All rights reserved. |
+==========================================================================+
| FILENAME |
| csifLOV.jsp |
| DESCRIPTION |
| This is the generic LOV page for any database columns |
| NOTES |
| |
| DEPENDENCIES |
| |
| HISTORY |
| 23-Aug-2000 X. Li Created. |
| $Header: csifLOV.jsp 115.30 2004/06/14 21:05:05 anukal ship $
+==========================================================================+
--%>
<%@ include file="jtfincl.jsp" %>
<%@ include file="csifContextIncl.jsp" %>
<%
csiPageContext.setPermissionName("SupPer");
csiPageContext.setJspName("csifLOV.jsp");
csiPageContext.setFormName("LOVForm");
String jspName = csiPageContext.getJspName();
String csiFormName = csiPageContext.getFormName();
String formName = csiFormName;
appName = "CSI";
if (CsifutDebug.LOCAL_DEV_ENV)
Properties param = System.getProperties();
String prop = param.getProperty("JTFDBCFILE",
"E:\\myprojects\\dbcfiles\\crmdev04_SCCSIDV1.dbc");
param.put("JTFDBCFILE", prop);
prop = param.getProperty("service.Logging.common.filename",
"E:\\myprojects\\jtflogs\\ebppFW_log");
param.put("framework.Logging.system.filename", prop);
prop = param.getProperty("service.Logging.common.filename",
"E:\\myprojects\\ebppSys_log");
param.put("framework.Logging.system.filename",prop);
System.setProperties(param);
// this may have to change for other people
// ServletSessionManager.startStandAloneSession(appName,true,
// "csiuser","welcome");
ServletSessionManager.startRequest(request,response,
appName,true,"csiuser","csiuser","Authenticator.system");
/* Push the logFileName into the cookie for future use */
oracle.apps.jtf.util.SystemCheck.setJTFCookie();
// Set cookies for menu rendering
MenuRenderer.setMenuCookies(request);
//Added HTML tag with language code for accessibility.
String CSI_HTML_LANG_CODE;
CSI_HTML_LANG_CODE = oracle.apps.jtf.util.HtmlUtil.getHtmlLanguageCode();
if (CSI_HTML_LANG_CODE == null)
CSI_HTML_LANG_CODE = "en-US";//Added HTML tag with language code for accessibility.
%>
<HTML lang="<%=CSI_HTML_LANG_CODE%>">
<%@ include file="csifStartReqIncl.jsp" %>
<%@ include file="csifExceptionHandleBegin.jsp" %>
<jsp:useBean id="lovBean" class="oracle.apps.csi.framework.pb.CsifpbLOVBean" scope="page" />
<%
lovBean.init(csiPageContext, request);
lovBean.process();
int pageMode = lovBean.getMode();
if (pageMode == CsifpbBasePageBean.LOVRETURN_MODE) //forward to the caller of the LOV
if (CsifutDebug.DEBUG)
CsifutDebug.addMessage("forward URL=" + lovBean.getForwardToURL());
csiPageContext.setForwardToJSP(lovBean.getForwardToURL());
%>
<%@include file="csifForwardIncl.jsp" %>
<%
else
CsifcmException error = lovBean.getException();
String callerName = lovBean.getJspCallerName();
String labelSelect=null;
String labelEnterPartial=null;
String labelSearch=null;
String labelTitle=null;
int origAppID = csiPageContext.getPageAppId();
String origAppName = csiPageContext.getPageAppName();
csiPageContext.setPageAppId(542);
csiPageContext.setPageAppName("CSI");
Hashtable allLovPrompts = CsifutRegion.getPrompts(csiPageContext, "CSI_FRAMEWORK_LOV");
csiPageContext.setPageAppId(origAppID);
csiPageContext.setPageAppName(origAppName);
if (allLovPrompts != null)
labelSelect = (String)allLovPrompts.get("CSI_SELECT");
labelEnterPartial = (String)allLovPrompts.get("CSI_ENTER_PARTIAL");
labelSearch = (String)allLovPrompts.get("CSI_SEARCH");
labelTitle = (String)allLovPrompts.get("CSI_LOV_TITLE");
else
allLovPrompts = new Hashtable();
String cancelPrm = (String)allLovPrompts.get("CSIF_CANCEL");
%>
<head>
<title><%=labelTitle%></title>
<script language="JavaScript">
function newSearch()
document.<%=csiFormName%>.<%=CsifpbBasePageBean.PAGE_MODE_PARAM%>.value = '<%=CsifpbBasePageBean.QUERY_MODE%>';
document.<%=csiFormName%>.submit();
function returnToCaller()
// alert("Return to " + "<%=callerName%>" )
document.<%=formName%>.action = "<%=callerName%>";
document.<%=formName%>.submit();
function <%=lovBean.LOV_CANCEL_FUNC%>()
var LOVForm = document.forms['<%=csiFormName%>'];
var LOVFieldName = '<%=lovBean.getLOVFieldName()%>';
var LOVOrigValFieldName = LOVFieldName + '<%=lovBean.LOV_ORIG_VAL_FIELD%>';
LOVForm.elements[LOVFieldName].value = LOVForm.elements[LOVOrigValFieldName].value;
LOVForm.elements['<%=CsifpbBasePageBean.PAGE_MODE_PARAM%>'].value = '<%=CsifpbBasePageBean.LOVRETURN_MODE%>';
LOVForm.elements['<%=CsifpbBasePageBean.MODE_ACTION_PARAM%>'].value = '<%=CsifpbBasePageBean.ACTION_CANCELLED%>';
LOVForm.action = '<%=lovBean.getJspCallerName()%>';
LOVForm.submit();
function onPageLoad()
document.<%=csiFormName%>.<%=lovBean.getLOVFieldName()%>.focus();
</script>
<%=lovBean.renderLovReturnJS()%>
<%@ include file="jtfscss.jsp" %>
</head>
<%@ include file="csifBodyBeginIncl.jsp" %>
<%
//if (!CsifutDebug.LOCAL_DEV_ENV)
if (CsifutTimer.TIME)
CsifutTimer.start(CsifutTimer.JTF_MENU);
%>
<%@ include file="jtfdnbartop.jsp" %>
<table summary="" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<%
if (CsifutTimer.TIME)
CsifutTimer.stop(CsifutTimer.JTF_MENU);
} // end local_dev_env
%>
</td>
</tr>
<tr>
<td>
<form name="<%=csiPageContext.getFormName()%>" method="post" action="<%=jspName%>">
<table summary="" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top">
<table summary="" width="100%">
<tr>
<td> </td>
<td class="pageTitle" colspan="4"><%=labelSelect%> <%=lovBean.getLOVPageTitle()%>
</td>
<td> </td>
</tr>
<%@ include file="csifDisplayException.jsp" %>
<tr>
<td width="5%"> </td>
<td width="22.5%"> </td>
<td width="22.5%"> </td>
<td width="22.5%"> </td>
<td width="22.5%"> </td>
<td width="5%"> </td>
</tr>
<tr>
<td> </td>
<td>
<div nowrap align="right" class="promptReadOnly"><%=labelEnterPartial%></div>
</td>
<td colspan="3">
<input type="text" name="<%=lovBean.getLOVFieldName()%>" id="<%=lovBean.getLOVFieldName()%>"
value="<%=HtmlWriter.preformat(lovBean.getLOVSearchPattern())%>" size="15">
<input type="button" name="SearchButton" id="SearchButton"
value="<%=labelSearch%>" onClick="javascript:newSearch()">
<input type="button" name="CancelButton" id="CancelButton"
value="<%=cancelPrm%>" onClick="javascript:<%=lovBean.LOV_CANCEL_FUNC%>()">
</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td colspan="4">
<hr>
</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td class="prompt" colspan="4">
<!-- Search Result goes here -->
<%
if (lovBean.getMode() != CsifpbBasePageBean.LOVRETURN_MODE)
out.print(lovBean.renderLOVValuesTable(labelSelect));
%>
<!-- End of Search Result -->
</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td colspan="4">
<input type="button" name="CancelButton" value="<%=cancelPrm%>"
onClick="javascript:<%=lovBean.LOV_CANCEL_FUNC%>()">
</td>
<td> </td>
</tr>
</table>
<!-- Content ends here -->
</td>
</tr>
</table>
<!--Hidden Fields Go Here-->
<input type="hidden" name="<%=CsifpbLOVBean.LOV_VALUE_SEL_PARAM%>" >
<%
if(csiPageContext.isAccessible())
%>
<label for="<%=lovBean.getLOVFieldName()%>" class='hidelabel'><%=labelEnterPartial%></label>
<!-- Kamal for ADA v2 03-Mar-04
<label for="SearchButton" class='hidelabel'><%=labelSearch%></label>
<label for="CancelButton" class='hidelabel'><%=cancelPrm%></label>
-->
<%
%>
<%@ include file="csifHiddenFieldsIncl.jsp" %>
</form>
<%@ include file="csifBodyEndIncl.jsp" %>
</HTML>
<%
} // end of if (pageMode == CsifpbBasePageBean.LOVRETURN_MODE ) .. else {
%>
<%@ include file="csifExceptionHandleEnd.jsp" %>
<%@ include file="csifEndReqIncl.jsp" %> <!-- send an end request -->
Thanks,If you are copying the 12KST1C to Z12KST1C and executing the s_alr_8701333 report, you will not see the new column added to Z12KST1C
With the new Form Z12KST1C, create a new Report Z12KST1C and assign a new TCODE. Also you have to select all rows and column of form Z12KST1C
TCODE CJE5
Select the form Z12KST1C
Extras--Drildown display --Select Rows and columns
Select the all colhmns by F9
Hope this helps.
Edited by: psconsultant on May 20, 2011 8:42 AM -
Reference report column from another page?
I have a work order report with column link. Upon clicking link, control goes from page 2 to page 3 where I want to show details about components in work order. How do I reference the work order ID (report column on page2) from the query in page 3? I know I can reference page items, but how do you do you pass a value of a report column on the previous page?
Thanks.
PaulHi Paul,
Typically I would create an Item on the page being called (Page 3 in your case) to receive a value being passed via your Link; this item could be hidden or read-only. You might want to name yours; P3_WORK_ORDER_ID or something to reflect the Primary Key (PK) of your Work Order.
On the Link Column on Page 2; I assume that your Target Page is 3.
Down in the Link Column section under Name and Value ;
Name might read P3_WORK_ORDER_ID
Value might read *#WORK_ORDER_ID* this would reference the work order id column on the Page 2 report.
Now on your Page 3 report; your SQL would need within its Where clause something like this:
my_table.work_order_id = :P3_WORK_ORDER_ID
Jeff -
Issues with editing in Acrobat 5 with Form and link tool
In my version of Acrobat 5, I used to be able to edit with the form and link tools. Now for example if I try to add an action in the execute menu item in the Field Properties (Form tool or Link mode), it brings up a splash window saying 'Please select the menu item you want to execute from the menu bar' and that is it, It does not bring up a list so I can not add an executable item.
PowerBook G4 (ti) - Mac OS X 10.4.11
Any ideas, as it is really frustrating.Ok... so I have created a file in InDesign and exported it as a .pdf to create an interative document.
I am trying to add next page from page 1 and so on, and also hyperlinks to e-mail addresses.
I create a box by dragging using Form Tool (F) whereby Field properties window pops up.
I Name the item and choose what type of button I require, and modify the settings in Appearance.
When I then go to choose an Action... I choose mouse up, then Add... which brings up the Add an Action window.
I choose 'Execute Menu Item' from the drop down list and then try to 'Edit Menu Item' this brings up a further window 'Menu Item' with the message "Please select the menu item you want to execute from the menu bar" and here I try to choose the type of item I need to execute.
I have tried clicking on the item on the menu bar, but it makes a faint sound when I click with my mouse... but no no item is executed.
I have done this before with previous documents, but not for a while... but it does not seem to want to do it this time around.
However, I can execute the following in the same window 'Edit Menu Item'
Import Form Data
JavaScript
Movie
Open File
Read Article
Reset Form
Show/Hide Field
Sound
Submit Form
World Wide Web Link
Any thoughts? -
Getting error while trying to delete columns from form designer
I Am trying to make last name a mandatory field.
AD was not getting provisioned for users that i created.The system validation task was not getting completed.WHen i tried to save the process form it was showing that last name was a mandatory field.So i figured it out that my process form was not getting populated.
i was trying to delete last name from the form version.But it was throwing an error code= DOBJ.SDC_CANNOT_DELETE_SRE_ENTRIES_EXIST
So i am trying to create a new version of a form and delete some columns.But when im doing it it shows the following error :
ERROR,15 Dec 2008 18:03:20,073,[XELLERATE.SERVER],Class/Method: tcSDC/hasPrePopulatedEntries Error :Sdk cannot drop, SRE entries Exist.
Could you help as to how i can resolve this.You cannot delete a column, but you can hide it ;)
In your case, you may follow these steps:
1) Create a new form version.
2) Go to the "Properties" tab in the form editor.
3) Delete the "Required=true" property for the "Last Name" field.
4) Add a new property to the "Last Name" field: select "Visbile Field" in the "Property Name" combo-box, and add "false" to the "Property Value". Save.
5) Activate your version.
Think again about hidding the "Last Name", because I think it's a mandatory value for AD user creation (i.e., AD won't let you create users if they don't have Last Name set). However, I'm not sure.
Hope this help! -
Editing Image database columns From Apex front End
Hello,
How is it possible to edit an image datatype in Application express. Suppose if i want to edit an existing i mage and replace it with an edited version and save the newly edited verison in the database.
Is it possible to edit and image from the front end itself.Hello,
It depends exactly what sort of functionality you mean by 'edit', if you mean resize/scale and things like that then read the previous links I supplied.
If you mean duplicating the sort of functionality that Photoshop et al provide then yes it's probably possible, however it sounds like a huge amount of work to me (as in it would be a 'product' in it's own right).
If you can start defining limits as to what editing features you want to provide then I think it will help to define the scale of your task, otherwise if you're just saying 'edit' as a catch-all phrase then I think you have a lot of work ahead of you (interesting work...but a lot of it ;).
John.
Blog: http://jes.blogs.shellprompt.net
Work: http://www.apex-evangelists.com
Author of Pro Application Express: http://tinyurl.com/3gu7cd
REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone! -
How to customize my edit region which create from template page?
I created a set of templates. It contains a edit region in each template. There's a problem when I create a new page from templates, I can't add tables in it. It says "Making this change would require changing code that is locked by a template or a translator. The change will be discarded." I need to open all liberty for my clients to customize their edit region. How can I solve the problem? Thanks
Thanks for your reply.
I have already try your method, but the problem still there. When I create a table, it says "Making this change would require changing code that is locked by a template or a translator." again. -
Query on Non-base-table column in form
Hi,
Does anyone have an example of code to allow users to query on non-base-table column from forms? For example, a personnel form displays a persons' name and department name. The form is based on PERSON table, which contains the department id, not the name. The form uses post-query to display the department name. When in query mode, the user wants to enter department name, and display the people in the department (still using this form, which is based on PERSON table.
Thanks!Try this:
For data block person set these properties as follows:
1.Set Query Data Source Name = "person , departments"
2.Set DML data target name = "person"
3.Set Where Clause to join i.e. condition "person.dno = departments.dno"
For filed department name set these properties as follows:
1.Data base item = "Yes"
2.Column Name = "departments.dname"
3.Query Only = "Yes"
4.Insert Allowed = "No"
5.Update Allowed= "No"
6.Keyboard Navigable = "No"
If you face ambiguous column name check for the same filed name exist on both tables and set column name for this filed to person.filed_name
Regards
null -
Hi Experts,
We have TABLE OF CONTENTS followed by 100 forms with totally 215 pages.
We have checked in the Exclude from form page count option for TABLE OF CONTENTS form in Group level.
The forms followed by TABLE OF CONTENTS form all are using FORMSETPAGENUM rule in footer.
the very first form followed by TABLE OF CONTENTS form the page number starts at 1 of 215 and the last form ends at 215 of 215.
Now i want to print the Page number for TABLE OF CONTENTS form alone.
How can we do that ? Any thoughts ?
Regards,
RAMAN CHi Raman,
I guess, you have included 'Exclude Page Count' option in Table Of Content (TOC) form.
There is a limitation in studio. The page number functions (FORM PAGE NUM OF/ FORMSET PAGE NUM OF) will be ineffective when we select the 'Exclude Page Count' option in TOC form. Hence, you was not able to print the Form Page Count in TOC form.
The only way to print page count is to deselect 'Exclude Page Count' option. Then you can normally print the TOC Page Count in TOC form. However, thiS TOC page count will add to the Total formset Page Count. The Formset Page Count can be controlled through Postransdal using the script [FORMSET PAGE NUM = TotalPages() - 1]
Regards,
Mahesh -
Link column from an interactive report to insert a row in a tabular form
Hi, I need your help, i'm new on APEX and i really need to make a "link column" from an "interactive report" to insert a row into a "tabular form".
I mean that when you click the "link column" instantly create a new row in the Tabular form with the information of the linked row on the interactive report. Its something like that.
I really appreciate your help.
Ricardo CapuzHi Ricardo,
You can use the following code as per your requirement (this is just an example),
(In this case IR report is in Page#1 and Tabular form is in Page#2),
On Page#1, Create a hidden item (i.e 'P1_ID')
IR Report query as like the below,
select empno,
ename,
job,
mgr,
hiredate,
sal,
comm,
deptno,
empno "copy"
from empUse the below JS code in Page HTML Header section,
function f_insert_row(pSub)
$s('P1_ID',pSub);
doSubmit('ADD');
Edit Report Attribute -> copy column -> Under Column Link
Link Text: Select your column name (i.e. #EMPNO#)
Target: URL
URL: javascript:f_insert_row(#EMPNO#);
Then create a process to insert like below,
BEGIN
insert into emp_test (select * from emp where empno=:P1_ID);
END;Process condition as * Request=Expression1* in Expression1 as 'ADD'.
At last, create a branch to Page#2, Check 'include process success message' and with the same condition as * Request=Expression1* in Expression1 as 'ADD'.
Thanks,
Lakshmi -
Issue in loading specific columns from a file to teradata table using IKM
Hi,
Can any one help to resolve the issue in loading specific columns from text file to teradata table.
i tried using IKM file teradata and columns are getting displaced.
my requirement suppose i have 5 columns in file and i have to load only 3columns to table using IKM.
same thing can be achived using LKM file to teradata but i want use IKM.
please suggest me on this
Regards
VinodHi,
I believe that the problem you are having is that you have a delimited file, of which you want to pick columns from position 2,3,5. In this case, ODI will pick the first 3 columns of a delimited file regardless of position.
For example, if you a tab delimited file with c1,c2,c3,c4,c5 columns, and you want only columns c2,c3,c5 - when mapping these in an ODI interface, and executing, you will actually pick up the data from c1,c2,c3 as these are the first three columns in the file (reading from left to right). You can ignore "columns" on the right hand side of a file, but not the left. E.g delimited file with c1,c2,c3,c4,c5. Only pick columns c1,c2 will give you data for the first 2 columns
Create a temporary table to load all the data from the file, and use you temp table to extract the data you require. Or you could get the file created with the first three columns as the columns you require.
Cheers
Bos
Edited by: Bos on Jan 18, 2011 1:06 PM -
How to delete columns from process form table
hi,
I have a process form UD_FN_USR. I created one column userid with type long and later the requirement got changed and I need to change the type to string.I am able to delete the column from design console but in the table the column exits so that I coulnt create the column with same name as type string , its tellling same column name exits with different datatype in current version or previous versions.can anybody please tell me how to solve this issueSorry for late response. Got stuck in work.
This time it will answered ;-)
ALTER TABLE UD_ABCD DROP COLUMN UD_ABCD_UID
DELETE FROM SDC WHERE SDC_NAME='UD_ABCD_UID';
COMMIT;
Thanks
Rajiv Dewan -
Columns From FOLDER TOOLS doesn't have impact of FORM PERSONALIZATION
Hi,
How can I get the column names in R12, which are available in FOLDER TOOLS -> SHOW FIELD using global variable or through some other means in FORM PERSONALIZATION.
When I use WHEN-NEW-FORM-INSTANCE, the default columns which display in the FORM have impact of FORM PERSONALIZATION. When I display new Columns from FOLDER TOOLS (like ULTIMATE_SHIP_TO_DATE) than those columns are not having any effect of FORM PERSONALIZATION.
How can I disable this field using FORM PERSONALIZATION.
Regards,
Khan.Hi,
How can I get the column names in R12, which are available in FOLDER TOOLS -> SHOW FIELD using global variable or through some other means in FORM PERSONALIZATION.
When I use WHEN-NEW-FORM-INSTANCE, the default columns which display in the FORM have impact of FORM PERSONALIZATION. When I display new Columns from FOLDER TOOLS (like ULTIMATE_SHIP_TO_DATE) than those columns are not having any effect of FORM PERSONALIZATION.
How can I disable this field using FORM PERSONALIZATION.
Regards,
Khan.
Maybe you are looking for
-
Hello, I basically have only fact tables that I need for my analysis. No dimensions, no hierarchies. When add two tables in OBI Answers to start the analysis I see this error: [nQSError: 14025] No fact table exists at the requested level of detail I
-
Why is my iTunes and App Store in Chinese on my brand new iPad 2?
Why is my iTunes and App Store in Chinese on my brand new iPad 2?
-
Is it possible to change the size of an applet window while the applet is running? If so, how. thanks
-
I need to back up my iPhone via the wifi but dont know how much memory is going to use and our internet isnt the greatest package. Does it back up the full memory of the iphone? so if its a 16gb, 32gb etc does it back up to the memory.
-
Why does adobe crash everytime I try to do a mail merge?
I'm using the latest CC version of InDesign. I do 1-4 mailmerges a month. Doesn't matter the size (range from 300-5000), but Indesign frequently crashes. I had less trouble before Creative Cloud. Any one with me?