Pseudo
Hi,
I have the following query:
SELECT
e.emp_id emp_no,
e.emp_name emp_name,
eop.ep_hourly_rate hr_rate,
ou.ou_name org_unit,
count(eoa.ea_emp_id) no_activities,
sum(eoa.ea_planned_hours) planned_hours,
sum(eoa.ea_planned_hours) * eop.ep_hourly_rate cost
FROM
org_unit ou, employee e, employee_on_project eop, employee_on_activity eoa ....
To improve the performance of this query I want to create a table that already contains the Pseudo columns no_activities, planned hours and cost.
Is it possible to create a table that will calculate these values automatically ?
Or should I simply run a create table query that put these values into a table everytime that it is run .
Any advice will be appreciated
Thanks
ARE YOU TIRED OF TYPING CAUSE I AM. WHY NOT JUST CREATE A VIEW.
THATS ALL YOU HAVE TO DO IS CREATE A VIEW. PEACE.
CREATE VIEW viewName AS
SELECT
e.emp_id emp_no,
e.emp_name emp_name,
eop.ep_hourly_rate hr_rate,
ou.ou_name org_unit,
count(eoa.ea_emp_id) no_activities,
sum(eoa.ea_planned_hours) planned_hours,
sum(eoa.ea_planned_hours) * eop.ep_hourly_rate cost
FROM
org_unit ou, employee e, employee_on_project eop, employee_on_activity eoa.....
Hi,
I have the following query:
SELECT
e.emp_id emp_no,
e.emp_name emp_name,
eop.ep_hourly_rate hr_rate,
ou.ou_name org_unit,
count(eoa.ea_emp_id) no_activities,
sum(eoa.ea_planned_hours) planned_hours,
sum(eoa.ea_planned_hours) * eop.ep_hourly_rate cost
FROM
org_unit ou, employee e, employee_on_project eop, employee_on_activity eoa ....
To improve the performance of this query I want to create a table that already contains the Pseudo columns no_activities, planned hours and cost.
Is it possible to create a table that will calculate these values automatically ?
Or should I simply run a create table query that put these values into a table everytime that it is run .
Any advice will be appreciated
Thanks
Similar Messages
-
What algorithm does Excel 2010 use for Pseudo Random Number Generation (MT19937?)
Does Excel 2010+ use the Mersenne Twister (MT19937) algorithm for Pseudo Random Number Generation (PRNG), implemented by the RAND() function?
This has been a nagging question for some time now, with "hints" that it indeed does. However, a relatively thorough search turns up no definitive documentation. The most direct indication is perhaps given by Guy Melard [Ref 9] where
he tests Excel 2010's RAND() function using the Crush battery of tests in TestU01 by L'Ecuyer & Simard. Melard references a "semi-official" indication that Microsoft did indeed implement MT19937 for the RAND() function in
Excel 2010, but this reference no longer seems to be available. http://office.microsoft.com/enus/excel-help/about-solver-HP005198368.aspx?pid=CH010004571033.
The other references below [Ref 1-10] document the history of the statistical suitability of the PRNG and probability distributions in various versions of Excel. This includes the Wichmann-Hill PRNG implementations supposedly (arguably) used in
Excel 2003 & 2007 for random number generation. But still, we have no answer as to which PRNG algorithm is used in
Excel 2010 (and 2013 for that matter).
Microsoft indicates that RAND() has been improved in Excel 2010; Microsoft states, "...and the RAND function now uses a new random number algorithm." (see https://support.office.com/en-ca/article/Whats-New-Changes-made-to-Excel-functions-355d08c8-8358-4ecb-b6eb-e2e443e98aac).
But no details are given on the actual algorithm. This is critical for Monte Carlo methods and many other applications.
Any help would be much appreciated. Thanks.
[Ref 1] B. McCullough, B. Wilson. On the Accuracy of Statistical Procedures in Microsoft Excel 97.
Computational Statistics & Data Analysis. Vol. 31 No. 1, pp 27-37. July 1999.
http://users.df.uba.ar/cobelli/LaboratoriosBasicos/excel97.pdf
[Ref 2]L. Knüsel. On the accuracy of the statistical distributions in Microsoft Excel 97. Computational Statistics & Data Analysis. Vol. 26 No. 3, pp 375-377. January 1998.
http://www.sciencedirect.com/science/article/pii/S0167947397817562
[Ref 3]B. McCullough, B. Wilson. On the Accuracy of Statistical Procedures in Microsoft Excel 2000 and Excel XP.
Computational Statistics & Data Analysis. Vol.40 No. 4, pp 713-721. October 2002.
https://www.researchgate.net/publication/222672996_On_the_accuracy_of_statistical_procedures_in_Microsoft_Excel_2000_and_Excel_XP/links/00b4951c314aac4702000000.pdf
[Ref 4] B. McCullough, B. Wilson. On the Accuracy of Statistical Procedures in Microsoft Excel 2003.
Computational Statistics & Data Analysis. Vol.49. No. 4, pp 1244-1252. June 2005.
http://www.pucrs.br/famat/viali/tic_literatura/artigos/planilhas/msexcel.pdf
[Ref 5] L. Knüsel. On the accuracy of statistical distributions in Microsoft Excel 2003. Computational Statistics & Data Analysis, Vol. 48, No. 3, pp 445-449. March 2005.
http://www.sciencedirect.com/science/article/pii/S0167947304000337
[Ref 6]B. McCullough, D.Heiser. On the Accuracy of Statistical Procedures in Microsoft Excel 2007.
Computational Statistics & Data Analysis. Vol.52. No. 10, pp 4570-4578. June 2008.
http://users.df.uba.ar/mricci/F1ByG2013/excel2007.pdf
[Ref 7] A. Yalta. The Accuracy of Statistical Distributions in Microsoft<sup>®</sup> Excel 2007. Computational Statistics & Data Anlaysis. Vol. 52 No. 10, pp 4579 – 4586. June 2008.
http://www.sciencedirect.com/science/article/pii/S0167947308001618
[Ref 8] B. McCullough. Microsoft Excel’s ‘Not The Wichmann-Hill’ Random Number Generators. Computational Statistics and Data Analysis. Vol.52. No. 10, pp 4587-4593. June 2008.
http://www.sciencedirect.com/science/article/pii/S016794730800162X
[Ref 9] G. Melard. On the Accuracy of Statistical Procedures in Microsoft Excel 2010. Computational Statistics. Vol.29 No. 5, pp 1095-1128. October 2014.
http://homepages.ulb.ac.be/~gmelard/rech/gmelard_csda23.pdf
[Ref 10] L. Knüsel. On the Accuracy of Statistical Distributions in Microsoft Excel 2010. Department of Statistics - University of Munich, Germany.
http://www.csdassn.org/software_reports/excel2011.pdfI found the same KB article:
https://support.microsoft.com/en-us/kb/828795
This was introduced (according to the article) in Excel 2003. Perhaps the references in notes 2 and 3 might help.
The article describes combining the results of 3 generators, each similar to a Multiply With Carry (MWC) generator, but with zero carry. MWC generators do very well on the Diehard battery of randomness tests (mentioned in your references), and have
very long periods. But using zero carry makes no sense to me.
Combining the three generators only helps if the periods of the 3 are relatively prime (despite what the article implies). Then the period of the result will be the product of the 3 periods. But without knowing the theory behind these generators, I have
no idea what the periods would be. The formulas for MWC generators fail here.
Richard Mueller - MVP Directory Services -
Assign a default value to a pseudo column
I'd like to assign a default value of 0 to the pseudo column ORA_ROWSCN to get round a problem implementing OCC using Hibernate.
Does anyone know if this is possible?
Thanks.ORA_ROWSCN column is used for keep the latest SCN. This would not be possible.
Cheers -
VF04 - third party - pseudo goods receipt
Hello,
we do third party invoicing based on pseudo goods receipt.
This is because we sometimes charge the customer in warranty cases even if the purchase is for free.
(if we get the broken part back, we will raise a credit note afterwards)
As soon as we do MIGO, we are able to invoice the GR qty with VF01.
But we want to release the invoices via VF04 which doesn't work unless the IR is posted.
I've checked lots of SAP notes (like 84229) but wasn't able to find a solution.
The billing-relevance for the item category is 'F' and the billing qty. in copy control is 'E'.
(Changing billing relevance to 'B' should be the last option, as order appears in VF04 as soon as created and I'm
not quite sure whether the VPRS valuation problem occures again)
Does someone has an idea?
Thanks
WolfHi,
In the item category VOV7
when F= Order related Billing status according to Invoice qty, hence system allows VF01 only after MIRO is completed. That is the standard behaviour.
I heve never tried this , but please check by changing to "G = Order related Billing status according to Delivery qty"
Hope this helps.
Regards,
Sharan -
To build dynamic SQL Query using some conditions: Pseudo code required
Hi,
I have a requirement where in i have to build a dynamic query based on one count.
Some details on requirement:
1) It's a Proc where i need to return some columns
2) There are some fix set of columns
3) Based on one Count column, i have to decide the rest of the columns.
Consider there is an employee who can work on 'N' number of assignments.
For a particular employee i have to return all the predefined details of assignments like:
1) Assignment Name
2) Assignmanet Id
3) Assignemnt Start Date
4) Assignment End Date
This 'N' can vary from employee to employee. Based on which i have to return my result set. For instance if employee has 3 assignemnts, i have to return Fix columns( employee info) + (3*4) columns. Similarly if the employee has 4 assignments, i will be returning Fix columns + (4*4) columns.
Certainly, the Employee ID is coming as an I/P parameter.
The source table is a vertical table having all details of the employee assignments.
Can anyone help me in coding this proc with the help of some pseudo code?Do you mean you need something like this to be executed dynamically for some known n := max(count(assignment_id))
NOT TESTED !
select e.dept_id,e.emp_id,e.epm_name,
substr(x1,1,instr(x1,';',1,1) - 1) assignment_name_1,
to_number(substr(x1,instr(x1,';',1,1) + 1,instr(x1,';',1,2) - instr(x1,';',1,1) - 1))) assignment_id_1,
to_date(substr(x1,instr(x1,';',1,1) + 1,instr(x1,';',1,3) - instr(x1,';',1,2) - 1)),'yyyymmdd') assignment_start_date_1,
to_date(substr(x1,instr(x1,';',1,1) + 1,instr(x1,';',1,3) + 1)),'yyyymmdd') assignment_end_date_1,
substr(x2,1,instr(x2,';',1,1) - 1) assignment_name_2,
to_number(substr(x2,instr(x2,';',1,1) + 1,instr(x2,';',1,2) - instr(x2,';',1,1) - 1))) assignment_id_2,
to_date(substr(x2,instr(x2,';',1,1) + 1,instr(x2,';',1,3) - instr(x2,';',1,2) - 1)),'yyyymmdd') assignment_start_date_2,
to_date(substr(x2,instr(x2,';',1,1) + 1,instr(x2,';',1,3) + 1)),'yyyymmdd') assignment_end_date_2,
substr(xn,1,instr(xn,';',1,1) - 1) assignment_name_n,
to_number(substr(xn,instr(xn,';',1,1) + 1,instr(xn,';',1,2) - instr(xn,';',1,1) - 1))) assignment_id_n,
to_date(substr(xn,instr(xn,';',1,1) + 1,instr(xn,';',1,3) - instr(xn,';',1,2) - 1)),'yyyymmdd') assignment_start_date_n,
to_date(substr(xn,instr(xn,';',1,1) + 1,instr(xn,';',1,3) + 1)),'yyyymmdd') assignment_end_date_n
from (select e.dept_id,e.emp_id,e.epm_name,
max(decode(rnk,1,x)) x1,
max(decode(rnk,1,x)) x2,
max(decode(rnk,1,x)) xn
from (select e.dept_id,e.emp_id,e.epm_name,
a.assignment_name||';'||to_char(a.assignment_id)||';'||
to_char(a.assignment_start_date,'yyyymmdd')||';'||to_char(a.assignment_end_date,'yyyymmdd') x,
dense_rank() over (partition by e.dept_id,e.emp_id,e.epm_name order by a.assignment_id) rnk
from employees e,assignments a
where e.emp_id = a.emp_id
group by e.dept_id,e.emp_id,e.epm_name
)Regards
Etbin -
Pseudo code for DOM parsing a local XMl file
HI all,
1) Can any body please provide me the JAVA pseudo code for parsing xml document from local mcahine and create another xml document in another location in loca machine with small transofrmations ? (JAVA mapping using DOM parsing tehnique using an xml file in loca machine using NWDS).
2) Provide me with the links that can help me out to work with
JAVA mapping using DOM
Thanks,
Ram.Hi,
Have a Search in SDN with Keywords JAVA Mapping, & will get lot of stuff
Implermenting JAVA Mapping in PI
Implementing a Java Mapping in SAP PI
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10dd67dd-a42b-2a10-2785-91c40ee56c0b
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/400ee77e-f9d6-2a10-2b8c-99281a4dcf6b
Regards
Seshagiri -
I'm sending this e-mail because I have had a
problem with SUNOS and I am not able to solve it.
Neither are my collegues.
I wrote a program that uses pseudo terminals
to execute and send data to a second program.
The parent program opens the master side, fork
and start sending data to the child and reading
from it too.
The child
opens its side, receive data and eventualy send
the results back to the parent.
Finished the child, the parent closes the master.
The program is based on that implementation
presented by Stevens in his book "Advanced Prog.
in the Unix Environment".
It works fine the first time. But if this process
is repeated several times the data sent to the
child is not received. As a consequence, the
program never ends because it keeps waiting for
the data.
I have attached to this e-mail 2 programs. The
first is identifier.c, a very simple program that
reads a string from the stdio and simply says
whether or it is a valid identifier.
The second is playinput.c . It is a very simple
version of my program. It launchs identifier
and send the string "abcd\n\r" to it. Then reads
the result and shows it on the stdout.
This is repeated 1000 times. In older versions
of the SUNOS (5.5.1) it works many times (400
or even 900 times) and then get stuck due to the
problem I described above. In SUNOS 5.7 the
thing is even worst. It work a couple of times
(around 5 times) and then get stuck.
I beleive this is a bug because I understand that
there is no nondeterministic factors that should
make the program work for a while and then stop
working.
Marcio Delamaro, Dr.
/* *********** Identifier.c *********************/
#include <stdio.h>
main ()
char achar;
int length, valid_id;
length = 0;
valid_id = 1;
printf ("Input a Possible Silly-Pascal identifier\n");
printf ("followed by a return: ");
achar = fgetc (stdin);
valid_id = valid_s(achar);
if (valid_id)
length = 1;
achar = fgetc (stdin);
while (achar != '\n') {
if (!(valid_f(achar)))
valid_id = 0;
length++;
achar = fgetc (stdin);
if (valid_id && (length >= 1) && (length <= 6) )
printf ("Valid\n");
else printf ("Invalid\n");
int valid_s(char ch)
if (((ch >= 'A') && (ch <= 'Z')) || ((ch >= 'a') && (ch <= 'z')))
return (1);
else return (0);
int valid_f(char ch)
if (((ch >= 'A') && (ch <= 'Z')) || ((ch >= 'a') && (ch <= 'z')) || ((ch >= '0') && (ch <= '9')))
return (1);
else return (0);
/************** playinput.c *********************/
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/times.h>
#include <fcntl.h>
#include <signal.h>
#include <termios.h>
#include <sys/ioctl.h>
#include <sys/resource.h>
#include <unistd.h>
#include <poll.h>
#include <stropts.h>
#include <sys/filio.h>
#include <stdio.h>
#include <errno.h>
extern char slave_name[20];
char buff[1024];
pid_t
pty_fork(int *ptrfdm)
int fdm, fds, k;
pid_t pid;
char pts_name[20];
if ( (fdm = ptym_open(pts_name)) < 0)
msg("can't open master pty");
exit(-1);
if ( (pid = fork()) < 0)
msg("Can not fork");
exit(-1);
else if (pid == 0) { /* child */
if (setsid() < 0)
msg("setsid error");
exit(1);
/* SVR4 acquires controlling terminal on open() */
if ( (fds = ptys_open(fdm, pts_name)) < 0)
printfsarah31: Thanks for the tip, unfortunately it didn't work. Now I get a "bad line X in fstab" at startup, where X is the line I added. But that line, as I understand it, mounts devfs, but devfs has always mounted (my /dev-folder is not empty, and I do get sound even when logging in as normal user).
The exact error message given by Konsole is: "Unable to open a suitable terminal device".
Here's what I've tried so far:
Added something like this in my /etc/devfsd.conf:
REGISTER ^pts/.* PERMISSIONS root.users=rwxrwxrwx
REGISTER ^pts/.* PERMISSIONS root.users=0660
REGISTER * PERMISSIONS root.users=rwxrwxrwx
Added this in fstab:
none /dev/pts devfs defaults 0 0
Any advice would be greatly appreciated (please try to keep it relatively explicit though
Erik -
How to generate pseudo random noise(PRN) binary sequence using shift registers?
what is the block diagram to generate pseudo random noise (PRN) binary sequence of 1's and 0's using shift registers
please help
i need 2 submit this project in this weekThis is a fairly simple homework problem. My hints (on the LabVIEW side):
1- look at while loops
2- look at shift registers on while loops with multiple input elements
3-look at the logic components, AND, OR XOR
Look at this wiki article: http://en.wikipedia.org/wiki/Linear_feedback_shift_register
Do the work, you won't learn if someone shows you how it is done! The palette that the previous post points to are of PRN and other "noise generators" but I suspect that is not what you are after.
Know that creating a PRN with a reasonable number of shift register taps produces very pseudo results, as the "random" pattern begins to repeat pretty quickly, thereby making it not a truly random number.
When you have an attempt that is sort of working and want additional suggestions, post the code here. We won't do your work, we will help you try to do it, and learn it, yourself.
Putnam
Certified LabVIEW Developer
Senior Test Engineer
Currently using LV 6.1-LabVIEW 2012, RT8.5
LabVIEW Champion -
What is the meaning of "PSEUDO" and "NONE" in v$session table.
Hi
What is the meaning of "PSEUDO" and "NONE" in v$session table.
V$SESSION:
SERVER VARCHAR2(9) Server type (DEDICATED| SHARED| PSEUDO| NONE)
thanks
sivaPSEUDO is the server column's value of killed sessions, until they are cleaned up by PMON.
A dedicated server session will always have DEDICATED as server value, while a shared server session has SHARED when it's active, and NONE when it's inactive. -
Never ending "pseudo-device: devinfo0" messages in /var/adm/messages
Hi,
we are running a machine that generates the following two messages continously (with a time space of 5sec.).
[...] genunix: [ID 936769 kern.info] devinfo0 is /pseudo/devinfo@0
[...] [ID 129642 kern.info] pseudo-device: devinfo0
During the machine is in this cycle you can not connect via ssh or other services.
What is the job of devinfo0???
What is the reasen for the continous messages?
best regards,
tobiHmm, i wonder if the devinfo messages are the problem or just a symptom of another problem..
I have no good idea of what would cause this problem, but i'ld suggest that you add the latest Solaris 8 patch cluster, in particular if the box haven't been patched lately.
You could also check what processes which are running, and try to determine if anyone of them seems to be missbehaving.
Is the devinfo module loaded?
modinfo |grep -i devinfo
7/M. -
[solved] Transparent vim in pseudo-transp. urxvt?
Hi,
currently I'm using pseudo-transparency in rxvt-unicode-256color.
Can I have this transparency in vim too? When I start vim the background is set to black.
My .Xdefaults:
URxvt.saveLines: 1000
URxvt.scrollBar: false
urxvt*depth: 24
urxvt*shading: 80
URxvt.inheritPixmap: true
URxvt.secondaryScroll: true
URxvt.foreground: white
URxvt.font: xft:Bitstream Vera Sans Mono:pixelsize=12
URxvt.perl-ext-common: default,matcher
URxvt.urlLauncher: firefox
URxvt.matcher.button: 1
URxvt.matcher.pattern.1: \\bwww\\.[\\w-]\\.[\\w./?&@#-]*[\\w/-]
Thanks in advance
Last edited by Barghest (2009-05-03 17:15:00)Barghest wrote:
Thanks bluewind,
I found out that the reason was this line:
call <SID>X("Normal", "cccccc", "000000", "")
I commented it out and added a new line with ctermbg=NONE.
I guess I could have entered NONE also in the other line? What does it stand for?
It's a function to set colors. (search for "fun <SID>X" in the file to see what it does)
call <SID>X("Normal", "cccccc", "NONE", "")
should also remove the background. -
Hi!
How can I create my own CSS pseudo classes in Java FX 2?
So that I could use a CSS file like
*.MyButton : online{ }*
In FX 1 it could be done by overriding methods like
public long impl_getPseudoClassState() {}
but they are now deprecated :-(
Is there a new better way?The method is deprecated because, even though it is public, it is considered private implementation and subject to change. If you choose to override this method, you may end up returning a value that conflicts with other pseudo-classes (the return value is used as a bit mask).
Currently, there is no easy way to introduce your own pseudo-classes. I encourage you to file a feature request for that on http://javafx-jira.kenai.com (although http://javafx-jira.kenai.com/browse/RT-10922 might suffice)
You can get the same effect by using multiple style classes, adding and removing the style class as desired.
.MyButton.online { } -
Terminal: could not open a new pseudo-tty
Since I upgraded to Leopard my Terminal started to misbehave. Many times when i open it or a new window or just a new tab, all it displays it the message:
Could not open a new pseudo-tty.
An I cannot type in it or anything. Even if I quit Terminal and try again the error persists.
Funny that this is not happening every day, maybe it's being cause by another app like HamachiX or something.
Does it log the actual error that caused the tty to not open in some log file? Has anybody seen this? I couldn't find any mentions even in googleOne more thing, this problem only occurs on my account. When logged in on the guest account, I experience no issues. Just to test this, I also created another administrator account, and I also have not run into this problem.
Thanks Again -
[JS] (CS2) How do you insert pseudo tags around italic text
I need to find all the italic text strings wherever they occur (tables, headers, footers etc) in an InDesign CS2 document and insert a pseudo-xml tag before and after each string (something like
before and <\I> after.)
I'm positive this must be possible but my limited experience has failed me so far.
Can anyone point me in the right direction please.
TIA
Doug NealeWith many thanks to the experts, I managed to sort out the table slant problem. For the benefit of all our many readers, here is the complete solution tested with a multi page document hosting all sorts of text and tables. It's quite long because I believe in plenty of comments.
// make sure we have at least one document open
if (app.documents.length == 0) {
// warn operator and exit immediately
alert("There are no open documents.");
exit();
// OK if we get here, we have an open doc
myDoc = app.activeDocument;
// set up start and end tags
startTag = "#.";// should really be "
endTag = "#:";// should really be "<\i>"
slantTagCount = 0;// initialise our two counters
italicTagCount = 0;
// If we are going to search/change something, we use preferences
// So, the first thing we have to do is clear them out;
// they're application level properties; see pages 567 and 568:
app.findPreferences = null;
app.changePreferences = null;
// use the search() method to search entire document for italic fonts
myFinds = myDoc.search('', false, false, undefined, {fontStyle : 'Italic'});
if (myFinds.length != 0) {
// myFinds will consist of an array of references into the text of the doc
// each reference pointing to a run offset
// run the loop backwards so that if we make any changes to the text runs
// it won't affect the array of references.
// now add the italic tags
for (var j = myFinds.length-1;j>=0;j--){
// at each italic text run we want to insert
// a pseudo xml tag at beginning and end
// Adding the tags is this simple (end tag first):
myFinds[j].insertionPoints.item(-1).contents = endTag;
myFinds[j].insertionPoints.item(0).contents = startTag;
italicTagCount++;
// as the italic effect can also be achieved by applying a slant to each character
// we need to check the whole document again, but this time we do it story by story
// Finding slanted text--when text.skew is not zero, text has been slanted.
// Unfortunately, what you want to look for is cases where this value is NOT zero,
// and even InDesign's grep search can't find that (it can apply NOT to character classes,
// but not to formatting attributes)--or, at least, I can't figure out how to do it.
// So you have to "roll your own." Something like this:
myStories = myDoc.stories;
for (var jj = myStories.length-1; jj >= 0; jj--) {
// loop through all the stories in the document
myStory = myStories[jj];
//Given a story "myStory"...
for(var myCounter = myStory.textStyleRanges.length -1; myCounter >= 0; myCounter --){
if(myStory.textStyleRanges.item(myCounter).skew != 0){
//Found some slanted text.
myStory.textStyleRanges.item(myCounter).insertionPoints.item(-1).contents = endTag;
myStory.textStyleRanges.item(myCounter).insertionPoints.item(0).contents = startTag;
slantTagCount++;
// the above procedure does all the italic content in tables as well as ordinary text boxes
// but only does skewed (slanted) text in ordinary text boxes.
// We need to tackle skewed text in tables separately.
for (var i = myStories.length - 1; i >= 0; i--) {
// go through every story
for (var j = myStories[i].tables.length - 1;j >= 0; j--) {
// go through every table in this story
for (var k = myStories[i].tables[j].columns.length - 1; k >= 0; k--) {
// go through every column in this table
for (var m = myStories[i].tables[j].rows.length - 1; m >= 0; m--) {
// go through every row in this column to look at each cell
myCell = myStories[i].tables[j].columns[k].cells[m];
// introduce another variable to make next bit more readable
myCellStyle = myCell.textStyleRanges;
if (myCellStyle.length !=0) {
// go through all the text ranges in this cell
for (var myCounter = myCellStyle.length - 1; myCounter >= 0; myCounter --) {
// check each range item for skew
if (myCellStyle.item(myCounter).skew != 0) {
// found some slanted text so tag it
myCellStyle.item(myCounter).insertionPoints.item(-1).contents = endTag;
myCellStyle.item(myCounter).insertionPoints.item(0).contents = startTag;
slantTagCount++;
// tell operator what we did, note that document appearance not updated until
// alert has been acknowledged by operator.
alert ("Italic Tag Count = "+italicTagCount+"\nSlant Tag Count = "+slantTagCount);
Regards,
Doug Neale -
Pseudo delta with ABAP or OLAP variables
Hey gurus!
Since I have to post my first question at SDN one day, it may better be now! I'm rather new to SAP BI, therefore your help is requested:
I'm currently implementing a pseudo delta, a full data load from ODS to ODS and subsequently ODS to Cube. The data requested should consist of yesterdays records, which was relatively easy in SAP BW 3.5.
Since it is not possible anymore to, and I quote, choose one of the following selections in the Type (Variable Changing of Selections with Background Processing) entry column from the Data Selection tab page (numbers 0-7, 0 is required), I can now only solve it with creating another OLAP variable or ABAP coding.
Is there anyone that can give me some advice or provide me with some basic ABAP coding which selects data from 'yesterday?'
Your help is appreciated!
Regards,
JoostThanks for your reply Pom!
I'm not sure where to insert the '0' as type in my case. I've created a data transfer process instead of an infopackage now, but when setting up my filter there is nowhere to select the type. Or do I have to create an 'old fashioned' infopackage?!
Your help is appreciated, please provide some directions.
Regards,
Joost -
Pseudo TTY's -- are they missing?
I use a script to tunnel ppp through ssh because I have a system I maintain that is only accessible via ssh.
This script was working fine until a recent update -- which one I can't tell you.
I think it might be related to pseudo tty's, which no longer exist in my /dev directory. I have no /dev/ttyp.. entries -- what creates them? Should I manually create them, and if I do need to do it manually, what are the parameters I need for mkdev?
Here are the errors:
./ppptochaempip1.pl
running on ttyp0; ssh=4519, pppd=4526
Pseudo-terminal will not be allocated because stdin is not a terminal.
[email protected]'s password:
/usr/bin/pppd: command line: no device specified and stdin is not a tty
[root@lapzilla ~]# starting pppd
/usr/sbin/pppd: unrecognized option '/dev/ttyp0'
If you look at the code, I do use the -t option in ssh to force the tty but that doesn't seem to work because I don't think the devices exist? Maybe I'm wrong -- not sure.
Here is a snippet of the perl script if it will help:
foreach $maj ("p".."s") { # adjust this to the ptys you have
foreach $min ("0".."9", "a".."f") {
&tryopen("$maj$min");
die "Couldn't alloc ptyn";
sub tryopen
local($d)=@_;
if (open(PTY, "+>/dev/pty$d")) {
$pid=fork;
defined($pid) || die "can't fork";
if ($pid) { #parent
open(STDIN, "<PTY>&PTY") || die "reopen stout";
close PTY;
print STDERR "running on tty$d; ssh=$$, pppd=$pidn";
exec $ssh, "-x", "-t", "-l$sshuser", "$sshhost", "/usr/bin/pppd passive debug";
die "exec $ssh: $!";
} else { #child
close PTY;
sleep 5;
print "starting pppdn";
exec "$pppd /dev/tty$d defaultroute local debug $localip:$remoteip";
die "exec $pppd: $!";hmm.. not sure, I didn't write the script, I grabbed it from somewhere on the net -- I could look into finding another one I guess.
My forum search before I posted indicated I needed the entry in fstab -- so I thought I found my problem only to find I did have the entry:
none /dev/pts devpts defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/cd/cdrom-hdc /mnt/cd iso9660 ro,user,noauto,unhide 0 0
Norm[/search]
Maybe you are looking for
-
How can I get the Voiceover Keyboard shortcuts to show up in a form in which I can copy
I have low vision & have been trying to learn to use Voiceover on both my iPhone & my Mac mini for months. Very frustrating. 1. How can I get the Voiceover keyboard shortcut commans to show up in a form in which I can copy & paste them into a pages d
-
Business cont error during installation in BW 7.3 - STOP elm miss in D vers
Hi Gurus, We recently installed BW 7.3 system. When I try to install 2LIS_13_VDITM from infosource I got the following Error when I use the option of install before and after. It is ok for if I choose only before. @5C\QError@ Template '0TPL_0SD_S
-
Hi, My company sometime will receive payment from our vendor so we need to issue an official receipt to the vendor, but I not able to find the standard print program and sapscript to be use for this purpose. Recently, I just configure the RFKORDC1 as
-
When will v 9.0.1 have compatiable addons?
For some time now I've been getting pop-ups wanting me to upgrade to version 9.0.1, but when I start I'm immediately told that some of my add-ons will be disabled ( MS.net framework & Java). WHEN will V 9.0.1 be compatible with these add-ons?
-
Jsp:useBean : Missing value of String classed bean with 'session' scope
Hi! I'd like to ask some help. I have these two JSP pages: 1.jsp<jsp:useBean id="str" class="java.lang.String" scope="session"/> <html> <body> <% str="hello"; %> <a href="2.jsp">click</a> </body> </html> 2.jsp<jsp:useBean id="str" class="java.lang.St