Essmsh executes maxl script, but does not end
Hi, I could really need some help with a Maxl script I've built for a customer.
The script builds the account dimension several times in a row. Each time for a different Alias Table.
I choose this method, instead of the Load Alias_Table method, because I don't want to load Aliases for all members in all dimensions. Just only for the account dimension.
When running the script from a batch file manually, nothing seems wrong, however when running the batch file from HAL essmsh never finishes.
This is what happens in HAL:
a batch file is executed containing the following command:
call Essmsh D:\JDE2GL\Bin\Maxl_UpdateOutline.txt
The Maxl_UpdateOutline.txt contains the following Maxl script:
login {user} {password} on {server};
spool stdout on to 'output.txt';
spool stderr on to 'errors.txt';
alter database {application}.{database} unlock all objects;
alter system unload application {application};
import database {appliaction}.{database} dimensions
connect as '{SQLuser}' identified by '{SQLpassword}' using server rules_file 'DmAc_Def'
preserve all data on error append to 'D:\\JDE2GL\\Outbox\\MaxL_UpdateOutlineAc_Def.err';
import database {application}.{database} dimensions
connect as '{SQLuser}' identified by '{SQLpassword}' using server rules_file 'DmAc_BEL'
preserve all data on error append to 'D:\\JDE2GL\\Outbox\\MaxL_UpdateOutlineAc_BEL.err';
import database {application}.{database} dimensions
connect as '{SQLuser}' identified by '{SQLpassword}' using server rules_file 'DmAc_FRA'
preserve all data on error append to 'D:\\JDE2GL\\Outbox\\MaxL_UpdateOutlineAc_FRA.err';
import database {application}.{database} dimensions
connect as '{SQLuser}' identified by '{SQLpassword}' using server rules_file 'DmAc_USA'
preserve all data on error append to 'D:\\JDE2GL\\Outbox\\MaxL_UpdateOutlineAc_USA.err';
import database {application}.{database} dimensions
connect as '{SQLuser}' identified by '{SQLpassword}' using server rules_file 'DmAc_SPA'
preserve all data on error append to 'D:\\JDE2GL\\Outbox\\MaxL_UpdateOutlineAc_SPA.err';
import database {application}.{database} dimensions
connect as '{SQLuser}' identified by '{SQLpassword}' using server rules_file 'DmAc_ARG'
preserve all data on error append to 'D:\\JDE2GL\\Outbox\\MaxL_UpdateOutlineAc_ARG.err';
spool off;
logout;
exit;
In the "Outbox" directory I can see the error log files, with some warnings on duplicate member names appear.
In the Essbase Application Log file, I can see that all dimension builds were executed succesfully.
The spool file output.txt nor the errors.txt are created when running from HAL.
I've used this HAL procedure thousands of times with one dimension build without any problems, even with more dimension builds it didn't give any errors until recently.
Does somebody have any ideas..? Would be much appreciated!
Thanks,
Rudy
Hi,
we work with the exit label as follows:
alter database ...
iferror getmeout;
alter database ...
iferror getmeout...
define label "getmeout";
spool off;
logout;
EXIT;
the spool off and logout command should be part of the defined lable (in your case, too), otherwise you wouldnt logout your session if an error occurs.
Kind regards
André
Similar Messages
-
Compiles but does not execute as expected????
Here is my code. I can compile and execute but does not perform as expected What do I need to change?
import java.io.;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.text.NumberFormat;
import java.math.*;
public class CalcTest extends JFrame implements ActionListener, ItemListener
public JMenuBar createMenuBar()
JMenuBar mnuBar = new JMenuBar();
setJMenuBar(mnuBar);
//Create File & add Exit
JMenu mnuFile = new JMenu("File", true);
mnuFile.setMnemonic(KeyEvent.VK_F);
mnuFile.setDisplayedMnemonicIndex(0);
mnuBar.add(mnuFile);
JMenuItem mnuFileExit = new JMenuItem("Exit");
mnuFileExit.setMnemonic(KeyEvent.VK_F);
mnuFileExit.setDisplayedMnemonicIndex(1);
mnuFile.add(mnuFileExit);
mnuFileExit.setActionCommand("Exit");
mnuFileExit.addActionListener(this);
JMenu mnuFunction = new JMenu("Function", true);
mnuFunction.setMnemonic(KeyEvent.VK_F);
mnuFunction.setDisplayedMnemonicIndex(0);
mnuBar.add(mnuFunction);
JMenuItem mnuFunctionClear = new JMenuItem("Clear");
mnuFunctionClear.setMnemonic(KeyEvent.VK_F);
mnuFunctionClear.setDisplayedMnemonicIndex(1);
mnuFunction.add(mnuFunctionClear);
mnuFunctionClear.setActionCommand("Clear");
mnuFunctionClear.addActionListener(this);
// Fields for Principle
JPanel row1 = new JPanel();
JLabel dollar = new JLabel("How much are you borrowing?");
JTextField money = new JTextField("", 15);
// Fields for Term and Rate
JPanel row2 = new JPanel();
JLabel choice = new JLabel("Select Year & Rate:");
JCheckBox altchoice = new JCheckBox("Alt. Method");
JTextField YR = new JTextField("", 4);
JTextField RT = new JTextField("", 4);
//Jcombobox R=rate,Y=year
String[] RY = {
"7 years at 5.35%", "15 years at 5.5 %", "30 years at 5.75%", " "
JComboBox mortgage = new JComboBox(RY);
// Fields for Payment
JPanel row3 = new JPanel();
JLabel payment = new JLabel("Your monthly payment will be:");
JTextField owe = new JTextField(" ", 15);
//Scroll Pane and Text Area
JPanel row4 = new JPanel();
JLabel amortization = new JLabel("Amortization:");
JTextArea chart = new JTextArea(" ", 7, 22);
JScrollPane scroll = new JScrollPane(chart, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
StringBuffer amt = new StringBuffer();
Container pane = getContentPane();
FlowLayout flow = new FlowLayout(FlowLayout.LEFT);
JButton Cal = new JButton("Calculate");
NumberFormat currency = NumberFormat.getCurrencyInstance();
public CalcTest()
// Title and Exit of JFrame
super("Mortgage and Amortization Calculator");
setSize(475, 328);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//JFrame layout
pane.setLayout(flow);
//Input output fields added to JFrame
row1.add(dollar);
row1.add(money);
pane.add(row1);
mortgage.setSelectedIndex(3);
mortgage.addActionListener(this);
mortgage.setActionCommand("mortgage");
row2.add(altchoice);
altchoice.addItemListener(this);
row2.add(choice);
YR.setEditable(false);
RT.setEditable(false);
row2.add(YR);
row2.add(RT);
row2.add(mortgage);
pane.add(row2);
row3.add(payment);
row3.add(owe);
pane.add(row3);
owe.setEditable(false);
//Scroll Pane added to JFrame
row4.add(amortization);
chart.setEditable(false);
row4.add(scroll);
pane.add(row4);
//Executable Button- Clear,Exit, Calculate
JPanel row5 = new JPanel();
JButton clear = new JButton("Clear");
clear.addActionListener(this);
row5.add(clear);
pane.add(row5);
JButton exit = new JButton("Exit");
exit.addActionListener(this);
row5.add(exit);
Cal.setEnabled(false);
Cal.addActionListener(this);
row5.add(Cal);
pane.add(row5);
setContentPane(pane);
setVisible(true);
} //End of constructor
private void calculate()
String loanAmount = money.getText();
if(loanAmount.equals(""))
return;
double P = Double.parseDouble(loanAmount);
int y;
double r;
if(altchoice.isSelected())
if(YR.getText().equals("") || RT.getText().equals(""))
return;
y = Integer.parseInt(YR.getText());
r = Double.parseDouble(RT.getText());
else
int index = mortgage.getSelectedIndex();
if(index == 3)
return;
int[] terms = { 7, 15, 30 };
double[] rates = { 5.5, 5.35, 5.75 };
y = terms[index];
r = rates[index];
double In = r / (100 * 12.0);
double M = P * (In / (1 - Math.pow(In + 1, -12.0 * y)));
owe.setText(currency.format(M));
//Column Titles for Text Area
chart.setText("Pmt#\tPrincipal\tInterest\tBalance\n");
for (int i = 0; i < y * 12; i++)
{ double interestAccrued = P * In;
double principalPaid = M - interestAccrued;
chart.append(i + 1 + "\t" + currency.format(principalPaid)
+ "\t" + currency.format(interestAccrued)
+ "\t" + currency.format(P) + "\n");
P = P + interestAccrued - M;
public void itemStateChanged(ItemEvent ie)
{ int status = ie.getStateChange();
if (status == ItemEvent.SELECTED)
mortgage.setEnabled(false);
YR.setEditable(true);
RT.setEditable(true);
Cal.setEnabled(true);
else
mortgage.setEnabled(true);
YR.setEditable(false);
RT.setEditable(false);
Cal.setEnabled(false);
public void actionPerformed(ActionEvent ae)//Calculations and Button executions
String command = ae.getActionCommand();
// Exit program
if (command.equals("Exit"))
System.exit(0);
// Cal button
if (command.equals("Calculate") || command.equals("mortgage"))
calculate();
// Clear fields
if (command.equals("Clear"))
money.setText(null);
mortgage.setSelectedIndex(3);
owe.setText(null);
chart.setText(null);
} //End actionPerformed
public static void main(String args[]) throws IOException
new CalcTest();
[/Code]Here is the code again
import java.io.;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.text.NumberFormat;
import java.math.*;
public class CalcTest extends JFrame implements ActionListener, ItemListener
public JMenuBar createMenuBar()
JMenuBar mnuBar = new JMenuBar();
setJMenuBar(mnuBar);
//Create File & add Exit
JMenu mnuFile = new JMenu("File", true);
mnuFile.setMnemonic(KeyEvent.VK_F);
mnuFile.setDisplayedMnemonicIndex(0);
mnuBar.add(mnuFile);
JMenuItem mnuFileExit = new JMenuItem("Exit");
mnuFileExit.setMnemonic(KeyEvent.VK_F);
mnuFileExit.setDisplayedMnemonicIndex(1);
mnuFile.add(mnuFileExit);
mnuFileExit.setActionCommand("Exit");
mnuFileExit.addActionListener(this);
JMenu mnuFunction = new JMenu("Function", true);
mnuFunction.setMnemonic(KeyEvent.VK_F);
mnuFunction.setDisplayedMnemonicIndex(0);
mnuBar.add(mnuFunction);
JMenuItem mnuFunctionClear = new JMenuItem("Clear");
mnuFunctionClear.setMnemonic(KeyEvent.VK_F);
mnuFunctionClear.setDisplayedMnemonicIndex(1);
mnuFunction.add(mnuFunctionClear);
mnuFunctionClear.setActionCommand("Clear");
mnuFunctionClear.addActionListener(this);
// Fields for Principle
JPanel row1 = new JPanel();
JLabel dollar = new JLabel("How much are you borrowing?");
JTextField money = new JTextField("", 15);
// Fields for Term and Rate
JPanel row2 = new JPanel();
JLabel choice = new JLabel("Select Year & Rate:");
JCheckBox altchoice = new JCheckBox("Alt. Method");
JTextField YR = new JTextField("", 4);
JTextField RT = new JTextField("", 4);
//Jcombobox R=rate,Y=year
String[] RY = {
"7 years at 5.35%", "15 years at 5.5 %", "30 years at 5.75%", " "
JComboBox mortgage = new JComboBox(RY);
// Fields for Payment
JPanel row3 = new JPanel();
JLabel payment = new JLabel("Your monthly payment will be:");
JTextField owe = new JTextField(" ", 15);
//Scroll Pane and Text Area
JPanel row4 = new JPanel();
JLabel amortization = new JLabel("Amortization:");
JTextArea chart = new JTextArea(" ", 7, 22);
JScrollPane scroll = new JScrollPane(chart, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
StringBuffer amt = new StringBuffer();
Container pane = getContentPane();
FlowLayout flow = new FlowLayout(FlowLayout.LEFT);
JButton Cal = new JButton("Calculate");
NumberFormat currency = NumberFormat.getCurrencyInstance();
public CalcTest()
// Title and Exit of JFrame
super("Mortgage and Amortization Calculator");
setSize(475, 328);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//JFrame layout
pane.setLayout(flow);
//Input output fields added to JFrame
row1.add(dollar);
row1.add(money);
pane.add(row1);
mortgage.setSelectedIndex(3);
mortgage.addActionListener(this);
mortgage.setActionCommand("mortgage");
row2.add(altchoice);
altchoice.addItemListener(this);
row2.add(choice);
YR.setEditable(false);
RT.setEditable(false);
row2.add(YR);
row2.add(RT);
row2.add(mortgage);
pane.add(row2);
row3.add(payment);
row3.add(owe);
pane.add(row3);
owe.setEditable(false);
//Scroll Pane added to JFrame
row4.add(amortization);
chart.setEditable(false);
row4.add(scroll);
pane.add(row4);
//Executable Button- Clear,Exit, Calculate
JPanel row5 = new JPanel();
JButton clear = new JButton("Clear");
clear.addActionListener(this);
row5.add(clear);
pane.add(row5);
JButton exit = new JButton("Exit");
exit.addActionListener(this);
row5.add(exit);
Cal.setEnabled(false);
Cal.addActionListener(this);
row5.add(Cal);
pane.add(row5);
setContentPane(pane);
setVisible(true);
} //End of constructor
private void calculate()
String loanAmount = money.getText();
if(loanAmount.equals(""))
return;
double P = Double.parseDouble(loanAmount);
int y;
double r;
if(altchoice.isSelected())
if(YR.getText().equals("") || RT.getText().equals(""))
return;
y = Integer.parseInt(YR.getText());
r = Double.parseDouble(RT.getText());
else
int index = mortgage.getSelectedIndex();
if(index == 3)
return;
int[] terms = { 7, 15, 30 };
double[] rates = { 5.5, 5.35, 5.75 };
y = terms[index];
r = rates[index];
double In = r / (100 * 12.0);
double M = P * (In / (1 - Math.pow(In + 1, -12.0 * y)));
owe.setText(currency.format(M));
//Column Titles for Text Area
chart.setText("Pmt#\tPrincipal\tInterest\tBalance\n");
for (int i = 0; i < y * 12; i++)
{ double interestAccrued = P * In;
double principalPaid = M - interestAccrued;
chart.append(i + 1 + "\t" + currency.format(principalPaid)
+ "\t" + currency.format(interestAccrued)
+ "\t" + currency.format(P) + "\n");
P = P + interestAccrued - M;
public void itemStateChanged(ItemEvent ie)
{ int status = ie.getStateChange();
if (status == ItemEvent.SELECTED)
mortgage.setEnabled(false);
YR.setEditable(true);
RT.setEditable(true);
Cal.setEnabled(true);
else
mortgage.setEnabled(true);
YR.setEditable(false);
RT.setEditable(false);
Cal.setEnabled(false);
public void actionPerformed(ActionEvent ae)//Calculations and Button executions
String command = ae.getActionCommand();
// Exit program
if (command.equals("Exit"))
System.exit(0);
// Cal button
if (command.equals("Calculate") || command.equals("mortgage"))
calculate();
// Clear fields
if (command.equals("Clear"))
money.setText(null);
mortgage.setSelectedIndex(3);
owe.setText(null);
chart.setText(null);
} //End actionPerformed
public static void main(String args[]) throws IOException
new CalcTest(); -
I created a script to add logos to photos at a club and now when I run the script, the script runs but does not actually place anything on the photo itself. What's going on?
He meant post it here, of course, Louie! How on Earth would you post it "on Photoshop" ?
Thank you for the belly laugh. -
Excel process does not end properly
Hello All.
I am using excel in my program writing data into it an excel workbook and then later on reading data from it. I have written down the code of closing excel worlkbook and shutting down excel application hence releasing the handles for it. But when i do that i.e. when the code containing excel workbook closing and excel application shutting down executes, excel workbook is closed but excel process does not end properly and can be seen in the task manager. And when i repeatedly open the excel file through my front end interface and close the file, another excel process is added in the task manager which does not end and so on. What can be the problem and solution. Thanks in advance.
Best Regards.
Moshi.Interfacing to Excel via ActiveX may be tricky, ending in situations like the one you are facing now.
The basic principle is that every single handle opened to an Excel object (workbook, worksheet, range, variant and so on) must be closed properly for the entire process to terminate gracefully. If a reference remains unhandled at program end you will find an instance of Excel remaining in the task list and you may suffer erratic behaviour in subsequent accesses to the product.
You must double check all references and add approporiate dispose/close commands for every one of them.
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos? -
Field on manual tabular appears using Firefox but does not appear using IE
Hello,
A field in a manual tabular form appears correctly using Firefox but does not appear or appears in another field when IE is used. Javascript is used to hide certain columns on the tabular form. Does anyone know how to solve this problem?
Thanks panyPrabodh,
The select for the report and the javascript that is used to hide the columns are displayed below. The data for Apex_item.select_list_from_lov(12,null,'LOV_METHOD_OF_ACQ') is shown in the previous column, Date Acquired, and the column for Method Acquired is blank. It appears correctly in Firefox. Please let me know if this is sufficient.
Thanks,
pany
SELECT
apex_item.hidden(1, c011) status
,apex_item.checkbox(2,seq_id) checkbox
,apex_item.hidden(3, seq_id) seq_id
,apex_item.hidden(4,c001) Owner_Firm_Id
,apex_item.hidden(5,c002) Owner_Id
,apex_item.hidden(6,c003,10) First_Name
,apex_item.hidden(7,c004,10) Last_Name
,apex_item.text(8,c005,10) Number_Shares
,apex_item.text(9,c006,10) Percentage
,apex_item.text(10,c007,10) Class
,apex_item.date_popup(11,rownum, c008, 'MM/DD/YYYY',15) Date_Acquired
,apex_item.select_list_from_lov(12,c009,'LOV_METHOD_OF_ACQ') Method_Acquired
,apex_item.hidden(13,c010,10) Primary_Key
FROM apex_collections
WHERE collection_name= 'INTEREST_STOCK_COLL'
AND c011 IN ('O','N','U')
union all
select
apex_item.hidden (1,null) status
,apex_item.checkbox(2, null) checkbox
,apex_item.hidden(3, null) seqid
,apex_item.hidden(4,null,10) Owner_Firm_Id
,apex_item.hidden(5,null,10) Owner_Id
,apex_item.hidden(6,null,10) First_Name
,apex_item.hidden(7,null,10) Last_Name
,apex_item.text(8,null,10) Number_Shares
,apex_item.text(9,null,10) Percentage
,apex_item.text(10,null,10) Class
,apex_item.date_popup(11,1, null,'MM/DD/YYYY',15) Date_Acquired
,apex_item.select_list_from_lov(12,null,'LOV_METHOD_OF_ACQ') Method_Acquired
,apex_item.hidden(13,null,10) Primary_Key
FROM dual
Javascript
function hideCols(p_startOfTable, p_pageList, p_debug)
alert("in function");
var outStr = "Blanking Script:\n";
var debug = p_debug;
var offCols = p_pageList.split(":"); //string comes in colon delimited, split it
into array
var tbl = document.getElementById(p_startOfTable); //get the table from the page
html source
var rows = tbl.getElementsByTagName('tr'); //get the first row
var tds = tbl.getElementsByTagName('td');
var testStr;
outStr = outStr + "START tds length is " + tds.length + "\n";
if (debug)
alert(outStr);
//START Clear Headers
var i, j, cells;
cells = rows[0].getElementsByTagName('th'); //get the headers
for (j = 0; j < offCols.length; j++)
cells[j].className = "hidden";
outStr = outStr + "i is " + i + " HEADER rows.length is " + rows.length +
"\n";
if (debug)
alert(outStr);
//END Clear Headers
//START Clear TDs
for (i = 0; i < tds.length; i++)
var attrib = tds.innerHTML;
var gNum = attrib.indexOf(" name=") + 7;
var colNum = attrib.substr(gNum, 2);
colNum = parseFloat(colNum);
for (j = 0; j < offCols.length; j++)
if (debug)
testStr = testStr + "\n" + "colNum is: " + colNum + " className is: " +
tds[i].className + " i is: " + i + " j is: " + j + "\n";
if (colNum == offCols[j])
if (debug)
alert("colNum is " + colNum);
if (tds[i].className == "datepicker")
if (debug)
alert("caught condition with i= " + i);
tds[i - 1].className = "hidden";
tds[i].className = "hidden";
tds[i + 1].className = "hidden";
//add popupLOV functionality here
//add radio button functionality here
// add other items that may have multiple <td>
else
//regular hideCol
tds[i].className = "hidden";
//END Clear TDs
if (debug)
alert(testStr);
//document.write(testStr);
Edited by: PANY on Aug 12, 2010 8:25 AM -
When I try to sync my music on my iPhone 4 I have a tab at the top that says 'on this iPhone'. This is at the end of all the other tabs like info, ringtones, music etc. The music in that tab is always on my phone but does not show in my itunes library. How can I get it into my library? It doesn't sync either.
The new iTunes has a somewhat different look from the previous version. You can get the old look back if you prefer it by doing View > Show Sidebar in iTunes. Or you can adapt to the new look.
-
Execution does not end even after all records updated..
Hi,
I have plsql code like :
declare
begin
for x in ( select .......) loop -- about 4000 times
for y in ( select ............) loop -- about 50 times
end loop;
-- some code goes here to manipulate clob data
-- like creating free temp clobs - use - then free them
-- Update statement that update some table using clob values.
insert into tablex values(sysdate);
commit;
end loop;
end;
Here I can monitor from other window howmany records are inserted into tablex and howmany updated in update statement by...
select count(1) from tablex;
After 50 mins i can see that all records are updated but...
plsql code does not end its execution it continues even after all records are updated..untill i have to kill the session or let be run for long time.. :(
I can not understand why this it is not ending execution..
What could be the problem ...Hi,
Here it is.....
declare
v_text_data TableA.text_data%type;
v_clob clob;
type dummyclob_t is table of clob index by binary_integer;
dummyclob dummyclob_t;
v_str varchar2(255) := 'ddfsajfdkeiueimnrmrrttrtr;trtkltwjkltjiu4i5u43iou43i5u4io54urnmlqwmreqwnrewmnrewmreqwnm,rewqnrewqrewqljlkj';
begin
select data bulk collect into dummyclob from sfdl_clob; -- five rows containing clob data upto 1MB
for x in (select object_id
from TableA
where object_type = 'STDTEXT' ) loop
dbms_lob.createtemporary(v_text_data,TRUE);
for y in (select '<IMG "MFI_7579(@CONTROL=' || ref_id || ',REF_ID=' || ref_id || ').@UDV">' temp_data
from TableB
where object_id = x.object_id) loop
v_text_data := v_text_data ||
case
when trunc(dbms_random.value(0,7)) = 0
then chr(10)
else v_str
end ||
y.temp_data;
end loop;
select text_data into v_clob from TableA where object_id = x.object_id for update;
if v_text_data is not null then
dbms_lob.append(v_clob,v_text_data);
end if;
dbms_lob.append(v_clob,dummyclob(trunc(dbms_random.value(1, 6))));
dbms_lob.freetemporary(v_text_data);
insert into xyz values (sysdate);
commit;
end loop;
end;
Thanks for your time..:)
Rushang. -
How to remove records in itab where its HKONT does not end in '0'...
Hello Experts,
I am getting records from BSIS and BSAS and I want to remove those records with
their HKONT(GL account) does not end in '0'(zero). I do now want to do it via a loop.
I tried using DELETE FROM ITAB statement but it seems it does not work.
Here is what I did:
IF NOT gt_bsis_bsas[] IS INITIAL.
DELETE gt_bsis_bsas WHERE hkont+10(0) <> '0'.
ENDIF.
Hope you can help me guys. Thank you and take care!Hi Viray,
'+' is a wildcard char which is used to represent one char
where as '*' represents any number of char's.
In this case +++++++++0
<b>means that the length of the field is 10 chars and first 9 can be anything</b>
he didn't use '*0' since it could mean that the length of the data entered can be anything .
Hope this clarifies
Regards
Nishant -
My flash reads the xml, but does not understand the tag php....
my flash reads the xml, but does not understand the tag php. I want to read my xml dynamically, please help me.
code:
stop();
function randomOrder(targetArray)
var _loc2 = targetArray.length;
var _loc3 = [];
for (var _loc1 = 0; _loc1 < _loc2; ++_loc1)
_loc3[_loc1] = _loc1;
} // end of for
var _loc4 = [];
for (var _loc1 = 0; _loc1 < _loc2; ++_loc1)
_loc4[_loc1] = _loc3.splice(Math.floor(Math.random() * _loc3.length), 1);
} // end of for
var _loc5 = [];
for (var _loc1 = 0; _loc1 < _loc2; ++_loc1)
_loc5[_loc1] = targetArray[_loc4[_loc1]];
} // end of for
return (_loc5);
} // End of the function
var randomNUM = "?n=" + random(9999);
_root.lan = 1;
var homehead;
var homelink;
var homelinkwindow;
var homebg;
var homeflash;
var lamp = Array();
var promo = Array();
var promobottom = Array();
var headimg = Array();
f_xmlwork2 = new XML();
f_xmlwork2.ignoreWhite=true;
f_xmlwork2.load("banner.php");
f_xmlwork2.onLoad = function(sucess){
if (sucess){
trace ("XML loaded!");
f_xmlItemx2 = parseInt(this.firstChild.childNodes[0].firstChild);
f_totalx2 = f_xmlItemx2.length;
trace(f_totalx2);
var _loc12 =0;
// declarar a imagem de fundo
homebg = this.firstChild.childNodes[0].firstChild.nodeValue;
f_headimg = this.childNodes[1];
for (var _loc2 = 0; _loc2 < f_headimg.childNodes.length; ++_loc2) {
juju = f_headimg.childNodes[_loc2];
jj = headimg.push({headimg: f_headimg.childNodes[_loc2].attributes.headimg, bgimg: f_headimg.childNodes[_loc2].attributes.bgimg, msgimg: f_headimg.childNodes[_loc2].attributes.msgimg, leftthrow: f_headimg.childNodes[_loc2].attributes.leftthrow, rightthrow: f_headimg.childNodes[_loc2].attributes.rightthrow});
//end for
allpromo = this.childNodes[2];
jjpromo = allpromo.childNodes;
for (var _loc2 = 0; _loc2 < allpromo.childNodes.length; ++_loc2)
trace (jjpromo[_loc2].attributes.title);
jj = promo.push({img: jjpromo[_loc2].attributes.img, title: jjpromo[_loc2].attributes.title, url: jjpromo[_loc2].attributes.url, window: jjpromo[_loc2].attributes.window, info: jjpromo[_loc2].childNodes[0].nodeValue});
// end of for
allpromobottom = this.childNodes[3];
jjpromobottom = allpromobottom.childNodes;
for (var _loc2 = 0; _loc2 < allpromobottom.childNodes.length; ++_loc2)
trace (jjpromo[_loc2].attributes.title);
jj = promobottom.push({url: jjpromobottom[_loc2].attributes.url, window: jjpromobottom[_loc2].attributes.window, info: jjpromobottom[_loc2].childNodes[0].nodeValue});
} // end of for
if (f_xmlwork2.loaded == true)
headimg = randomOrder(headimg);
for (var _loc2 = 0; _loc2 < f_headimg.childNodes.length; ++_loc2)
trace (headimg[_loc2].headimg);
} // end of for
play ();
} // end if
trace(f_xmlwork2);
stop();
PHP code:
<?
$link= mysql_connect("localhost","rnpac_eco","123");
mysql_select_db("rnpac");
$dir="banner/";
$dir1="produtos/img_pro/";
$dir2="universo/actividades/";
$sql = 'SELECT tbl_produto.id_produto, tbl_produto.produto, tbl_produto.legenda, tbl_produto.detalhe, tbl_produto.preco, tbl_produto.produto_cat_id, tbl_detalhe_produto.proprietario, tbl_detalhe_produto.local, tbl_detalhe_produto.qualidade, tbl_detalhe_produto.alcool, tbl_detalhe_produto.acidez, tbl_detalhe_produto.ph, tbl_detalhe_produto.informacao, tbl_detalhe_produto.gestor, tbl_detalhe_produto.condicionamento, tbl_detalhe_produto.detalhe_t, tbl_detalhe_produto.interesse, tbl_detalhe_produto.transporte, tbl_detalhe_produto.produto_id, tbl_imagem_produto.id_imagem, tbl_imagem_produto.imagem1, tbl_imagem_produto.imagem2, tbl_imagem_produto.imagem3, tbl_imagem_produto.imagem4, tbl_imagem_produto.imagem5, tbl_imagem_produto.imagem6
FROM tbl_cat_produto, tbl_produto, tbl_detalhe_produto, tbl_imagem_produto WHERE tbl_produto.id_produto = tbl_detalhe_produto.produto_id AND tbl_produto.id_produto = tbl_imagem_produto.produto_id ORDER BY RAND()';
$resultado = mysql_query($sql)
or die ("Não foi possível realizar a consulta.");
$row1=mysql_fetch_array($resultado);
$sql = "SELECT tbl_sub_universo.id_subuniverso, tbl_sub_universo.subuniverso, tbl_sub_universo.universo_id, tbl_actividade.id_actividade, tbl_actividade.entidade, tbl_actividade.legenda, tbl_actividade.subuniverso_id, tbl_actividade.det, tbl_actividade.preco, tbl_actividade.data, tbl_detalhe_actividade.actividade_id, tbl_detalhe_actividade.periodo, tbl_detalhe_actividade.descricao, tbl_detalhe_actividade.programa, tbl_detalhe_actividade.informacoes, tbl_detalhe_actividade.actividades, tbl_detalhe_actividade.localizacao, tbl_detalhe_actividade.locais, tbl_detalhe_actividade.servicos, tbl_imagem_produto.id_imagem, tbl_imagem_produto.imagem1,tbl_imagem_produto.imagem2, tbl_imagem_produto.imagem3, tbl_imagem_produto.imagem4, tbl_imagem_produto.imagem5, tbl_imagem_produto.imagem6, tbl_imagem_produto.actividade_id FROM tbl_sub_universo, tbl_actividade, tbl_detalhe_actividade, tbl_imagem_produto WHERE tbl_actividade.id_actividade =tbl_imagem_produto.actividade_id AND tbl_actividade.id_actividade =tbl_detalhe_actividade.actividade_id ORDER BY RAND()";
$resultado = mysql_query($sql)
or die ("Não foi possível realizar a consulta.");
$row2=mysql_fetch_array($resultado);
$query='SELECT * FROM tbl_banner ORDER BY RAND()';
$resultado = mysql_query($query);
echo' <?xml version=\"1.0\"?>
<home_left_headline>
<bgimg>'.$dir2.''.$row1['imagem1'].'</bgimg>
</home_left_headline>
<home_flash>';
while($row = mysql_fetch_array($resultado)) {
echo'<swf headimg="" bgimg="" msgimg="" leftthrow="" rightthrow=""></swf>';
echo'</home_flash>';
echo'<promotop>
<promo img="" title="" url="" ><![CDATA[]]></promo>
<promo img="" title="" url="" ><![CDATA[]]></promo>
</promotop>';
mysql_close($link);i have two files banner.php, for testing my flash banner.
This one works:
-------------------------------| banner.php |---------------------------------------------
<?xml version="1.0"?>
<content>
<settings>
<menu X='160'/>
</settings>
<nav>
<main Name='HOME' Link='home.swf'/>
<main Name='EMPRESA' Link='home.swf' >
<sub Name='HISTORIA' Link='content.swf' toLoad='content/contentrosa.xml'/>
<sub Name='OBJECTIVO' Link='content.swf' toLoad='content/contentrosa2.xml'/>
</main></nav>
</content>
-------------------------------|end banner.php |---------------------------------------------
this other does not work:
-------------------------------| banner.php |---------------------------------------------
<?php
echo"<?xml version="1.0"?>
<content>
<settings>
<menu X='160'/>
</settings>
<nav>
<main Name='HOME' Link='home.swf'/>
<main Name='EMPRESA' Link='home.swf' >
<sub Name='HISTORIA' Link='content.swf' toLoad='content/contentrosa.xml'/>
<sub Name='OBJECTIVO' Link='content.swf' toLoad='content/contentrosa2.xml'/>
</main></nav>
</content>";
?>
-------------------------------|end banner.php |---------------------------------------------
Why? What is wrong? why does my flash does not understand the tag php
Message was edited by: armandix -
Since the upgrade to FF3.6, I've had several annoying glitches.
1 Dclick desktop icon, FF loads into memory, but does not display. End task. Then Dclick the icon again. This time FF loads and displays normally.
2. After closing FF with Save & Quit, next time I open FF, error message : "Well this is embarrassing, can't recover tabs". Start new session. FF opens with last tab instead of default site.
3. On some sites I click icons and nothing happens. Sometimes other icons on same page will open, but most won't. Internet Explorer will open the same icons, so the Problem seems to be in FF.
Am I the only one with these nuisances? Any help will be appreciated.
== This happened ==
Every time Firefox opened
== after upgrade to FF 3.6Hello John.
You may be having a problem with some Firefox add-on that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?
Whenever you have a problem with Firefox, whatever it is, you should make sure it's not coming from one of your installed add-ons, be it an extension, a theme or a plugin. To do that easily and cleanly, run Firefox in [http://support.mozilla.com/en-US/kb/Safe+Mode safe mode] and select ''Disable all add-ons''. If the problem disappears, you know it's from an add-on. Disable them all in normal mode, and enable them one at a time until you find the source of the problem. See [http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes this article] for information about troubleshooting extensions and theme. You can troubleshoot plugins the same way.
If you want support for one of your add-ons, you'll need to contact its author. -
Process does not end when binding a object to registry
I am writing a Unit Test case in which i need to create a datasource and bind it to RMI registry so that the methods i need to test can get a database connection . The problem is that after the test cases have finished running the process does not end and i have to shut it down manually . When i do not bind the datasource , the process ends put with errors because the methods do not get a connection. Even unbinding it after running the test cases does not help.
Edited by: gurpreetbhalla on Jun 25, 2009 11:56 AMpublic void testIntraDayForClient() throws Exception
ConstantConfig.JNDI_FACTORY = "com.sun.jndi.rmi.registry.RegistryContextFactory";
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.rmi.registry.RegistryContextFactory");
env.put(Context.PROVIDER_URL, "rmi:");
InitialContext ic = new InitialContext(env);
// Construct DataSource
SQLServerConnectionPoolDataSource ds = new SQLServerConnectionPoolDataSource();
ds.setURL("jdbc:sqlserver://10.200.41.201:1433;databaseName=TradeportTC");
ds.setUser("sa");
ds.setPassword("superuser");
DataSource d = ds;
ic.unbind("TCDB_JNDI");
ic.bind("TCDB_JNDI", ds);
HttpServletRequest req = new MockHttpRequest();
HttpServletResponse resp = EasyMock.createMock(HttpServletResponse.class);
ActionContext context = EasyMock.createMock(ActionContext.class);
HttpSession session = EasyMock.createMock(HttpSession.class);
EasyMock.expect(session.getAttribute("ZephyrUserName")).andReturn("sclient90");
EasyMock.expect(session.getAttribute("ZephyrDomainId")).andReturn("8a48a9cb1860e2a4011860e2c64d003a");
EasyMock.expect(session.getAttribute("isTrader")).andReturn(false);
EasyMock.expect(session.getAttribute("accountsDataDB")).andReturn(null);
EasyMock.expect(context.getSession()).andReturn(session).times(12);
session.setAttribute("vawTrades", null);
session.setAttribute("noOfDays", null);
session.setAttribute("accountNo", null);
session.setAttribute("exchange", null);
session.setAttribute("symbolName", null);
session.setAttribute("trCode", null);
session.setAttribute("status", null);
session.setAttribute("accountsDataDB", null);
EasyMock.replay(session);
EasyMock.replay(context);
MyOrdersAction action = new MyOrdersAction();
action.execute(req, resp, context);
This is the unit test case which does not exit , if i skip this binding ic.bind("TCDB_JNDI", ds);
then it exits normally with a failure, -
Hello!
We moved our weblogic 8.1 installation to a new production machine (which used to be very easy with weblogic 5.1) but of course, it didn't work because of the SSL demo certificates which were tied to the old server name. It dumped the following line on the log and refused to work:
...Certificate chain received from localhost - 127.0.0.1 failed hostname verification check
We changed our demo certificates as stated in the documentation (certgen, keytool...) and now it starts ok but does not work either. Now we are seeing the following expection on the logs:
weblogic.nodemanager.NodeManagerException: [SecureCommandInvoker: Could not create SSL Socket Factory, reason - java.lang.NullPointerException]
at weblogic.nodemanager.client.SecureCommandInvoker.init(SecureCommandInvoker.java:67)
at weblogic.nodemanager.client.CommandInvoker.invoke(CommandInvoker.java:89)
at weblogic.nodemanager.client.NodeManagerClient.executeCommand(NodeManagerClient.java:161)
at weblogic.nodemanager.client.NodeManagerExecuteRequest.execute(NodeManagerRuntime.java:1605)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
No Exception Messages
Any clue or idea?
Thanks in advance!
Bernardo RiveiraI have seen this myself moving domains to a different server. The way I got around it was to set the Hostname Verification for the admin and managed servers to None. This is done via the admin console, SSL tab, Advanced.
-
How to open multiple artboard illustrator file in illustrator. Coz, whenever we open a multiple artboard file, illustrator provide an option to chose one artboard but does not allow opening of all artboards. Somebody may explain it
Doug's got it right. It sounds like you are trying to open a later version file in an earlier version. This will always be handled as opening the PDF portion of the file. Try Googling AI_openMultiPagePDF for a script to open these or Resave from the newer version to the older.
-
Reading message from MQ- works in WSAD (IDE) but does not work outside WSAD
Read from MQ:
Same code works within WASD but does not work outside WSAD.PDL - thanks for the suggestions - here are the results:
A button on the form that executes "this.print();" works fine.
Changing "this" to "event.target" results in the same error.
document.getElementById("PDFObj").Print(); works fine.
However, the reason that I'm using ".postMessage([message])" instead of ".Print()" is because I actually have a toolbar that has save, print, zoom in, zoom out, page up, page down, etc.... I simplified the switch statement in the post above to only include print, but in reality has a case for each of the functions above. The postMessage call is triggering the error, since the catch statement is printing out the error message above. Any idea why this would work with Professional but not Reader. -
When using the "exit" from pekwm's menu, it does not end my Xsession...and gets stuck. Until I know how to get around that, I'm going to be sampling Openbox more.
Welcome to Apple Discussions.
If a program is not responding and you cannot "force quit" then you can launch Activity Monitor in Utilities. Under "my processes" you can choose that program and use the red "Quit process" icon at the upper left. That should do it rather than a restart.
But if many applications aren't responding both Apple and non-Apple there is a problem that should be sorted.
A good start would be to create a new account, name it "test" and see how your apps work in that User acct? (That will tell if your problem is systemwide or limited to your User acct.) This account is just for test, do nothing further with it.
Open System Preferences >> Accounts >> "+" make it an admin account.
Let us know and we'll troubleshoot this further.
-mj
[email protected]
Maybe you are looking for
-
Hi, Can any one tell me how to resolve this issue. "Could not determine the year for TDS Certificate number " Please help Thanks Deepak
-
Microsoft-Windows-Windows Remote Management Error ID 142
In my Windows Server 2008 R2 OS in the Event Viewer there is an error pertains as Microsoft-Windows-Windows Remote Management Error ID 142 states-(WSMan operation CreateShell failed, error code 2150858999).What is this error? And What is the remedy f
-
Printer Care Pack Next Business Day
I purchased the "Printer Care Pack Next Business Day" for the LaserJet 500dn about 1 month ago and when I attempt to register it online it will not allow me to pass the stage of entering the serial and product number. Any help would be appreciated. T
-
I've got a network printer connected to the ethernet port and a usb printer connected to the USB port... WORKS GREAT!!! 2 printers - 1 AEX. However, Apple says that an AEX with firmware 5.5 or above can use a USB hub and connect up to 4 printers via
-
Can QuickTime format a movie to work on both AppleTV and iPhone in 1 file?
Is there a way to convert something in Quicktime that will work on both AppleTV and the iPhone (or anywhere else for that matter)? Or, do I need to convert it in two separate formats and have both of those files in iTunes? Thanks in advance.