Trigger does not update the results?!?!? Am i wrong?
Hi all. I have small problem with oracle forms 10g and VBean that is inside a oracle form.
My bean communicate with the form with set and get property methods like this:
protected static final ID a = ID.registerProperty("a");
public Object getProperty(ID property) {
if (property == a) {
String string= returnRandomString();
return string;
} else
return super.getProperty(property);
and i have a button in the form, that on the trigger when-button-pressed is executing the following pl/sql
randomString:= Get_Custom_Property('PERSONAL_DATA_FORM_BLOCK.SIGN_FORM_BEAN_AREA', 1, 'getSignedDataAsBase64');
When I press the button it returns me some string, but when i press it for second time it returns me the same string as the first time(the method returnRandomString() always returns different strings). So The info is not refreshed. Am i wrong somewhere or this is the correct behavior. As it is trigger it must be triggered every time i press the button, right?
Finally is there any way to call a method placed in my class (that is extending VBean) from pl/sql trigger and how?
the property should be read every time.
protected static final ID a = ID.registerProperty("*a*");
randomString:= Get_Custom_Property('PERSONAL_DATA_FORM_BLOCK.SIGN_FORM_BEAN_AREA', 1, '*getSignedDataAsBase64*');i guess its just because you posted examplecode that the property-names do not match ?!?
To check if your method is called in the bean you could try a System.out.println(randomString); in the java bean and look into the concole of Jinitiator/Sun Plugin?
just to make sure: Sure that returnrandomstring() returns something different for each call?
Similar Messages
-
Why this query does not show the result?
Why the query with the schema prefixed does not show the result and the query without schema display the correct results?
SQL> select data_object_id,object_type from dba_objects where object_name='HR'.'JOBS';
select data_object_id,object_type from dba_objects where object_name='HR'.'JOBS'
ERROR at line 1:
ORA-00933: SQL command not properly ended
SQL> select data_object_id,object_type from dba_objects where object_name='HR.JOBS';
no rows selected
SQL> select data_object_id, OWNER, object_type from dba_objects where object_name='JOBS';
DATA_OBJECT_ID OWNER OBJECT_TYPE
69662 HR TABLE
OE SYNONYM
SQL> SELECT USER FROM DUAL;
USER
SYSHi,
the column object_name refers to a object_name which is 'JOBS', the column owner refers to the owner 'HR', the value isn't stored together, so you have to select the two columns. It is the same behaviour as every other table/view. Have a look at the values in the view DBA_OBJECTS.
Herald ten Dam
Superconsult.nl -
Hi All,
I am new here . We have batch split in Delivery and 601 happens for the individual batches and billing we bill for the entire quantity . Hence the RG1 does not update the excise values for the batches and it is showing as zero (upon extraction in J2I6). Upon research through the program the latest note which i presume is patched
The latest note is N158234 which does not show in the program but seems have been patched considering we are using the Latest version of SAP .
As you see above in the billing we have billed for the whole quantity but RG1 does not update for the since the batches are zero .
My programmer says because of some note related to cancellation where it says about values H & J in vbfa table and due to which program does not go through the Note for the batch split .
Now i have checked few other projects in my company and they all seems to be following the program . So i am wondering whether my process or some customization is missing .
Sales order (no batch determination) , in delivery the batches are picked through wm to and batch split happens in the delivery . Then billling for the whole quantity . We have automatic excise invoice creation enabled so no J1IIN .
Can somebody help me .
Thank youMy programmer says because of some note related to cancellation where it says about values H & J in vbfa table and due to which program does not go through the Note for the batch split
Which field (H & J) they were referring in VBFA ?
i have checked few other projects in my company and they all seems to be following the program
How about the other projects' values in VBFA where your techinical team is guessing some issue. Have you compared this?
Since you have already the note 158234 implemented in your system, ideally, you should not face any issue.
G. Lakshmipathi -
Application Compatibility does not update the database.
Hi,
I am using application compatibility manager 6.1, and SQL server 2012 as database. ACT run ok and it create the XML file but it does not update the database at "C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS\MSSQL\DATA" location.
I can see the valid XML file but somehow the MDF file of database is not updated so my ACT windows does not showing anything on it.
Any Help would be appreciated.
Thanks
Rakesh Patel
rakesh patelHi Rakesh,
I am not sure if you have resloved your issue.
But for helping others to know what to do if they meet the same issue as yours, I consider to mark the post as answered.
If you would like further assistance, please post back and we will be always here to help you.
Any concern about this mark behavior, you can just unmark it.
Thanks for your understanding.
Regards,
Kelvin hsu
TechNet Community Support -
Approval Workflow does not update the Content Approval status if started automatically
Hi,
I’m using a simple Approval Workflow associated with
Content Approval on site pages. It works fine when I set it to be started manually (by using
Allow this workflow to be manually started by an authenticated user with Edit Item permissions
option) and on the completion of the workflow the
Content Approval status is updated accordingly. But when I set it to be started automatically (by using
Start this workflow when a new item is created
/ Start this workflow when an item is changed
options), it does not updates the Content Approval status. Note that I’ve set the
Update the approval status after the workflow is completed (use this workflow to control content approval)
option to true.
RegardsHello,
It is recommended to select "Start this workflow to approve publishing a major version of an item" when you want to use the workflow to manage content approval for
a library.
According to the Notes for “Enable Content Approval” option in
this reference:
If you are using this Approval workflow to manage content approval (moderation) for a library, and you selected the Start this workflow to approve publishing a major version
of an item check box on the Add a Workflow page..
If you did not select the Start this workflow to approve publishing a major version of an item check box on the Add a Workflow page because you do not want this workflow to
be the default content approval workflow for a library, you can select the Update the approval status (use this workflow to control content approval) check box to make this workflow a secondary content approval workflow that specific users can
start manually.
That means having an approval workflow start automatically when a document is changed or created is not a good practice when you want to use the workflow to manage
content approval for a library. You should either select "Start this workflow to approve publishing a major version of an item" or give users the option to start the workflow manually at the time they want to submit for an approval.
Thanks & Regards.
Lily Wu -
I iMac, Mac OS X 10.6.8 Lately it does not update the program. Writes the following: "Unable to install the update iTunes. An unexpected error occurred." What you need to do that right, that programs can be updated again?
you will have the most up to date itunes available for your os 10.6.8. to get a newer version you will have to upgrade to a newer os.
-
I need to update a schema from Sharepoint with namespace
http://schenas.microsoft.com/office/2006/metada/contentType when i am opening a Word document. I am using VBA to do so. When i have made the Changes it does not update the DIP, not until i save the document.
Is there a way to update the dip using VBA.
/Ola
olhaHi,
This is the forum to discuss questions and feedback for Microsoft Office client. For any VBA related issues, I would suggest you to post in related MSDN forum -
Microsoft Office for Developers, to get better support experience:
https://social.msdn.microsoft.com/Forums/office/en-US/home?category=officedev
The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
Regards,
Ethan Hua
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs.
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected] -
Reschedule does not update the schedule line
Dear All expert,
After upgrade to ECC6.0, the reschedule does update the schedule lines eventhough it list all the required to be update in the list.
As I checked , it update the ekpo successfully but does not update the eket.
Is there any suggestion ?Hi,
On the initial screen of V_V2
Remove tickmark of SIMULATION, Then it will update schedule lines in sales document
Kapil -
Type 2 SCD -- does not update the old value.
I have following columns in the source table:
SSN, credit_score
In the target, I have following columns,
SK_ID, SSN, credit_score, flag
I am flagging the old credit_score as 'N' when updating the row and at the same time it is supposed to enter a new credit score with flag 'Y' in another row.
Second, If a row is completely new, It should be inserted with the flag 'Y'.
SK_ID is the surrogate key and SSN is the natural key, My trigger column is credit_score.
The problem is that when I run this type 2 mapping, it does not update anything but inserts the new rows only.
I have posted the screen shots at the following link.
http://www.box.net/shared/ea9v48r0xa
Thanks for your help in advance.First of all, thanks for the reply...
You can also look at the screen shots I posted in previous post.
Here is how I am updating the rows (update logic).
If source_SSN=target_SSN and source_credit_score!=target_credit_score
then flag = 'N' (this is the update from 'Y' to 'N' after which i will insert a new row containing new value of credit_score with flag 'Y')
As an example, if my old rows in the target table were:
sk_id SSN credit_score flag
101 2212 654 Y
102 3023 707 Y
Now let's say my source table has these values.
SSN credit_score
2212 648
2220 690
Then my target table should be like this:
sk_id SSN credit_score flag
101 2212 654 N
103 2212 648 Y
102 3023 707 Y
104 2220 690 Y
Do you see what I mean... -
FDF does not update the Formdata
Hello,
in php I wrote a a smal script to generate a fdf file but the form does not show the data. I am pretty sure that the code is correct and the fields exists in the pdf.
// getdata.php
$fdf_out='C:\PHPCode\Medi\results\test1.fdf';
$pdf_doc='http://localhost/test2.pdf';
$outfdf = fdf_create();
fdf_set_value($outfdf, "Textfeld1", 'mein Text', 0);
fdf_set_value($outfdf, "DatumsUhrzeitfeld1",date('Y-m-d H:i:s'), 0);
fdf_set_file($outfdf, $pdf_doc);
fdf_save($outfdf, $fdf_out);
fdf_close($outfdf);
Header("Content-type: application/vnd.fdf");
$fp = fopen($fdf_out, "r");
fpassthru($fp);
unlink("test1.fdf");
after pressing the submitbutton (http://localhost/getdata.php#FDF). I can see a data tramsmission but no new data.
Could I have missed something? LiveCycleDesigner Option?
I there a way to debug the calling PDF to see what is being done?
thanks a lot, this is bugging me since 2 days now..
edgarSince Adobe provides the ability to create AcroForms that uses the FDF file, it is hardly outdated. And there are many web applications that provide a copy of a user completed form in a pdf format that users with Reader can save by use of the FDF file to provide the data and the link to the associated PDF form.
AcroForms provide features that are not available to LiveCycle Designer forms or LiveCycle Designer needs to use the Acrobat object and Acrobat AcroForms JavaScript to use those features. XML forms can not be flattened nor can they obtain the properties of the identity object.
Both products are about the same age.
I would hardly consider this an outdated product just because there is a different approach. -
Real time ROLAP or Automatic molap cubecube does not update the value
Hello Everyone,
I am working with Real time Rolap and Automatic MOLAP cube. I had created cube using AdventureWorks DW sample given by Microsoft Tutorial. when i fire insert query, It updates data. It works fine in both the cases after reconnecting in SSMS and SSAS browser.
But I have a one database table in SQL server with 4 varchar and 10 numeric fields [simple table with one primary key without any relationship with other table]. I tried to create both type of cube from direct database table [selecting varchar fields as
dimensions and numeric as measures], created partitions, specified server side tracking table. It processes the cube. but when i add rows into this table. It inserts record but does not update in SSAS browser or SSMS browser.
Please help me what is the problem???
Thanks in Advance!I noticed the same behavior reported by Bob: Not regarding the "process filter" or the "update frequency" selected "CPU Time" column is only updated when details dialog is open. I noticed it just today (which triggered the search here), I wonder if this "feature" has been always present or maybe activity monitor is getting lazy?
Regards,
Mauro -
When I sync my iPad with iTunes it does not update my play counts. Is there a way to make this happen?
Are you using iTunes Match by chance? I had no problems whatsoever with play counts synching between any of my devices until I started using iTunes Match. I turned it off and magically my play counts synced. Once. Hasn't happened again though.
-
Trigger is not updateing the :new value in the table
Hi,
I've greated a row trigger that will trigger on insert statements.
The last thing the trigger will do is to update the :NEW.role_id value in the inserted row, see the trigger bellow.
The trigger was mutation so I had to add the 'PRAGMA AUTONOMOUS_TRANSACTION;' to avoid the mutation error.
When performing test with controlled insert statements the trigger is working without problems, but when I my J2EE application is inserting rows to the table the role_id value is nog updated, see the trigger below and the :NEW.role_id := nRole_id; part. The role_id for the new row is empty. What can be the problem?
CREATE OR REPLACE TRIGGER MSP_36.M2_USER_ALERT_INSERT_TRG_SCA
BEFORE INSERT
ON MSP_36.M2_USER_ALERT
REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
DECLARE
ex_not_valid_role_name EXCEPTION;
/* Variables */
nAlertTypeId M2_USER_ALERT.alert_type%TYPE;
isLogical boolean;
validRole boolean;
nRole_id M2_ROLE.role_id%TYPE;
PRAGMA AUTONOMOUS_TRANSACTION;
BEGIN
BEGIN
SELECT distinct at.alert_type INTO nAlertTypeId
FROM M2_USER_ALERT ua, M2_ALERT_TYPE at,M2_ALERT_TYPE_PROPERTIES atp
WHERE ua.alert_type = at.alert_type
AND at.alert_type = atp.ALERT_TYPE_ID
AND ua.alert_type = :NEW.alert_type
AND upper(atp.property_name) = 'LOGICAL'
AND upper(atp.property_value) = 'TRUE';
isLogical := true;
EXCEPTION
WHEN no_data_found THEN
isLogical := false;
NULL;
END;
IF (isLogical = true) THEN
BEGIN
SELECT distinct ro.role_id INTO nRole_id
FROM M2_ROLE ro, M2_USER_ALERT
WHERE ro.name = :NEW.name;
EXCEPTION
WHEN no_data_found THEN
validRole :=false;
RAISE_APPLICATION_ERROR(-20001,'LOGICAL UserAlert: Role with id'|| nRole_id || ' does not exist.');
NULL;
END;
validRole := true;
IF (isLogical = true AND validRole = true AND :NEW.status = 1) THEN
INSERT INTO M2_USER_ROLE (user_id,role_id)
VALUES (:NEW.user_id,nRole_id);
:NEW.role_id := nRole_id;
END IF;
END IF;
commit;
END;
Many thanks,
MichaelI only get a empty column that include now data. The first insert is working correct so I know that the role_id is valid and working. Can there be problem with commit or my AUTONOMOUS_TRANSACTION running this from JDBC ?
EXAMPLE data from
M2_USER_ROLE
===================
USER_ID = ROLE_ID =
===================
20 = 10040 =
1259756 = 10040 =
===================
Example partly data from
M2_USER_ALERT
=========================================================
USERALERT_ID = USER_ID = ALERT_TYPE = NAME = ROLE_ID =
=========================================================
3725 = 1259756 = 10288 = MG_Test = =
=========================================================
When inserted from the application the role_id is empty and I've taken the same SQL from the library cache and run it with same BIND variables and then it's working.
Michael -
IDOC_INPUT_HRMD, it posts the document but does not update the Infotypes
Hi,
I am trying to trigger the IDoc Type 'HRMD_A06'. This Idoc was posted successfully, with the status as '53' (inbound IDoc). The Processing Function Module is IDOC_INPUT_HRMD for the IDoc "HRMD_A06". However the infotypes are not updated. The infotypes I am trying to update are 0000,0001,0002,0006, & 0008.
If someone has a solution for this issue. Kindly let me know.
Regards,
NarunHi Srinu,
Again....
Whats happening in Debug ???
Just clone the FM as it is and use the FM HR_INFOTYPE_OPERATION instead of other.
Parameters:
The following code is for infotype 15 inside custom FM which i have done. u can use for ref.
CALL FUNCTION 'ENQUEUE_EPPRELE'
EXPORTING
pernr = l_wa_p0015-pernr
EXCEPTIONS
foreign_lock = 1
system_failure = 2
OTHERS = 3.
IF sy-subrc = 0.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
INFTY = c_0015
NUMBER = l_wa_p0015-pernr
SUBTYPE = l_wa_p0015-subty
OBJECTID =
LOCKINDICATOR =
VALIDITYEND = l_wa_p0015-begda
VALIDITYBEGIN = l_wa_p0015-endda
RECORDNUMBER =
RECORD = l_wa_p0015
OPERATION = c_ins1
TCLAS = c_a
DIALOG_MODE = '0'
NOCOMMIT =
VIEW_IDENTIFIER =
SECONDARY_RECORD =
IMPORTING
RETURN = l_i_return .
KEY =
To dequeue the selected employee
CALL FUNCTION 'DEQUEUE_EPPRELE'
EXPORTING
pernr = l_wa_p0015-pernr. -
PO rejection in SNC does not update the items in MM with ORDRSP
Hello everybody
I have got a problem with the integration of ORDRSP Idocs in MM (ECC6 - SAP_APPL 604) in the case of a PO rejection in SNC (7-SP7).
When rejecting a PO from SNC, the ORDRSP idoc is not integrated in MM
and is marked with an error message refering to a quantity difference
between the Idoc and the PO : "Acknowledgment for PO item 7621019091
00010 contains quantity variance"
Associated to the ORDRSP Idocs we are using the process code ORDR, and
I have checked that if we use the ORDR_SUS process, the integration
works well and the items are rejected in MM !
But I haven't found much informations about the differences between
ORDR and ORDR_SUS.
Is there a way to make the PO rejection works with the ORDR process or
could you tell me about the side effects of using ORDR_SUS in place of
ORDR ?
VincentHello Bharath,
Yes we have the same problem on the Idoc status but didn't fix it.
Here is the SAP answer about the rejection process :
With regard to the SNC->ERP integration of the rejection, the process
code in ERP inbound processing has to be set to ORDR_SUS (-> transactionWE20). Otherwise the rejection will not set the deletion indicator in
ERP PO and as a result the approval process is not triggered when the
supplier rejects a PO item.
Kindly refer to the word attachment showing the WE20 screenshot.
The purchase order can transfer the rejection information to the
customer back-end system. The ReplenishmentOrderConfirmation XML messagecontains a corresponding AcceptanceStatusCode. However, to integrate therejection of a purchase order item with the customer back-end system
using IDocs, you must implement SAP Note 962849, so that the deletion
indicator is set on the purchase order item in SAP ERP.
Kindly implement the following note as well:
1458562 - ROC_Out not sent if the supplier rejects a PO item
With the implementation of the this note, the R/3 backend system should
get updated once the supplier 'Rejects' the item.
Kind regards,
Vincent
Maybe you are looking for
-
Memory upgrade problem on Satellite L300
My laptop is a Satellite L300 PSLB8A-047004. I purchased a kit of 2 x 2GB modules and inserted carefully following the instructions (they clicked into place). On restart the Power light was lit, the fan was on but no further activity, and the display
-
Macbook with osx 10.6.8 crashes in the album mode(middle one) after installing itunes 10.6? It still crashes if I open itunes in the sfe mode.
-
AppleTV streaming has out of sync audio - anyone else having same issue?
Ive noticed since last updates to appletv and itunes that any mp4 file imported to itunes have very slight out of sync issues, enouth to be very annoying.... is it just me? i stream wirelessly usinga mac book pro and the latest appletv.
-
Hello Gurus, I have this issue while trying to open PDF in Workspace. I can open the Financial Reports in Workspace as HTML, however, if I try to open in PDF, I get the "The website cannot display the page" http 500 message. What could have been the
-
I have a problem, we have a vendor named vendorA. In one day, vendorA changed their name to vendorB. Then my colleague change the name on vendor master. I would like to know it is better create a new vendor code or modify the exist one? Since we stil