How to check old value in form personalization.
Hi All,
Could anybody please tell me how to check the old value in oracle forms using form personalization if someone is updating to someother value.
For example.
My Vendor Site Alternate name is XYZ
and someone has changed it to ABC, How could i check the old values before or after doing updates.
I don't want to write trigger for this.
Thanks & Regards,
Vishwas
Pl see if the solution in this thread can help - Re: Capture who changed data using Forms Personalization & changed to what
If not, pl see old threads that discuss forms personalization
http://forums.oracle.com/forums/search.jspa?threadID=&q=forms+AND+personalization&objID=c3&dateRange=last90days&userID=&numResults=15
HTH
Srini
Similar Messages
-
How to check the value in Table CDPOS
Mostly I can't see the following fields value in the table CDPOS,
(1) CDPOS-VALUE_NEW
(2) CDPOS-VALUE_OLD
In fact, it should have values, so how to check the values, is there any special method needed?
Thanks and best regards.Ferry Lianto,
Thank you very much for your expertise.
It's helpful to get some contents via FM:CHANGEDOCUMENT_READ_POSITIONS, the problem is, to some kind of DELETION operation, the log in table CDPOS is very simple, I still don't know which contents were deleted even though I found records in table CDPOS.
Is there any other suggestions?
Thanks and best regards. -
How to check a value for paramter query
I am passing a paramter value from my text box to my sql statement and I would like to check if the value is entered into a text box. If you have any idea please share it with me, i have been struggling with this for many days.Code below is how i try to check if the value is entered but I do not know how to check the value in the :VendorName
thanks
If Not txtVendorName.Text = "" Then
Sql = Sql & " AND (Upper(V.VNAMEL) LIKE '%' || Trim(Upper(:VendorName))|| '%') "
End IfSorry guys english is not my first language and i will try to be clear and specific.
I have a search page where customeres can do searching either using a text box or two dropdowns i have on my page. they have the option of doing search either using a text box or dropdowns or both.Everything seems to work fine but if users does not leave the text box blank. but they leave the text box blank and do searching using the two dropdowns then the page comes up empty and i checked my query and i should get a value. Attacehed my code for you to look at it.
<pre>
Sub VendorSearch()
gvSearch.Visible = True
Dim MinPDate As String = drPur.SelectedItem.ToString
Dim MaxMDate As String = drPurM.SelectedItem.ToString
Dim liThisOne As ListItem
Dim strState As String = ""
For Each liThisOne In lstState.Items
If liThisOne.Selected Then
strState = strState & "'" & liThisOne.Value & "'" & ","
End If
Next
Dim Sql As String = " SELECT distinct V.VENDOR ""Vendor Id"",R.ADDRNUM,V.VNAMEL ""Vendor Name"",R.AADDR1,R.ACITY,R.VASST1, "
Sql = Sql & "R.ASTATE State,R.AZIPCODE, to_char(Max(P.DATEPUR),'YYYY/DD/MM') ""Plan Purchased Date"" , "
Sql = Sql & "TRIM (r.aaddr1 || decode(trim(r.aaddr2),null,'',' - ') || r.aaddr2) Address,"
Sql = Sql & " substr(decode(trim(r.vasst1),null, 'N/A','000/000-0000?','N/A','000/000-0000','N/A', r.vasst1),1,12) Fax, "
Sql = Sql & " substr(decode(trim(r.aphone),null, 'N/A','000/000-0000?','N/A', r.aphone),1,12)Phone "
Sql = Sql & "FROM VENDOR V,VENDADDR R, PLANHOLD P "
Sql = Sql & "WHERE V.VENDOR = R.VENDOR AND P.VENDOR = R.VENDOR "
Sql = Sql & " AND (P.DATEPUR >= TO_DATE('1999-01-01','YYYY-MM-DD')) "
Sql = Sql & "AND P.DATEPUR In ( select Max(P.DATEPUR) from PLANHOLD P where P.vendor = R.VENDOR) "
'If txtVendorName.Text <> "" Then
' Sql = Sql & " AND (Upper(V.VNAMEL) LIKE '%' || Trim(Upper(:VendorName))|| '%') "
'End If
If (strState.Length > 0 And lstState.SelectedIndex <> 0) Then
strState = Left(strState, strState.Length - 1)
strState = "(" & strState & ")"
Sql = Sql & "AND R.ASTATE IN " & strState
End If
If (drPur.SelectedIndex <> 0 And drPurM.SelectedIndex <> 0) Then
Sql = Sql & " AND to_number(to_char(p.datepur, 'YYYY')) between " & "'" & MinPDate & "'" & " AND " & "'" & MaxMDate & "'"
End If
' Dim Para As String
' SqlDataSource1.SelectParameters.
If Not txtVendorName.Text = "" Then
Sql = Sql & " AND (Upper(V.VNAMEL) LIKE '%' || Trim(Upper(:VendorName))|| '%') "
End If
'If Not IsDBNull(SqlDataSource1.SelectParameters(":VendorName")).val Then
' Sql = Sql & " AND (Upper(V.VNAMEL) LIKE '%' || Trim(Upper(:VendorName))|| '%') "
'End If
Sql = Sql & " AND V.VOBSOLET = 'N' "
Sql = Sql & "GROUP BY V.VENDOR, R.ADDRNUM,V.VNAMEL,R.AADDR1,R.AADDR2,R.ACITY,R.ASTATE, R.AZIPCODE, R.APHONE, R.VASST1, P.DATEPUR "
Sql = Sql & "ORDER BY V.VENDOR "
Response.Write("Sql " & "<br/>" & Sql & "<hr/>")
SqlDataSource1.SelectCommand = Sql
End Sub
</pre> -
Check old value of MM42 characterisitcs Tab after change
Hi Guru,
is there any way to Check old value of MM42 characteristics Tab after change?
i had tried using CDHDR & CDPOS table to check any updates in MM42, but it only store the date of update, not the actual value/old value of i changed.
Regards,
Howardany idea?
-
Default KFF segment value using Forms Personalization
Hi All,
Is there any way to default the KFF segment value based on other field value thru forms personalization?
Thanks,Gareth,
Sorry for taking so long to respond. I was on vacation last week. Your suggestion was exactly what I wanted. The '=' made all the difference. I tried it with the INITIAL_VALUE also and both work. Thanks a lot!
Thu -
How to check old and new value for a text item attached to a lov?
Hi,
I am new to Forms.
I need your help in following.
I have a form which has a text item which is attached to a LOV. I want to track what changes are being done using that form. So i want to know what was old value and what is new value.
I can get the new value as it is there in form field. how can i know what was the old value.
Thanks
Prashant PathakThis is wrong:
name_in(':' ||l_audit_block.field_name)
this is right and will get you the current value of the the item:
name_in('l_audit_block.field_name');
Assuming the name of you block is "l_audit_block" and the name of your item is "field_name".
Please note name_in() returns your current value for an item. In your case this may or may not be the "old" value. I define "old" value as the value it was when it was queried. If that is what you are looking for you need to use the get_item_property() call that Steve described above.
--pat -
How to pass the FORM Fields value by Form Personalization
Hi ALL,
I want to pass form filds values in to procedure. I am calling this procedure through form personalization of that form..... But it's not accepting any form field's value there... when i am passing hardcoded vales procedure is executing fine...
can any one suggest what to do???
i tried with these syntax
TEST_EMP_FP(:ADDR.ADDRESS_ID,'ABC')
TEST_EMP_FP(${item.ADDR.ADDRESS_ID.value},'ABC')
Regards
RaviHi,
Iam calling an SRS from forms personlization. Can any body tell me how to pass the Form field values as parameters to the Reports. (Example when they call this Concurrent request from Transact5ions screen, The invoice number should be defaulted in the report parameter).
Regards,,
Anil. -
Which table stores old value of IBAN number and how to retrive old value.
HELLO TEAM
We are going through an enhancement process that requires to display old value and new value of the IBAN number from the Vendor master records. As IBAN is a combination of the country key, Bank Key and Bank account number, which are all key fields, their values are stored in the form of key in CDHDR and and CDPOS tables. The bank details are only shown in other key tab/column and the field name is displayed as key in CDPOS. These sensitive field changes are displayed as created or deleted but do not show as old value=x and new value =Y.The old value and new value fields are blank. The same happens for object IBAN and the tiban table only stores iban numbers that are updated and does not store old value of the iban number.
If I have to display in the report s_alr_87012089, the old value and the new value of the iban number , how can i achieve the task. From which table we can retireve the old value of the IBAN number.
<< Moderator message - Everyone's problem is important. But the answers in the forum are provided by volunteers. Please do not ask for help quickly. >>
Thank you in anticipation of a solution
Shekhar
Edited by: Rob Burbank on Jul 19, 2011 4:59 PMHello Team
We have explored all the above means. We are working in 4.7 environment. As we could not find an appropriate solution, we have approached the forum. The old value is not stored in cdhdr and cdpos and has the indicator as 'E' -Delete. So if an updation is done then it will delete old value and create a new value. This happens especially for the fields Bank Country Key,Bank Key, Bank Account Number. All we have checked the object attributes in the table lfbk, where for some fields it does track changes and for other it does not track changes. This is especially for the fields kovon and kobis.
If the requirement is to track changes to the fields Bank Country Key,Bank Key, Bank Account Number, kovon, kobis, iban which are sensitive data, and the report has to display old value and new value for sox compliance, how can this be achieved?
I have also gone through the SAP note 580266
If we are running a report to track changes to all vendors or a selected group of vendors, only some fields show up the value old value and new value.
Would appreciate if an appropriate solution is provided.
Request for a solution as i waited for 2 days if any expert could help!!!
Thank you
shekhar
Edited by: V_Shekhar on Jul 27, 2011 1:18 PM
Edited by: V_Shekhar on Jul 28, 2011 4:36 PM -
How to change default value in form
Hi,
I want to change the default value in form..how can i do this?
Fo exa...in purchasing when we go to auto create..in action tab we see create been defaulted whenever we open the form and also there is one more option called add to...so whenever i open this form..i want to see add to there..
How can we get this?please advise?
Thanks
MahendraYou can do it using forms personalization.
-
Get back old values into Form Building Application
I have a database trigger that raised an error message when a record is no allowed to change/update. I would like to know how I go back to the old values and reflect these into my application.
I use Oracle Forms Building Version 9.0.2.10.1 (Production) under Window XP system. Below is the database trigger code:
CREATE OR REPLACE TRIGGER "DBDSCHM".AAPT_REVIEWS_BUR
BEFORE UPDATE ON AAPT_REVIEWS
REFERENCING OLD AS OLD NEW AS NEW
FOR EACH ROW
DECLARE
Aaap_approved EXCEPTION;
BEGIN
IF (Aapfn_List_Items_Desc(:OLD.AREV_STATUS) = 'APPROVED' AND
:OLD.AREV_CREATED_BY = 'AAPTRF' AND
:OLD.AREV_MODIFIED_BY = 'AAPTRF') THEN
RAISE Aaap_approved;
END IF;
EXCEPTION
WHEN Aaap_approved THEN RAISE_APPLICATION_ERROR(40509,'This Review cannot be modified. '||
'AAP Approved prior to Conversion');
END aapt_review_bur;
SHOW ERRORThanks John, but the proposed of this trigger is to prevent any user to update the records that were loader prior to the Data Loader. That is the reason that this trigger has a condition to compare the old value with the new value. Please, see the syntaxes below:
CREATE OR REPLACE TRIGGER "DBDSCHM".AAPT_REVIEWS_BUR
BEFORE UPDATE ON AAPT_REVIEWS
REFERENCING OLD AS OLD NEW AS NEW
FOR EACH ROW
/* This trigger prevents to modify any AAP review */
/* that was already approved PRIOR TO THE Conversion.*/
BEGIN
IF (Aapfn_List_Items_Desc(:OLD.AREV_STATUS) = 'APPROVED' AND
(:OLD.AREV_CREATED_BY = 'AAPTRF') AND (:OLD.AREV_MODIFIED_BY = 'AAPTRF')) THEN
RAISE_APPLICATION_ERROR(-20090,'This Review cannot be modified. AAP Approved prior to Conversion');
END IF;
END aapt_review_bur;
What I really want is that when the above trigger fire and the user receive the raise application message meaning that the user could not updated the record. But the wrong value still show on the form and it will keep getting this error until you put back the previous value. What I really want is to be able to raise the application error and to show back any values that were tried to modify. -
How to make DFF mandatory in forms personalization based on another field
how to make DFF field mandatory in forms personalization based on another field ,and also user can put values in the DFF field.
Edited by: SinghP on Mar 14, 2012 12:16 AMHi,
4 DFFs are enabled.
CASE1: when payment is voided DFF4 should be mandatory feild
CASE2: when user queries the voided payment , above DFF4 should be readonly or not editable
Unable to acheive both the cases with Forms Personalization.
When trying case2 error pops up saying null canvas.
Can you please provide some examples if you have any.
I can find any customizations on this form
Thanks
Edited by: user11344029 on Mar 15, 2012 11:28 AM -
How to get the values of form valuess
Hi All,
Good Morning,
i create a page with some form valuesss
that form values are based on view attributes(vo)
i did some caluculations and store that values in form value variabless at the time of creating a row in table.
now i want to open that row in edit mode.
that time all text fields values are getting and displayed in text fieldss.
but that record form values are not getting.the form values store the null values.
how can u get the values of form value variables in the edit mode.
ThanksHi
ohh ,ok ,then as u said that u r storing twenty values ,thats y i aksed earlier ,are these form values part of tbale ,or as u said 20 values are there ,for these u r creating 20 form values ???.
My suggestion would be ,u do four calculation and put all your results in a hashmap ,and keep this hash map in to sesion ,using the following method
pageContext.putTransactionTransientValue("HashMapName",myHashMap);
and inside the PFR method when u want to display these values ,u can loop through your hashmap and can display these values.
like this
HasMap hm=pageContext.getTransactionTransientValue("HashMapName");
thanx
Pratap -
Unable to populate the default value using form personalization
Hi, I need to default a value in order managemnt for waybill number
shipping -- transaction - delivery - detail --
In Order management
Shipping - Transactions
Source system -- Order management
From Order number - Any ordernumber
say find
I want to default this Detail ( xxxxx) as Way bill
value of :DLVB.DETAIL_LABEL
I have put the following condition on form personalization
Condition tab
Triger event
When new record instance
Trigger object
dlvy_s
Processing mode both
Actions tab
Property
Object type Item
Target Object DLVY_S.WAYBILL
Property name Value
Value
:DLVB.DETAIL_LABEL
but it is not defaulting... Appreciate if any one has idea what is wrong in this.
Edited by: 885022 on Oct 3, 2011 11:31 AM
Edited by: 885022 on Oct 3, 2011 11:33 AMyes Srini
as we dont have any option via personalization to set the default values ,it can be done through controller extension ,
in processRequest method of extended controllere get the control for that particular field where u want to set the default value and set the value using fieldbean.setValue(pagecontext,value);
in case of any particular case ,please post in the forum
thanx
Pratap -
How to save a value in form jsp?
hi all,
i have a dropdown list in my struts web app,
i am having a form in which a bean is instatiated(bean has 2 properties "name" and "code").
i am using like this in the jsp:
<td><html:select property="item.code">
<logic:iterate id="itemType"
name="<%=WebConstants.getItemTypeListName()%>">
<option value='<bean:write name="ItemType" property="code"/>'><bean:write
name="ItemType" property="name" /></option>
</logic:iterate>
</html:select></td>
each "itemType" has "code" and "name".
when the user clicks on the item name on the dropdown item beans "code" is populating.now i need to populate "name" aswell at the sametime using hidden property.
i want to save tha value of name in the jsp to use it later to populate "name" in my form using hidden property?
do anyone have idea how to save the value in jsp?
regards and thanks in advanceThank you. I execute the program below. I can now retrive the data from the Lt.txt. But the value is limited to 3 digits. For example, the content of my file is 777888.
When I run the program, I only get 777. How can I retrive the whole exact number?
import java.io.*;
class Test {
public static void main(String args[]) {
try {
File inputFile = new File("Lt.txt");
File outputFile = new File("outagain.txt");
FileReader in = new FileReader("Lt.txt");
FileWriter out = new FileWriter(outputFile);
char[] tmp = new char[3];
int cnt = in.read(tmp);
System.out.print("\nRead: ");
for (int i = 0; i < cnt; i++) {
System.out.print(tmp); }
System.out.println(" ");
in.close(); }
catch (IOException ex) {
System.out.println("IOException:"+ex.toString()); } }} -
How to check 1000+ values comming as In parameter in plsql code.
Hi,
For a PLSQL procedure
I am geting in all 5 parameters from front end. One of which is a comma separated list of 1000+ values. Now I need to check these values to retrieve from the database.
eg. create procedure sp1(param1 date, param2 varchar2,param3.....,param5 varchar2)
as
begin
select col1,col2,col3 from tab1
where param1 = to_date(date)
and param2 = 'abcd'
and param5 = (list coming from front end)
How should I pass this list to param5 for selection criteria so that each time single value is retrieved and row is returned to the front end
Also How should I return this resultset to front end. Should I use OUT parameter as sysrefcursor?
it will really help me if I get any example on above problem.
Thanks in advance.
Edited by: 954825 on Aug 24, 2012 7:39 AMSolomon Yakobson wrote:
Bad design. Fifth parameter should be collection. Anyway:
and ',' || list-coming-from-front-end || ',' like '%,' || param5 || ',%'SY.Unfortunatly there is a high chance that this fails because of the 4000 characters limitation in sql.
If there are truely 1000+ values. Lets assume 1100.
This means: 1100 characters just for the comma + at least 1100 characters for single char values.
Single chars of cause do not make sense. Most languages don't have so much different characters, this means the list would have repeating values.
If we assume that all values are different, this means we are speaking about a minimum of 3 chars.
Therefore 1100 + 3* 1100 = 4400 chars. SQL limit broken.
I think the only solid solution would be to build a collection/array/temp table structure and then work with that.
Maybe you are looking for
-
Hi, How do I export HDR photos made on a macpro with photoshop cs5 onto a flashdrive so they can be imported correctly into a windows machine that doesn't have photoshop installed on it? Already exported to a HP flashdrive but they do not even show
-
Core dump with SunOS 5.8 linker patch 109147-35
Our application experiences a segmentation fault and dumps core when executed on machines patched with recent versions of SunOS 5.8 linker patch 109147. The coring occurs with versions 18 through 35 of patch 109147. Coring does not occur with version
-
Problem downloading the photoshop trial?
When trying to download the trial through this page: https://creative.adobe.com/products/download/photoshop It keeps giving me this error: How do I fix this? Thanks
-
My Ipod is plugged in, but my computer says that is unable to sync, restore, or all of the above because there is a duplicate file name. Then when I un-plug my ipod it stays frozen on the connected screen. What do I do???
-
Configuring Oracle 9i forms [icons] urgent
Please could any one help me point to the URL of the white paper that deals on how to configure icons in Oracle 9i forms or better still, give me a clue on how to go about this. Thanks