Inline if and sequences
Hi everyone.
I'm having a strange behavior with inline "if"
var d:Number[];
java.lang.System.out.println(if ((sizeof d)==0) null else d );It was supose to print null, but it prints the sequence, if i put
java.lang.System.out.println(if ((sizeof d)==0) null else 10 );It prints null as it was supose to do!!
It looks like this is because of type inferencing.
java.lang.System.out.println(if ((sizeof d)==0) null else d );
Since 'null' does not imply a type, the type of d is used as the return type from the if, ie. sequence.
java.lang.System.out.println(if ((sizeof d)==0) "NULL" else d );
yields
["NULL"], maybe not what you'd expect! This is because the if returns a sequence, and "NULL" is coerced into a sequence with a single element.
From the language reference: "The type of such an ifExpression is the most specific type that has the type of the first expression as a subtype and also has the type of the second expression as a subtype."
The most specific type that has subtypes of null and Number[] is Number[], and you get an empty Number[] in your first example.
The most specific type that has subtypes of String[] and Number[] is Object[], and you get a Object[] with only "NULL" in my example.
Make sense?
Similar Messages
-
Sequence of tables in from clause and sequence of "where clause" conditions
Is Sequence of tables in "From Clause" and sequence of "where clause" conditions matters in 10g for performance?
Edited by: user6763079 on Jun 1, 2011 3:33 AMuser6763079 wrote:
Is Sequence of tables in "From Clause" and sequence of "where clause" conditions matters in 10g for performance?In general it does not matter.
It could matter if the Rule Based Optimizer (RBO) is used. However this RBO is only used if enforced by a hint or if no table statistics are collected. Starting from 10g the table statistics are automatically selected by a regular database job. So in general the CBO would be used.
The CBO will consider different access paths. If the number of tables is low enough, then all possible combinations are considered and the order does not make any difference.
Edited by: Sven W. on Jun 1, 2011 4:00 PM -
Error while using trigger and sequences
hi friends
i am leraning oracle now. i have confronted a difficulty while working with triggers and sequence . iF anybody knows this problem ,please help me
i created atable with the specifications given below
CREATE TABLE TESTSEQ
idno NUMERIC(10),
data1 VARCHAR2(50)
and i created a sequence named seqcol1
CREATE SEQUENCE seqcol1
MINVALUE 1
MAXVALUE 100
START WITH 1
INCREMENT BY 1
CACHE 20;
I created a trigger also named
CREATE OR REPLACE TRIGGER trigADD2
BEFORE
INSERT ON TESTSEQ
FOR EACH ROW
BEGIN
SELECT seqcol.NEXTVAL INTO idno;
END;
My plan is to add the idno automatically from sequence while inserting a value in data1 column
while doing insert operation ,
INSERT INTO TESTSEQ (data1) VALUES ('ram1')
some error is showing
the error is SCOTT.trigADD2 is invalid and failed re-validation
if anybody can help me please help me
thanks and regardsops$oskar@test9i$ create table t (n number, s varchar2(1));
Table created.
ops$oskar@test9i$ create sequence s;
Sequence created.
ops$oskar@test9i$ insert into t values (s.nextval,'X');
1 row created.
ops$oskar@test9i$ insert into t values (s.nextval,'Y');
1 row created.
ops$oskar@test9i$ insert into t values (s.nextval,'Z');
1 row created.
ops$oskar@test9i$ select * from t;
N S
1 X
2 Y
3 ZWhat do you need a trigger for? -
How To... Execute Planning Functions and Sequences from MS Office Ribbon
Dear all,
I am working with a SAP how to paper, which is called:
How To... Execute Planning Functions and Sequences from MS Office Ribbon.
It is working absolutely fine and I am pretty satisfied, but as you probably know "Control the visibility of a button based on the visibility of a related crosstab: the button just disappears once the related crosstab is not located on the active sheet."
This means, when I insert different queries in different crosstabs, only one crosstab will have my own created ribbon. Is it also possible to set another specific ribbon with other buttons for another crosstab? Can I change the macro, included in the appendix of the how to paper, regarding this issue?
Thanks in advance!
Kind regards
Dominik DrebingerHey Martin,
thanks for your reply, but I solved the problem on my own. Unfortunately my colleague did not see that the crosstabs had to be defined differently.
Like this:
Label
Screentip
Msolmage name
Crosstab name
Copy Initial Aligned
Copy Initial Aligned
CacheListData
SAPCrosstab1
Copy Initial Aligned
Copy Initial Aligned
CacheListData
SAPCrosstab3
Copy Initial Aligned
Copy Initial Aligned
CacheListData
SAPCrosstab5
The macro, provided by the HowTo, is therefore working perfectly fine.
Thanks though
Dominik -
Possible deadlock: transactions, cursors, and sequences...
Hello,
After making recent changes to our database in response to a previous issue (bug found and patched in BDB; local code fixed by removing both DB_TXN_SNAPSHOT and DB_MULTIVERSION) we've come across a possible deadlock.
BACKGROUND:
This database has been running for over a year in production and I've never seen a hard deadlock. We use the default deadlock detection engine internal to BDB, transactions, and our code supports the processing of deadlocks and subsequent retries and final abandonment when necessary. The transactions in question involve cursors and sequences; we're using cursors to flip through entries in an existing database, and should no match be found for an update, we insert a new record. Before doing so, we grab the "next ID" (primary key) from a sequence we have (attached, as all sequences are, to its own different DB, done on advice from online docs: "For this reason, it is often preferable for sequence objects to be stored in their own database.") and finally insert the new record.
This is a 64-bit Linux machine. There were 4 operational threads at the time; all were waiting on pthread conditions. As I understand it, deadlocks should have been internally detected and returning DB_LOCK_DEADLOCK to us somewhere? Since we're using the default lock detection engine and firing it constantly, we should not require an Nth thread to monitor the lock tables and manually reject deadlocked transactions, etc?
I wasn't sure what to do when the deadlock occured, but I found some forum posts referencing a db_stat -Co and ran it, along with grabbing a core dump which I still have available. I've reverted the DB binary to older DB_MULTIVERSION code as I work on figuring this out, but if there's something else crucial I should have done, I can run the new code again and wait for another deadlock to happen to run additional diagnostics.
Any ideas or assistance is appreciated. Thank you.
DEADLOCK INFORMATION:
THREAD 2: Attempting to 'get' an asset.
(gdb) bt
#0 0x00002aec07e27496 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1 0x00002aec078ddeed in __db_pthread_mutex_lock () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
#2 0x00002aec078dda8b in __db_tas_mutex_lock () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
#3 0x00002aec0795b8f1 in __lock_get_internal () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
#4 0x00002aec0795bc42 in __lock_get () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
#5 0x00002aec07987d94 in __db_lget () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
#6 0x00002aec07914625 in __ham_get_meta () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
#7 0x00002aec07908d4b in __hamc_get () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
#8 0x00002aec07979e8a in __dbc_get () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
#9 0x00002aec0797aa0d in __dbc_pget () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
#10 0x00002aec0798654b in __dbc_pget_pp () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
#11 0x00002aec078d4dd7 in Dbc::get () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
THREAD 5: Attempting to 'set' an asset.
(gdb) bt
#0 0x00002aec07e27496 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1 0x00002aec078ddeed in __db_pthread_mutex_lock () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
#2 0x00002aec078dda8b in __db_tas_mutex_lock () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
#3 0x00002aec079d0c45 in __seq_get () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
#4 0x00002aec078dd02e in DbSequence::get () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
THREAD 6: Attempting to 'set' an asset.
(gdb) bt
#0 0x00002aec07e27496 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1 0x00002aec078ddeed in __db_pthread_mutex_lock () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
#2 0x00002aec078dda8b in __db_tas_mutex_lock () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
#3 0x00002aec0795b8f1 in __lock_get_internal () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
#4 0x00002aec0795bc42 in __lock_get () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
#5 0x00002aec07987d94 in __db_lget () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
#6 0x00002aec079893ee in __db_new () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
#7 0x00002aec0798bb7e in __db_poff () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
#8 0x00002aec07918eb3 in __ham_add_el () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
#9 0x00002aec07907fe1 in __hamc_put () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
#10 0x00002aec0797b6e5 in __dbc_put () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
#11 0x00002aec0796ecde in __db_put () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
#12 0x00002aec07985e6c in __db_put_pp () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
#13 0x00002aec078d395c in Db::put () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
THREAD 7: Attempting to 'set' an asset.
(gdb) bt
#0 0x00002aec07e27496 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1 0x00002aec078ddeed in __db_pthread_mutex_lock () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
#2 0x00002aec078dda8b in __db_tas_mutex_lock () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
#3 0x00002aec0795b8f1 in __lock_get_internal () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
#4 0x00002aec0795bc42 in __lock_get () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
#5 0x00002aec07987d94 in __db_lget () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
#6 0x00002aec07915b6a in __ham_lock_bucket () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
#7 0x00002aec07915dc7 in __ham_get_cpage () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
#8 0x00002aec079075f9 in __ham_lookup () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
#9 0x00002aec07908f9f in __hamc_get () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
#10 0x00002aec07979e8a in __dbc_get () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
#11 0x00002aec07984045 in __db_get () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
#12 0x00002aec079d0374 in __seq_update () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
#13 0x00002aec079d0c29 in __seq_get () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
#14 0x00002aec078dd02e in DbSequence::get () from /usr/local/BerkeleyDB.4.7/lib/libdb_cxx-4.7.so
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Lock REGINFO information:
Lock Region type
5 Region ID
env/__db.005 Region name
0x2b8dbff65000 Original region address
0x2b8dbff65000 Region address
0x2b8dbff65138 Region primary address
0 Region maximum allocation
0 Region allocated
Region allocations: 225009 allocations, 0 failures, 0 frees, 1 longest
REGION_JOIN_OK Region flags
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Locks grouped by object:
Locker Mode Count Status ----------------- Object ---------------
808cfad0 READ 1 HELD db1 page 0
808cfad3 READ 2 HELD db1 page 0
808cfad5 READ 1 HELD db1 page 0
33 READ 1 HELD db1 handle 0
22 READ 1 HELD db2 handle 0
18 READ 1 HELD db3 handle 0
808cfad5 READ 1 HELD db1 page 3906
808cfad3 READ 1 HELD db1 page 6300
808cfad3 WRITE 1 HELD db1 page 6300
808cfad0 READ 1 HELD db1 page 8272
808cfabe WRITE 2 HELD db4 page 82387
808cfad3 WRITE 1 HELD db4 page 42879
808cfad3 WRITE 1 HELD db4 page 42878
808cfad3 WRITE 1 HELD db4 page 42877
808cfad3 WRITE 1 HELD db4 page 42874
808cfad3 WRITE 1 HELD db4 page 42873
808cfad3 WRITE 1 HELD db4 page 42872
808cfad3 WRITE 1 HELD db4 page 42901
808cfad3 WRITE 1 HELD db4 page 42897
808cfad3 WRITE 1 HELD db4 page 42882
808cfad3 WRITE 1 HELD db4 page 42881
808cfad3 WRITE 1 HELD db4 page 42880
808cfad3 WRITE 1 HELD db4 page 42894
808cfad3 WRITE 1 HELD db4 page 43797
1a READ 1 HELD db3sequence handle 0
1c READ 1 HELD db5 handle 0
20 READ 1 HELD db6 handle 0
24 READ 1 HELD db7 handle 0
808cfad3 READ 13 HELD db4 page 0
808cfabe READ 2 HELD db4 page 0
808cfabe WRITE 1 WAIT db4 page 0
808cfad5 READ 1 WAIT db4 page 0
26 READ 1 HELD db4 handle 0
808cfabe READ 2 HELD db4sequence page 0
808cfad0 READ 1 HELD db4sequence page 0
28 READ 1 HELD db4sequence handle 0
808cfabe READ 3 HELD db8 page 0
2a READ 1 HELD db8 handle 0
808cfabe READ 4 HELD db9 page 0
808cfad0 READ 1 HELD db9 page 0
808cfad3 READ 14 HELD db9 page 0
808cfad5 READ 1 HELD db9 page 0
808cfabe READ 1 HELD db4sequence page 2
808cfabe WRITE 1 HELD db4sequence page 2
808cfad0 READ 1 WAIT db4sequence page 2
2e READ 1 HELD db9 handle 0
808cfabe WRITE 2 HELD db9 page 1
808cfad3 READ 2 HELD db1sequence page 0
35 READ 1 HELD db1sequence handle 0
808cfad3 READ 1 HELD db1sequence page 2
808cfad3 WRITE 1 HELD db1sequence page 2
808cfad5 READ 1 HELD db9 page 2833
808cfad0 WRITE 1 HELD db9 page 7946
808cfad3 WRITE 14 HELD db9 page 8250
808cfabe WRITE 3 HELD db8 page 13301What else could be causing this in terms of the application having a resource locked? I can say that there are no other running threads doing anything related to BDB at all - they are all in similar "no work, sleep until we get some" calls, with the exception being the main thread which is sitting in sigwait(). What types of things could the application be doing that would prevent all 4 BDB threads from being able to obtain mutexes that are internal to them and not accessible to the application?
Other thoughts:
* On a fifth thread, from time to time, txn_checkpoint() is called. Could this have been left in an unclean state?
* If DB_RMW is used incorrectly, could lock order be compromised? We are not using CDS, so do we need to specify DB_WRITECURSOR to our db->cursor() calls? We do not; we only provide DB_RMW to pget() calls at present.
* Why is the thread attempting to call sequence->get also deadlocked? The sequence is in its own database - is it waiting on a more global "locker manager" mutex at a high level?
As I don't see how anything we do can directly control BDB's locking strategies, my only thought is that we're making a programming error to force BDB to lock things in an incorrect order in a way that prevents deadlock detection from occuring. Is this possible? Mainly the only thing changing here was our replacing DB_TXN_SNAPSHOT with the appropriate DB_RMW flags when needed, which is why I'm thinking we did something wrong here, but I'm not sure what.
I'll continue investigation, but any ideas you have in terms of appropriate directions would be helpful. I'll also work on reproducing this if I can by working backwards from the stack information. Thanks.
Later thought: Why is 808cfad3 not waiting on anything even though stack clearly shows it (thread 5, I'm guessing) in pthread_cond_wait? Can a transaction enter a wait state without showing up in db_stat output?
Thanks!
Edited by: user10542315 on Sep 11, 2009 1:21 PM
Edited by: user10542315 on Sep 11, 2009 2:52 PM -
Odi 11g functions and sequence
hello
what is the use of fucntions and sequence.
How do i create them in odi11g .
where in odi 11g is expression editor window available??User Function Editor
Use to define your customized functions.
User functions enable to define customized functions that can be used in interfaces or procedures. These functions are implemented in one or more technologies. They are usable in the interfaces and procedures.
A function can be created as a global function or in a project. In the first case, it is common to all projects, and in the second, it is attached to the project in which it is defined.
goto
Home > Designer Navigator Editors > Package Editor > User Function Editor
Sequence Editor
Use to define sequences.
A sequence is a variable that increments itself each time it is used. Between two uses, the value can be stored in the repository or managed within an external RDBMS table.
Oracle Data Integrator supports three types of sequences:
Standard sequences: the last value is stored in the repository.
Specific sequences: the last value is stored in an RDBMS table cell. Oracle Data Integrator undertakes to read the value, to lock the row (for concurrent updates) and to update the row after the last increment.
Native sequences: this type of sequence to a sequence defined in and managed by a database engine.
goto
Home > Designer Navigator Editors > Package Editor > Sequence Editor
There is no expression editor component directly in any tree of the odi components.
You can find expression editor where you can write expressions.
For example writing filter expressions in a mapping, writing procedure commands etc
for more details please visit www.odiguru.com
Thanks Guru
Ram Kumar Lanke
www.odiguru.com -
How to save inline images and attachments separatley?
Hi,
I want to save all inline images into a certain directory and all attachments into another directory.
I use the following code to do this:
Multipart multipart = (Multipart) message.getContent();
for (int x = 0; x < multipart.getCount(); x++) {
BodyPart bodyPart = multipart.getBodyPart(x);
String disposition = bodyPart.getDisposition();
if(disposition != null){
log.debug("Disposition: " + disposition);
if (disposition.equals(BodyPart.ATTACHMENT)) {
log.debug("Mail has attachment: ");
DataHandler handler = bodyPart.getDataHandler();
log.debug("FILENAME: " + handler.getName());
saveAttachment(session, bodyPart, emailData);
else if(disposition.equals(BodyPart.INLINE)){
log.debug("Mail has inline attachment: ");
DataHandler handler = bodyPart.getDataHandler();
log.debug("Inline FILENAME: " + handler.getName());
saveInlineAttachment(session, bodyPart, emailData);
else {
log.debug(bodyPart.getContent());
}This approach works when the email has inline images only or attachments only.
It does not work when the email has both inline images and attachments. (Only the attachments are saved).
Come someone please help me correct my solution so that it can process an email that has both inline images and attachments and save them in different directories.
Thank youThanks bshannon.
It took me a while to understand what you meant but I think I finally got it.
I modified the getText method in order to save the embedded images:
private Image getImages(Part p, EmailData emailData, String ext) throws MessagingException, IOException {
if (p.isMimeType("image/*")) {
InputStream is = p.getInputStream();
BufferedImage im = ImageIO.read(is);
String fileName = "attachments/inline/body " + inlineImageNumber++ + "." + ext;
File imageFile = new File(fileName);
ImageIO.write(im,ext,imageFile);
is.close();
emailData.getInlineAttachments().add(fileName);
return null;
if (p.isMimeType("multipart/related")) {
Multipart mp = (Multipart)p.getContent();
Image image = null;
for (int i = 0; i < mp.getCount(); i++) {
Part bp = mp.getBodyPart(i);
if (bp.isMimeType("image/jpeg")) {
if (image == null){
image = getImages(bp, emailData, "jpg");
continue;
else if (bp.isMimeType("image/gif")) {
if (image == null){
image = getImages(bp, emailData, "gif");
continue;
else if (bp.isMimeType("image/bmp")) {
if (image == null){
image = getImages(bp, emailData, "bmp");
continue;
else if (bp.isMimeType("image/png")) {
if (image == null){
image = getImages(bp, emailData, "png");
continue;
return image;
else if (p.isMimeType("multipart/*")) {
Multipart mp = (Multipart)p.getContent();
for (int i = 0; i < mp.getCount(); i++) {
Image image = getImages(mp.getBodyPart(i), emailData, "");
if (image != null){
return image;
return null;
} -
Getting sequence filename and sequence name in process model error handler
We are using the sequential process model and would like to log sequence step error information to a file. We have an Error Handler callback in SequentialModel.seq and that is where we will write to the error file. In the Error Handler callback, I can get the error container info for the step where the error occurs and the name of the that step thru the Error Handler Step parameter. I would also like to record the sequence file and the sequence where the error occurred, but I have not been able to find those in the sequence context. I know they are available because the TestStand RunTime Error dialog box displays them. How can I access the name of the sequence file and the name of the sequence where the error occurred?
Thanks,
HansHey hans,
Use the API. Since you already have the Step object reference coming in as a parameter you can just use a few ActiveX steps to get the Sequence File and Sequence from which the error was thrown.
Step.Sequence
Sequence.Name (gets the name of the sequence)
Sequence.SequenceFile
SequenceFile.Path (gets the path of the sequence file)
So basically just 4 activex steps. I hope this helps.
Regards,
jigg
CTA, CLA
teststandhelp.com
~Will work for kudos and/or BBQ~ -
Moving procedures and sequences from one schema to another
Hi all,
Is there any way to export the procedures and sequences alone from one schema to another? If not is there any way to generate the procedure creating scripts from the source schema.
I used the following script SET HEADING OFF
SET PAGESIZE 999
SET LINESIZE 100
SELECT DBMS_METADATA.GET_DDL('PROCEDURE', NAME, owner) || '/' FROM ALL_SOURCE WHERE
OWNER='SCOTT' AND TYPE='PROCEDURE'
SPOOL C:\A.SQL
SPOOL OFF
[/CODE]
But the problem is in the out put script it is cutting the line .. for egCREATE OR REPLACE PROCEDURE "QC_PFIZER_REL5"."SPGETNEXTDS
S_ID"
( V_ID OUT NUMBER )
IS
BEGIN
SELECT SEQUENCE_DSS_Id.NEXTVAL INTO V_ID FROM DUAL;
END ;
i experimented with increasing linesize but it is not helping. I am using 9.2.0.5 on windows 2003.
Thanks
MuneerSimilar to getting the code from user_source, you could get sequences from user_sequences.
SQL> select dbms_metadata.get_ddl('SEQUENCE', sequence_name) from user_sequences ;
DBMS_METADATA.GET_DDL('SEQUENCE',SEQUENCE_NAME)
CREATE SEQUENCE "SCOTT"."SEQ" MINVALUE 1 MAXVALUE 1.00000000000000E+27 INCR
EMENT BY 1 START WITH 1 CACHE 20 NOORDER NOCYCLE
1 row selected.
SQL> -
Needless inline styles and span tags
OS: Win XP SP 2
Product: RoboHelp HTML 6
Output: WebHelp
I am finding some instances of needless inline styles and
span tags in some topics in a project. Around these problematic
instances are plenty of instances that have no problem. I used
non-problematic instances as guides for correcting the problematic
instances. Fortunately, RH hasn't overwritten any of my
corrections.
I am concerned about the insertion of needless inline styles
and span tags at two levels. First, I see them as indicators of
inconsistency. Whether the inconsistency is in myself or in RH, I
don't know (but I want to eliminate it). Second, needless code is
wasteful (esp., wastes time in code view).
Has anybody seen this before? Does anyone know or suspect a
cause?
SAMPLE 1
RH6 created: <p><span><span
style="font-weight: normal;">blah blah yaddi
yaddi</span></span></p>
I corrected: <p>blah blah yaddi yaddi</p>
SAMPLE 2
RH6 created: <p style="font-weight: normal;"><span
style="font-weight: normal;">blah blah yaddi
yaddi</span></p>
I corrected: <p>blah blah yaddi yaddi</p>
SAMPLE 3
RH6 created: <p style="font-weight: bold;"><span
style="font-weight: bold;">blah blah yaddi
yaddi</span></p>
I corrected: <p style="font-weight: bold;"><>blah
blah yaddi yaddi</p>Some of this has to do with how users have applied styles in
WYSIWYG mode; for example, if you double click a word (which
selects the space after) and apply Bold, then later select the word
by dragging the cursor to select only the word (which doesn't
select the space after), RH will usually surround the selected
characters with "normal" span tags and often leave the bold in
place.
This same type of style formatting might have been repeatedly
done in the original form that might have been imported (Word,
Frame, etc.). So, then, if you compound the code bloat from an
imported file with additional formatting in RH, well you do the
math.
I've seen code wherein a six-word sentence might be saddled
with as many as 10-12 SPAN tags and might stretch into 6-7 lines of
code!
However, these are still flat files, not binary; you'd need a
ton of extra code to increase the aggregate file size a lot. Heck,
your graphics will usually take more room than your topics. One of
our child projects has 153 .htm files at 3.25 MB, whereas the
aggregate of .gif, .jpg, and .bmp graphics exceed 4 MB. My view has
always been this: until the underlying code affects the format I
expect to see in my output, I consider extra SPAN and KADOV tags to
be nothing but white noise.
Good luck,
Leon -
I have a prolem with roles and sequences.
I have a USER_ROLE and an ADMIN_ROLE.
USER_ROLE is granted SELECT on a number of tables and sequences.
ADMIN_ROLE is granted USER_ROLE to access those tables and
sequences plus some additional ones.
The problem is a user granted ADMIN_ROLE can see the tables
granted via USER_ROLE but not the sequences.
Comments anybody?Solved the problem, I had granted the user rather than the role.
Unfortunately the names were very similar so I didn't spot it. -
There are stepper motor vi and sequence vi at the attach file. I want to control stepper motor via sequence vi. When I run the stepper motor vi, it can not be reached part of enter position. How can I integrate sequence vi into the stepper motor vi.
Attachments:
Stepper motor.vi 24 KB
Return Code Insertion.vi 14 KBSequence vi.
Attachments:
Sequence.vi 10 KB -
Print Views And Sequences As Reports?
Hi,
We are trying to convert our Data Modeling tool from Oracle Designer to SQL Developer Data Modeler. We send out 4 data model reports with each release of our software: Table Definition, Sequence Implementation, View/Materialized View Definition and a pdf of the Data Model Diagrams. I have been able to print reports for the Table Definition and Data Model Diagrams but cannot find a way to print out the Sequences and Views in the schema.
Is there a way to print off a report that is formatted like the Table Definition report in SQL Developer Data Modeler but for Views and Sequences?
Thanks for your help.
--JustinHi Justin,
There is no built-in reports for Views & Sequences. But you can use reporting repository to create custom reports.
If you export your models to DB you'll see that Views data is in table called DMRS_TABLEVIEWS. Sequences are not exported not reporting repository at this stage. There is table called DMRS_COLUMNS which has field Auto_Increment_Sequence_Name, but that's it.
Hope this will help you. -
Private inlined VIs and packed project libraries
So, I'm trying to build a packed project library and it has a few *private* VIs that are crying out to be inlined (simple VIs used in a for loop etc). However, this seems to be causing a few issues:
1. When I attempt to build the lvlibp I get an error stating "You cannot include inlined VIs inthis build if you remove the block diagram from the VI or if callers adapt to VIs in the packed library.". Whilst this makes sense to me for public packed library VIs, why does this matter for private ones - surely the VI will already get flattend out into the calling VI during the build process?
2. If I try and set the Source File Settings for the inline VI to not remove the block diagram (as suggested by the error), the error still does not go away (I would really like to keep the ability for callers to adapt to VIs in the packed library).
Here's a stripped out project (with instructions) showing the issue.
It seems like a bug to me, but any ideas?
Thanks,
Shaun
Attachments:
Inline VIs and Packed Libraries.zip 19 KBI was just going through the instructions to reproduce the error. Because the error says "You cannot include inlined VIs in this build if you remove the block diagram from the VI OR if callers adapt to VIs in the packed library," it seems like as long as you maintain your settings for the caller to be able to adapt the VI, then I would expect this error to continue to occur.
-
The program and sequence monitors are zoomed
How do I get the program and sequence monitirs back to normal. The video on both are zoomed in.
I had another problem and now it is fixed....Thanks
Maybe you are looking for
-
Problem in loading a Properties File
Following is my program which is actually reading a Properties file from a specific location and saving it latter. The program is able to save the Properties file but gives NullPointerException while reading it back. import java.io.File; import java.
-
Hi, While trying to send applicant letters through transaction PBAT i get the error message: Indirect valuation: No record for infotype 0001 on 20100120 Message no. RP033 This transaction works fine in the development client but I get this error in t
-
Invoice document payment term inconsistency
I use MIR4 to display invoice, the payment terms is 122 days net, my base line date is 10.23 but i go to accounting document, it shows payment terms is five days due after baseline date why payment terms are different, how 122 days calulated?
-
Macbook air hinge repair question please respond!!!!
Hey everyone, I have a question that hopefully someone can answer I've never sent anything into apple repair so don't know if they're a pain. Anyway in 2008 I bought a macbook air off of a guy I knew, he informed me there was a flaw which was the bot
-
Expenditure / Overhead planning for Cost Centre
Hi. Pl provide any document on planning of expenditure / overheads for cost centre for preparing my BBP with full information to the extent possible. Regards. Srini