How i know if the row inserted in a document is by user or by wizard
Hi all,
I have a trouble to know if the inserted row is by the user or by the draw document wizard? This happens when i´m creating a document and i use 'copy from'.
Exist a way to know this? I see that the wizard typeex is "425". I can catch the event when the finish button is pressed but with that i don´t know how many row pass to document. I can read the lines of the matrix wizard and put a counter but i think this is botched job.
Thanks in advanced.
Regards
Hi Aitor,
If I have understood you correct, you want to know, whether a document raw is added by using 'Copy from' functionality or by adding individual items to form. if yes, then you can always check the column 'Base type' . make it visible from form settings. it will always have value if it is coming from other document ( or as u said, from 'wizard' or by doing 'Copy from'.)
regards,
Binita
Similar Messages
-
How to find out the rows inserted between a time period.
Hi,
Please help me to solve this.
Table - emp.
Colmns - empno(Primary Key),ename, mgr
How to find out the rows inserted between a time period.
For eg:- Between 02-Oct-2006 1 PM and 03-Oct-2006 2 PM.
regards,
Mathew.Hi,
Maybe work:
For each row, ORA_ROWSCN returns the conservative upper bound system change number (SCN) of the most recent change to the row. This pseudocolumn is useful for determining approximately when a row was last updated. It is not absolutely precise, because Oracle tracks SCNs by transaction committed for the block in which the row resides
e.g.:
SGMS@ORACLE10> create table test(cod number);
Table created.
SGMS@ORACLE10> insert into test values (1);
1 row created.
SGMS@ORACLE10> insert into test values (2);
1 row created.
SGMS@ORACLE10> commit;
Commit complete.
SGMS@ORACLE10> insert into test values (3);
1 row created.
SGMS@ORACLE10> commit;
Commit complete.
SGMS@ORACLE10> select SCN_TO_TIMESTAMP(ora_rowscn),ora_rowscn,cod from test;
SCN_TO_TIMESTAMP(ORA_ROWSCN) ORA_ROWSCN COD
06/11/06 08:56:56,000000000 727707205 1
06/11/06 08:56:56,000000000 727707205 2
06/11/06 08:57:05,000000000 727707210 3Cheers -
How to find out the rows inserted in the last n minutes ?
Hi all,
I have a log table where, every time a warning is issued, a new row is added. The table has a field with the sysdate when the warning was issued.
I'd need to collect all warnings in the last (supposing) 30 minutes and send a mail to the administrator. Looking at some faqs I have elaborated this:
select * from PROCEDURE_LOGS p where ((p.DATE_LOG - sysdate)*-1440) < 30
However this does not produce anything.
Can anybody help me to correct this statement ?
Thanks a lot
FrankHi, Frank,
That looks okay to me. Are you sure you have rows in the table with a date_log in the last 30 minutes? Post some sample data (CREATE TABLE and INSERT statements), and the results you expect from that data for a given value of SYSDATE.
By the way, you can make the WHERE clause clearer like this:
select *
from PROCEDURE_LOGS p
where ( (sysdate - p.DATE_LOG)
* 1440 -- = 24 * 60
) < 30but this won't change the results.
Edited by: Frank Kulash on Dec 1, 2010 9:51 AM
I just saw Toon's reply:
where p.DATE_LOG > sysdate - (30 / 1440)as Toon suggested, is clearer still, and potentially more efficient if ther's an index on date_log. -
How can I use multiple row insert or update into DB in JSP?
Hi all,
pls help for my question.
"How can I use multiple rows insert or update into DB in JSP?"
I mean I will insert or update the multiple records like grid component. All the data I enter will go into the DB.
With thanks,That isn't true. Different SQL databases have
different capabilities and use different syntax, That's true - every database has its own quirks and extensions. No disagreement there. But they all follow ANSI SQL for CRUD operations. Since the OP said they wanted to do INSERTs and UPDATEs in batches, I assumed that ANSI SQL was sufficient.
I'd argue that it's best to use ANSI SQL as much as possible, especially if you want your JDBC code to be portable between databases.
and there are also a lot of different ways of talking to
SQL databases that are possible in JSP, from using
plain old java.sql.* in scriptlets to using the
jstlsql taglib. I've done maintenance on both, and
they are as different as night and day.Right, because you don't maintain JSP and Java classes the same way. No news there. Both java.sql and JSTL sql taglib are both based on SQL and JDBC. Same difference, except that one uses tags and the other doesn't. Both are Java JDBC code in the end.
Well, sure. As long as you only want to update rows
with the same value in column 2. I had the impression
he wanted to update a whole table. If he only meant
update all rows with the same value in a given column
with the same value, that's trivial. All updates do
that. But as far as I know there's know way to update
more than one row where the values are different.I used this as an example to demonstrate that it's possible to UPDATE more than one row at a time. If I have 1,000 rows, and each one is a separate UPDATE statement that's unique from all the others, I guess I'd have to write 1,000 UPDATE statements. It's possible to have them all either succeed or fail as a single unit of work. I'm pointing out transaction, because they weren't coming up in the discussion.
Unless you're using MySQL, for instance. I only have
experience with MySQL and M$ SQL Server, so I don't
know what PostgreSQL, Oracle, Sybase, DB2 and all the
rest are capable of, but I know for sure that MySQL
can insert multiple rows while SQL Server can't (or at
least I've never seen the syntax for doing it if it
does).Right, but this syntax seems to be specific to MySQL The moment you use it, you're locked into MySQL. There are other ways to accomplish the same thing with ANSI SQL.
Don't assume that all SQL databases are the same.
They're not, and it can really screw you up badly if
you assume you can deploy a project you've developed
with one database in an environment where you have to
use a different one. Even different versions of the
same database can have huge differences. I recommend
you get a copy of the O'Reilly book, SQL in a
Nutshell. It covers the most common DBMSes and does a
good job of pointing out the differences.Yes, I understand that.
It's funny that you're telling me not to assume that all SQL databases are the same. You're the one who's proposing that the OP use a MySQL-specific extension.
I haven't looked at the MySQL docs to find out how the syntax you're suggesting works. What if one value set INSERT succeeds and the next one fails? Does MySQL roll back the successful INSERT? Is the unit of work under the JDBC driver's control with autoCommit?
The OP is free to follow your suggestion. I'm pointing out that there are transactions for units of work and ANSI SQL ways to accomplish the same thing. -
How can I display the rows into columns.
How can I display the rows into columns. I mean
Create table STYLE_M
(Master varchar2(10), child varchar2(10));
Insert itno style_m
('MASTER1','CHILD1');
Insert itno style_m
('MASTER2','CHILD1');
Insert itno style_m
('MASTER2','CHILD2');
Insert itno style_m
('MASTER3','CHILD1');
Insert itno style_m
('MASTER3','CHILD2');
Insert itno style_m
('MASTER3','CHILD3');
Note : The Master may have any number of childs.
I want to display like this..
Master child1, child2, child3, .......(dynamic)
MASTER1 CHILD1
MASTER2 CHILD1 CHILD2
MASTER3 CHILD1 CHILD2 CHILD3
Sorry for disturbing you. Please hlp me out if you have any slution.
Thanks alot.
Ram DontineniHere's a straight SQL "non-dynamic" approach.
This would be used if you knew the amount of children.
SELECT
master,
MAX(DECODE(r, 1, child, NULL)) || ' ' || MAX(DECODE(r, 2, child, NULL)) || ' ' || MAX(DECODE(r, 3, child, NULL)) children
FROM
SELECT
master,
child,
ROW_NUMBER() OVER(PARTITION BY master ORDER BY child) r
FROM
style_m
GROUP BY
master
MASTER CHILDREN
MASTER1 CHILD1
MASTER2 CHILD1 CHILD2
MASTER3 CHILD1 CHILD2 CHILD3 Since you said that the number of children can vary, I incorporated the same logic into a dynamic query.
SET AUTOPRINT ON
VAR x REFCURSOR
DECLARE
v_sql VARCHAR2(1000) := 'SELECT master, ';
v_group_by VARCHAR2(200) := 'FROM (SELECT master, child, ROW_NUMBER() OVER(PARTITION BY master ORDER BY child) r FROM style_m) GROUP BY master';
v_count PLS_INTEGER;
BEGIN
SELECT
MAX(COUNT(*))
INTO v_count
FROM
style_m
GROUP BY
master;
FOR i IN 1..v_count
LOOP
v_sql := v_sql || 'MAX(DECODE(r, ' || i || ', child, NULL))' || ' || '' '' || ';
END LOOP;
v_sql := RTRIM(v_sql, ' || '' '' ||') ||' children ' || v_group_by;
OPEN :x FOR v_sql;
END;
PL/SQL procedure successfully completed.
MASTER CHILDREN
MASTER1 CHILD1
MASTER2 CHILD1 CHILD2
MASTER3 CHILD1 CHILD2 CHILD3I'll point your other thread to this one. -
How to list all the rows from the table VBAK
Friends ,
How to list all the rows from the table VBAK.select query and the output list is appreciated.Hi,
IF you want to select all the rows for VBAK-
Write-
Data:itab type table of VBAK,
wa like line of itab.
SELECT * FROM VBAK into table itab.
Itab is the internal table with type VBAK.
Loop at itab into wa.
Write: wa-field1,
endloop. -
How to know whether the javascript is disabled or not while loading the jsp
Hi,
My query is like how to know whether the javascript is disabled or not while loading the Application main JSP in Mozilla browser.
I want some Java code or JavaScript code.To the point, just let JS fire a specific HTTP request inside the same session.
This can be done in several ways. 1) Create a hidden <img> element and set the `src` attribute so that it will request a (fake) image from the server. The server just have to intercept on this specific request. 2) Fire an ajaxical request and let the server intercept on it. You can use a Filter for this which sets a token in the session scope to inform that the client has JS enabled. -
Hi,
How to know whether the Content Type at Library level is Inheriting Parent Content type or not using Powershell?
Is there any property for that? Or Do I need to compare the Content type Id's at Site collection level and Library level?
Any help would be greatly appreciated.
Thank you,
AA.Hi Ashok,
For a content type, there is an attribute called Inherits, the value of this attribute determines whether the content type inherits fields from its parent content type when it is created.
If Inherits is TRUE, the child content type inherits all fields that are in the parent, including fields that users have added.
If Inherits is FALSE or absent and the parent content type is a built-in type, the child content type inherits only the fields that were in the parent content type when SharePoint Foundation was
installed. The child content type does not have any fields that users have added to the parent content type.
More information, please refer to the link:
https://msdn.microsoft.com/en-us/library/office/aa544268.aspx?f=255&MSPPError=-2147217396
Best Regards,
Wendy
TechNet Community Support
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] -
How to know whether the current database is using a password file or not?
How to know whether the current database is using a password file or not?
The remote_password_file is the parameter that determines if you can use or not a password file. The values this parameter can have are NONE, SHARED, EXCLUSIVE. It is pretty obvious, if it is set to either SHARED or EXCLUSIVE the oracle instance has enabled the access through a password file for the SYSDBA and SYSOPER roles.
~ Madrid -
How do know that the battery is fully charged on ios 7
How do know that the battery is fully charged on ios 7
When you turn it on from sleep mode, below the time on the lock screen it says how much charged it is.
-
How to know if the pdf file is opened.
Hi,
on my web site I have many pages containing hundrend of url pointing to the pdf documents.
The problem is how I can know that the pdf file was open or downloaded by user ( I used session for this task). I have to point out that I did not integrate in my page any javascript action on those documents.
This point will help me to solve some historical access on the web site.
Thank youYour best bet would be to create a filter that will handle access to pdf files. This filter would be bound to /*.pdf and can have access to the users HttpSession object so you are able to find out who requested this file and logic it how ever you wish.
I Hope this helps
-Richard Burton -
KP06- The row inserted cannot be processed manually message Message no. K9
Dear expert,
Would like to seek help, that I try to upload budget using T-code KP06 from a text(tab delimited) file into SAP system by go to Extra->Excel Planning->upload but the system does not allow to upload the budget and have the following error.
1) The row inserted cannot be processed manually message Message no. K9
2) The cost element 4101110600 you want to plan has a primary cost element type.
The cost center HNIS to be planned is blocked against the planning of
primary costs. This block was made in the master record of this cost
center for period(s) 001.
3)Locks or problems have occurred
Message no. K8037
Diagnosis
When checking for the planning records to be processed/edited, locks or
problems were found. Only a portion of the planning records can be
processed or none at all.
I have check the period is not in the system by using OKP2 and the version and fiscal year is not lock and I dont not why this error message appear.
Please Help.
Thank you.
Regards,
Karen
Edited by: Karen Swee Ping Ho on Jun 2, 2011 8:02 AMHi Karen ,
Check master data of the cost center HNIS. The in control tab .. plan primary costs may be locked( Tick may be there). Remove the same and try to upload again..
You can also review OSS Note : 319713 - Error with Excel upload - possible
causes..
Hope it clarifies..
Regards
Sarada -
How do I change the row selection by mouse movement
How do I change the row selection on a jtable by mouse over events?
Thanks, Randygot it thanks...
-
How to make all the rows editable in webdynpro alv output
Hi,
How to make all the rows editable in webdynpro alv output.
Thanks
RaksharHi Rakshar,
Check this wiki:
http://wiki.sdn.sap.com/wiki/display/WDABAP/HowtoeditconditionallyrowofaALVtableinWebDynprofor+ABAP
Regards -
HT1349 how to know if the product r bought from apple store or digi?
how to know if the porduct r bought from apple store, digi or maxis?
It doesn't matter whether it was puchased at an Apple Store or at an Apple-Authorized Retailer. The warranty coverage and options are the same.
Use selfsolve.apple.com to determine if that device is still covered under warranty.
Maybe you are looking for
-
Hi I keep on receiving the same text message multiple times and at around the same time each night. Any idea how I can stop this happening? The text messages are originating from to separate Saudi Arabian mobile numbers. Both these people are listed
-
Data transfer to new MacBook Pro
My MBPro fried so I pulled the HD and popped it into a USB case. Got my new 15" MBPro today and plugged in the USB cable expecting to just transfer over the works using their step-step procedure (2nd choice below) as I always do between an old and ne
-
I have a Mac OSX 10.6.8
How do I connect my Mac OSX 10.6.8 to a wireless Brother printer?
-
Hi guys, I have a problem with an ENQUEN_EMPRELE (enqueue employee)... I make a BDC call, and after that a need to enqueue that employee because i need to make other actions in the employee... But a FM ENQUEUE_EMPRELE return that the employee is lock
-
Unable to view local HTML content from "Help Content Only" SSL iFrame
Hi Can anyone confirm whether it is possible to view local HTML files within an iFrame when generating Help Content Only SSL content which is also locally deployed? I have had no problem viewing local html files from within an iFrame with a locally v