Programmatically adding action to button
I have tried to programmatically add javascript to an Acrobat button, as follows (using APToolkitNet):
FieldInfo fi = toolKit.FieldInfo( "ButtonX" ,1 );
fi.MouseUpScript = "app.alert('hello world')"; //OR
fi.JavaScript = "app.alert('hello world')";
I run my code, and this script does get added to my form javascripts. The problem is, they are being added as being a type of Calculation, as follows:
//<AcroForm>
//<ACRO_source>ButtonX:Calculate</ACRO_source>
//<ACRO_script>
/*********** belongs to: AcroForm:ButtonX:Calculate ***********/
app.alert('hello world')
//</ACRO_script>
//</AcroForm>
When it should be (i.e. this is what occurs when you manually add the javascript):
//<AcroForm>
//<ACRO_source>ButtonX:Annot1:MouseUp:Action1</ACRO_source>
//<ACRO_script>
/*********** belongs to: AcroForm:ButtonX:Annot1:MouseUp:Action1 ***********/
app.alert('hello world')
//</ACRO_script>
//</AcroForm>
Can anyone help me???
Thanks
Since Acrobat supports 4 mouse actions, you will have to find out how to differentiate between the "Mouse Enter", "Mouse Down", "Mouse Up", and "Mouse Exit" actions. The vendor should have provided documentation or can provide the information.
Similar Messages
-
Adding actions to buttons...
I created a slide show in flash (I'm very new to Flash). The
slideshow
works great so far. I recently added some buttons to the
slideshow (each in
their own respective layers) and the buttons are Prev, Play,
Stop, Next. I
want to add actions to each of those buttons with the action
script. I want
the Stop button to simply stop the movie whenever you press
the button, the
play button I want to simply play the slideshow if one has
pressed the stop
button (by default my slideshow starts when it loads). The
next and play
buttons are obvious what they will do. I'm wondering how I go
about adding
these actions to each button. I know how to add them to the
buttons but I
just don't know the proper Action Script code. Can anyone
help me out with
this. Can't seem to find a good tutorial on it!
Best Regards,
Chris Jumonville
iMedia Web Design
503.277.3553Nevermind, did it myself.
Best Regards,
Chris Jumonville
iMedia Web Design
503.277.3553
"Chris Jumonville" <[email protected]> wrote in
message
news:ejj8vq$jff$[email protected]..
>I created a slide show in flash (I'm very new to Flash).
The slideshow
>works great so far. I recently added some buttons to the
slideshow (each
>in their own respective layers) and the buttons are Prev,
Play, Stop, Next.
>I want to add actions to each of those buttons with the
action script. I
>want the Stop button to simply stop the movie whenever
you press the
>button, the play button I want to simply play the
slideshow if one has
>pressed the stop button (by default my slideshow starts
when it loads).
>The next and play buttons are obvious what they will do.
I'm wondering how
>I go about adding these actions to each button. I know
how to add them to
>the buttons but I just don't know the proper Action
Script code. Can anyone
>help me out with this. Can't seem to find a good tutorial
on it!
>
> --
> Best Regards,
>
> Chris Jumonville
> iMedia Web Design
> 503.277.3553
> -
Strange bug -- adding one more button OR page causes Form warning to appear
I'm building a simple interactive document in InDesign CS4 on the Mac, to be exported/delivered as a PDF. There are a few text-based buttons on the Master Page that are set to Go To a Text Anchor on Release. There are 4 buttons of these buttons on the page, and each one leads to a different page in the document, and they all work fine. They are all built the same way.
I want to export a PDF that opens cleanly in Reader, meaning no unexpected dialog boxes or warning messages appear. Up until this point, my document opens cleanly in Reader.
However, when I create a FIFTH button (using the exact same method used to create the other buttons), OR I add ANY more pages to my document (which currently stands at 16 pages, but will need to ultimately be upwards of 40), for some reason, opening the PDF in Reader causes Reader to start displaying the large, distracting pink warning message at the top of the page:
"Please fill out the following form. You cannot save data typed into this form. Please print your completed form if you would like a copy for your records."
The fifth button I create (from scratch) causes this message to appear.
Or, if I add another page (using my Master Page, where the buttons are used), this message appears. Even if the fifth button is not created, and I add another page from the Master, this message appears.
If I add a blank new page (without using the Master Page), the message does NOT appear.
So, for some reason, adding ONE more button, or referring to the Master Page in the document ONE more time by adding a 17th (or more) pages, seems to kick InDesign/Acrobat Reader into thinking my document is suddenly a form, and causes Reader to display that obnoxious pink message when opening the document.
I've tried several troubleshooting steps.
- I've ensured my buttons have unique names.
- I've tried creating the fifth button from scratch, and also tried creating it from duplicating one of the existing "good" buttons.
- I've made sure the button has a destination page/Text Anchor to go to.
- I've opened the PDF in Acrobat Pro 9, and gone through all of the page and buttons in the Forms Manager, and there is nothing out of the ordinary in that view.
Why is Reader suddenly thinking my document is a form (that "cannot be edited/saved") when I add one more button, or one more page!? It's bizarre, and quite frustrating.
Thanks for any insights,
RobbieYou can use that same workaround with ID CS4 files. You just have to make the PDF and then go into Acrobat to add the security that doesn't allow editing (Acrobat -> Security -> Encrypt with Password) . That gets rid of the warning about the form. Of course if you actually have a form somewhere in your document, you won't be able to use that......
-
WARNING: Actions on button
Hi
I do not understand why I am getting this warning below
WARNING: Actions on button or MovieClip instances are not supported in ActionScript 3.0.
All scripts on object instances will be ignored.
Can someone help?
mimiYou can still use pretty much any objects that you have ever used before, though that's not saying they haven't changed in some way. In AS3 to manage things like buttons and other interactions the primary code approach involves creating event listeners and event handler functions. Here is a description of how you would approach coding a button, though the same could apply to a movieclip....
Let's say you create a button symbol. Since it is a button, it is already a self animating object that will react to mouse interactions, but only visually at this stage. The first thing you need to do to make it useful code-wise is to assign it a unique instance name. So you drag a copy of it out to the stage from the library, and while it's still selected, you enter that unique instance name for it in the Properties panel... let's say you name it "btn1"
In AS3, to make a button work with code, you need to add an event listener and event handler function for it. You might need to add a few (for different events, like rollover, rollout, clicking it, but for now we'll just say you want to be able to click it to get a web page to open. In the timeline that holds that button, in a separate actions layer that you create, in a frame numbered the same as where that button exists, you would add the event listener:
btn1.addEventListener(MouseEvent.CLICK, btn1Click);
The name of the unique function for processing the clicking of that button is specified at the end of the event listener assignment, so now you just have to write that function out:
function btn1Click(evt:MouseEvent):void {
gotoAndPlay("site_section");
Here's some of what's involved there:
evt:MouseEvent - the event listeners throws an argument automatically which the function must be set up to receive. In this case I have given that argument a variable name of evt, though I could have chosen anything.
:void - this defines the class of the value that the function will return. In this case, the function does not return anything, so "void" is used. If it did return a value, you would see a line containing "return xyz"; in the function (where xyz is not literal, it simply represents the variable or value being returned) and the :void would be rplaced with some other class such as :String, :int, Date, etc....
In AS3, in strict mode, it is necessary to identify the types/classes of the variables being created, which is why you see :String, :MouseEvent, etc... showing up everywhere.
Now, to create another button with a unique function for it, you could just drag another copy of it from the library, give it a unique name, say btn2, copy/paste the code from btn1 and replace "btn1" with "btn2" in that copied code. -
Programmatically adding chart to a report throws exception
programmatically adding chart to a report throws exception "chart condition fields are not valid".
Configuration:
I am using CR4E to create web application, I've added RAS jars (rasapp.jar, rascore.jar, reporttemplate.jar, serialization.jar) to this web application. For designing reports i am using Crystal Reports 2008.
Code:
<%
// Get the previously opened report from the session.
ReportClientDocument reportClientDocument =
(ReportClientDocument)session.getAttribute("ReportClientDocument");
System.out.println(reportClientDocument.getReportDocument().getName());
// Try to get the report's DataDefinition object.
IDataDefinition dataDefinition;
try
dataDefinition = reportClientDocument.getDataDefController().getDataDefinition();
// If the DataDefinition object can not be retrieved, redirect the user to an error page.
catch (Exception e)
System.out.println("With error1");
return;
// Create a new ChartDefinition object and set its type to ChartType.group.
ChartDefinition chartDefinition = new ChartDefinition();
chartDefinition.setChartType(ChartType.group);
Get the conditional field of the report's first group. Set this conditional
field for the ChartDefinition object using the setConditonalFields method. Notice
that the conditional field is first placed in a Fields collection because the
setConditionalFields method takes a Fields object as an argument.
Fields conditionFields = new Fields();
if (!dataDefinition.getGroups().isEmpty())
IField field = dataDefinition.getGroups().getGroup(0).getConditionField();
System.out.println("Condition field name ->" + field.getLongName(Locale.ENGLISH));
conditionFields.addElement(field);
chartDefinition.setConditionFields(conditionFields);
//Get the summary field name from the form on the previous page.
String summaryFieldName = URLDecoder.decode(request.getParameter("summaryField"));
System.out.println("Summary field name ->" + summaryFieldName);
Loop through all of the report's summary fields until the one matching the name
above is found. Set this summary field for the ChartDefinition object using the
setDataFields method. Notice that the summary field is first placed in a Fields
collection because the setDataFields method takes a Fields object as an argument.
Fields dataFields = new Fields();
for (int i = 0; i < dataDefinition.getSummaryFields().size(); i++)
IField summaryField = dataDefinition.getSummaryFields().getField(i);
if (summaryField.getLongName(Locale.ENGLISH).equals(summaryFieldName))
System.out.println("Adding data field ->" + summaryFieldName);
dataFields.addElement(summaryField);
chartDefinition.setDataFields(dataFields);
Create a new ChartObject to represent the chart that will be added. Set the
ChartDefinition property of the ChartObject using the ChartDefinition object created
above.
ChartObject chartObject = new ChartObject();
chartObject.setChartDefinition(chartDefinition);
Get the chart type, chart placement, and chart title strings from the form on the
previous page. If no chart title was chosen, create a generic title.
String chartTypeString = request.getParameter("type");
String chartPlacementString = request.getParameter("placement");
String chartTitle = request.getParameter("title");
System.out.println("chartTypeString ->"+ chartTypeString + "<-chartPlacementString->" + chartPlacementString + "<-chartTitle->"+chartTitle);
if (chartTitle.equals(""))
chartTitle = "untitled";
Create a ChartStyleType object and a AreaSectionKind object based on the
the chartTypeString and chartPlacementString retrieved above. In this example
possible chart types are bar chart and pie chart. Possible chart placements
are header and footer.
ChartStyleType chartStyleType = ChartStyleType.from_string(chartTypeString);
AreaSectionKind chartPlacement = AreaSectionKind.from_string(chartPlacementString);
// Set the chart type, chart placement, and chart title for the chart.
chartObject.getChartStyle().setType(chartStyleType);
chartObject.setChartReportArea(chartPlacement);
chartObject.getChartStyle().getTextOptions().setTitle(chartTitle);
// Set the width, height, and top for the chart.
chartObject.setHeight(5000);
chartObject.setWidth(5000);
chartObject.setTop(1000);
Get a ReportDefController object that can be used to modify the report's definition.
ReportDefController reportDefController;
try
reportDefController = reportClientDocument.getReportDefController();
catch (Exception e)
System.out.println("With Error2");
return;
*Create a Section object that represents the section that will hold the chart.
If the chart placement was set header, get the header section, otherwise, if the
chart placement was set to footer, get the footer section.
Section chartSection = null;
if (chartPlacement.equals(AreaSectionKind.reportHeader))
IArea reportHeaderArea =
reportDefController.getReportDefinition().getReportHeaderArea();
chartSection = (Section)reportHeaderArea.getSections().getSection(0);
else if (chartPlacement.equals(AreaSectionKind.reportFooter))
IArea reportFooterArea =
reportDefController.getReportDefinition().getReportFooterArea();
chartSection = (Section)reportFooterArea.getSections().getSection(0);
Add the chart to the section using the ReportDefController object.
reportDefController.getReportObjectController().add(chartObject, chartSection, 1);
// Save the changes and close the report.
reportClientDocument.save();
reportClientDocument.close();
session.removeAttribute("ReportClientDocument");
%>
Trace:
com.crystaldecisions.sdk.occa.report.lib.ReportDefControllerException: The chart condition fields are not valid.---- Error code:-2147213287 Error code name:invalidChartObject
at com.crystaldecisions.sdk.occa.report.lib.ReportDefControllerException.throwReportDefControllerException(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportObjectController.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportObjectController.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportObjectController.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportObjectController.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportObjectController.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportObjectController.add(Unknown Source)
at org.apache.jsp.AddChart_jsp._jspService(AddChart_jsp.java:230)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:283)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:218)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:393)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595)Please try this code snippet
var cs:ColumnSeries = new ColumnSeries();
cs.dataProvider = dp;
cs.displayName = "Series 2";
cs.yField = "values";
chart.series.push(cs);
OR
var temp:Array = [];
var cs:ColumnSeries = new ColumnSeries();
cs.dataProvider = dp;
cs.displayName = "Series 2";
cs.yField = "values";
temp = chart.series;
temp.add(cs);
chart.series = temp; -
Please help me with some action event buttons
{color:#ff6600}i am trying to figure out how to capture two values from an action event button. i have already tried it 6 times and i cant figure it out.
Its a simple calculator with numbers 1 and 2 and does a multiplication calculation.
Can you help me figure it out it will be really helpful.
{color}
import javax.swing.*;
import java.util.*;
import java.awt.event.*;
public class Calculator implements ActionListener {
JFrame frame;
JPanel contentpane;
JButton one,two;
JTextField field;
JButton mult;
JButton adds;
JButton equals;
JButton go;
public Calculator() {
frame = new JFrame ("Calculator" );
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
contentpane = new JPanel();
contentpane.setBorder(BorderFactory.createEmptyBorder(20,20,40,40));
one = new JButton( Integer.toString(1));
one.setActionCommand(Integer.toString(1));
one.addActionListener(this);
contentpane.add(one);
two = new JButton(Integer.toString(2));
two.setActionCommand(Integer.toString(2));
two.addActionListener(this);
contentpane.add(two);
field = new JTextField(10 );
contentpane.add(field);
go = new JButton("calculate");
go.setActionCommand("go");
go.addActionListener(this);
contentpane.add(go);
mult = new JButton( "*");
mult.setActionCommand("mult");
mult.addActionListener(this);
contentpane.add(mult);
adds = new JButton( "+");
adds.setActionCommand("add");
contentpane.add(adds);
frame.setContentPane(contentpane);
frame.pack();
frame.setVisible(true);
public void actionPerformed (ActionEvent event ) {
String eventn = event.getActionCommand();
String text = field.getText();
String mult ="*";
{color:#800080}if (eventn.equals("1")||eventn.equals("2") ){ \\ *{color:#ff6600}i dont know how to store two different value from an action event{color}*
text+=eventn ;
int num = Integer.parseInt(text);
field.setText(text);
{color}
{color:#800080}if (eventn.equalsIgnoreCase("mult")){
field.setText("");
{color}
{color:#800080}};
{color}
public static void runGui(){
JFrame.setDefaultLookAndFeelDecorated(true);
Calculator r = new Calculator();
public static void main (String[]args){
javax.swing.SwingUtilities.invokeLater(new Runnable(){
public void run(){
runGui();import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class ListenerDemo {
private class DigitListener implements ActionListener {
private int digit;
public DigitListener(int digit) {
this.digit = digit;
public void actionPerformed(ActionEvent evt) {
JOptionPane.showMessageDialog(f, "You pressed " + digit);
private JFrame f = new JFrame();
private JButton button1 = new JButton("1");
private JButton button2 = new JButton("2");
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable(){
public void run() {
new ListenerDemo().go();
void go() {
button1.addActionListener(new DigitListener(1));
button2.addActionListener(new DigitListener(2));
JPanel cp = new JPanel();
cp.add(button1);
cp.add(button2);
f.setContentPane(cp);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.pack();
f.setLocationRelativeTo(null);
f.setVisible(true);
} -
Dynamic actions on button and dynamic column name
Hi!ynam
I want to create a dynamic action on button click in my tabular form.
I have a select list with values of my column names (P7_X_COLUMN) and a text field where users input values for update (P7_X_UVALUE).
My idea is that when they click the button, they update selected column to desired value in all rows.
However, I get the following error:
ORA-06550: line 5, column 5: PL/SQL: ORA-01747: invalid user.table.column, table.column, or column specification ORA-06550: line 4, column 1: PL/SQL: SQL Statement ignored (Go to error)
It seems to me that I have not referenced the column name correctly, I thought it was the same as referencing values. How do I do that?
This is my code:
begin
update "#OWNER#"."IZV_SLOG_DET"
set :P7_X_COLUMN=:P7_X_UVALUE;
end;
Regards,
IvanI got it to work, but the query is too big. Can anyone help me with how to get it to work?
I tried breaking it into more varchar2 strings, but i always get the same error:
Error processing row.
ORA-01461: can bind a LONG value only for insert into a LONG column
declare
l_table_name varchar2(30) := 'IZV_SLOG_DET_POM';
l_sql_stmt varchar2(32762);
begin
l_sql_stmt := 'update ' || l_table_name || ' set ' || :P7_X_COLUMN || ' =''' || :P7_X_UVALUE|| '''' ||
'where'||
'nvl(MSR_PRD_ID,1) = nvl(nvl(''' || :P7_X_MSR_PRD_ID || '''' || ',MSR_PRD_ID),1) and' ||
'nvl(SRC_STM_ID,1) = nvl(nvl(''' || :P7_X_SRC_STM_ID || '''' || ',SRC_STM_ID),1) and' ||
'nvl(OZNAKA_KOMITENTA,1) = nvl(nvl(''' || :P7_X_OZNAKA_KOMITENTA || '''' || ',OZNAKA_KOMITENTA),1) and' ||
'nvl(RSP,1) = nvl(nvl(''' || :P7_X_RSP || '''' || ',RSP),1) and' ||
'nvl(OZNAKA_RETKA,1) = nvl(nvl(''' || :P7_X_OZNAKA_RETKA || '''' || ',OZNAKA_RETKA),1) and' ||
'nvl(OZNAKA_IZVJESCA,1) = nvl(nvl(''' || :P7_X_OZNAKA_IZVJESCA || '''' || ',OZNAKA_IZVJESCA),1) and' ||
'nvl(MBR_KOMITENTA,1) = nvl(nvl(''' || :P7_X_MBR_KOMITENTA || '''' || ',MBR_KOMITENTA),1) and' ||
'nvl(KOMITENT_NEREZ,1) = nvl(nvl(''' || :P7_X_KOMITENT_NEREZ || '''' || ',KOMITENT_NEREZ),1) and' ||
'nvl(ZUPANIJA,1) = nvl(nvl(''' || :P7_X_ZUPANIJA || '''' || ',ZUPANIJA),1) and' ||
'nvl(DRZAVA,1) = nvl(nvl(''' || :P7_X_DRZAVA || '''' || ',DRZAVA),1) and' ||
'nvl(SEKTOR_NEREZIDENTA,1) = nvl(nvl(''' || :P7_X_SEKTOR_NEREZIDENTA || '''' || ',SEKTOR_NEREZIDENTA),1) and' ||
'nvl(VRSTA_POVEZANOSTI,1) = nvl(nvl(''' || :P7_X_VRSTA_POVEZANOSTI || '''' || ',VRSTA_POVEZANOSTI),1) and' ||
'nvl(INSTRUMENT,1) = nvl(nvl(''' || :P7_X_INSTRUMENT || '''' || ',INSTRUMENT),1) and' ||
'nvl(VALUTA,1) = nvl(nvl(''' || :P7_X_VALUTA || '''' || ',VALUTA),1) and' ||
'nvl(OTKAZNI_ROK,1) = nvl(nvl(''' || :P7_X_OTKAZNI_ROK || '''' || ',OTKAZNI_ROK),1) and' ||
'nvl(IZVORNO_DOSPIJECE,1) = nvl(nvl(''' || :P7_X_IZVORNO_DOSPIJECE || '''' || ',IZVORNO_DOSPIJECE),1) and' ||
'nvl(VRSTA_INDEKSACIJE,1) = nvl(nvl(''' || :P7_X_VRSTA_INDEKSACIJE || '''' || ',VRSTA_INDEKSACIJE),1) and' ||
'nvl(VALUTA_INDEKSACIJE,1) = nvl(nvl(''' || :P7_X_VALUTA_INDEKSACIJE || '''' || ',VALUTA_INDEKSACIJE),1) and' ||
'nvl(PORTFELJ,1) = nvl(nvl(''' || :P7_X_PORTFELJ || '''' || ',PORTFELJ),1) and' ||
'nvl(UTRZIVOST_KREDITA,1) = nvl(nvl(''' || :P7_X_UTRZIVOST_KREDITA || '''' || ',UTRZIVOST_KREDITA),1) and' ||
'nvl(ZNACAJKE_KAPITALA,1) = nvl(nvl(''' || :P7_X_ZNACAJKE_KAPITALA || '''' || ',ZNACAJKE_KAPITALA),1) and' ||
'nvl(RIZICNA_SKUPINA,1) = nvl(nvl(''' || :P7_X_RIZICNA_SKUPINA || '''' || ',RIZICNA_SKUPINA),1) and' ||
'nvl(UGRADJENI_DERIVAT,1) = nvl(nvl(''' || :P7_X_UGRADJENI_DERIVAT || '''' || ',UGRADJENI_DERIVAT),1) and' ||
'nvl(ODNOSNA_VARIJABLA,1) = nvl(nvl(''' || :P7_X_ODNOSNA_VARIJABLA || '''' || ',ODNOSNA_VARIJABLA),1) and' ||
'nvl(PREDZNAK,1) = nvl(nvl(''' || :P7_X_PREDZNAK || '''' || ',PREDZNAK),1) and' ||
'nvl(VRSTA_IZNOSA,1) = nvl(nvl(''' || :P7_X_VRSTA_IZNOSA || '''' || ',VRSTA_IZNOSA),1) and' ||
'nvl(KOMITENT_PBR,1) = nvl(nvl(''' || :P7_X_KOMITENT_PBR || '''' || ',KOMITENT_PBR),1) and' ||
'nvl(UDJELI_POVEZ_C,1) = nvl(nvl(''' || :P7_X_UDJELI_POVEZ_C || '''' || ',UDJELI_POVEZ_C),1) and' ||
'nvl(AR_ID,1) = nvl(nvl(''' || :P7_X_AR_ID || '''' || ',AR_ID),1) and' ||
'nvl(AU_ID,1) = nvl(nvl(''' || :P7_X_AU_ID || '''' || ',AU_ID),1) and' ||
'nvl(AR_BUSS_ID,1) = nvl(nvl(''' || :P7_X_AR_BUSS_ID || '''' || ',AR_BUSS_ID),1) and' ||
'nvl(MTI_CCY_TP_ID,1) = nvl(nvl(''' || :P7_X_MTI_CCY_TP_ID || '''' || ',MTI_CCY_TP_ID),1) and' ||
'nvl(REG_NO,1) = nvl(nvl(''' || :P7_X_REG_NO || '''' || ',REG_NO),1) and' ||
'nvl(REG_SFX,1) = nvl(nvl(''' || :P7_X_REG_SFX || '''' || ',REG_SFX),1) and' ||
'nvl(JMBG_ID_NO,1) = nvl(nvl(''' || :P7_X_JMBG_ID_NO || '''' || ',JMBG_ID_NO),1) and' ||
'nvl(IP_ID,1) = nvl(nvl(''' || :P7_X_IP_ID || '''' || ',IP_ID),1) and' ||
'nvl(TAX_ID_NO,1) = nvl(nvl(''' || :P7_X_TAX_ID_NO || '''' || ',TAX_ID_NO),1) and' ||
'nvl(INSTRUMENT_OLD,1) = nvl(nvl(''' || :P7_X_INSTRUMENT_OLD || '''' || ',INSTRUMENT_OLD),1) and' ||
'nvl(PREDZNAK_OLD,1) = nvl(nvl(''' || :P7_X_PREDZNAK_OLD || '''' || ',PREDZNAK_OLD),1) and' ||
'nvl(NAPOMENA,1) = nvl(nvl(''' || :P7_X_NAPOMENA || '''' || ',NAPOMENA),1) and' ||
'nvl(NOVI_POSAO_F,1) = nvl(nvl(''' || :P7_X_NOVI_POSAO_F || '''' || ',NOVI_POSAO_F),1) and' ||
'nvl(LISTA_SUMARNA,1) = nvl(nvl(''' || :P7_X_LISTA_SUMARNA || '''' || ',LISTA_SUMARNA),1) and' ||
'nvl(LISTA_REKAP,1) = nvl(nvl(''' || :P7_X_LISTA_REKAP || '''' || ',LISTA_REKAP),1) and' ||
'nvl(DZS_IDY_CL_ID,1) = nvl(nvl(''' || :P7_X_DZS_IDY_CL_ID || '''' || ',DZS_IDY_CL_ID),1) and' ||
'nvl(HNB_IP_CL_ID,1) = nvl(nvl(''' || :P7_X_HNB_IP_CL_ID || '''' || ',HNB_IP_CL_ID),1) and' ||
'nvl(NO_DYS_OO,1) = nvl(nvl(''' || :P7_X_NO_DYS_OO || '''' || ',NO_DYS_OO),1) and' ||
'nvl(POSTOTAK1,1) = nvl(nvl(''' || :P7_X_POSTOTAK1 || '''' || ',POSTOTAK1),1) and' ||
'nvl(POSTOTAK2,1) = nvl(nvl(''' || :P7_X_POSTOTAK2 || '''' || ',POSTOTAK2),1) and' ||
'nvl(POSTOTAK3,1) = nvl(nvl(''' || :P7_X_POSTOTAK3 || '''' || ',POSTOTAK3),1) and' ||
'nvl(BNK_ID,1) = nvl(nvl(''' || :P7_X_BNK_ID || '''' || ',BNK_ID),1) and'||
'nvl(ID,1) = nvl(nvl(''' || :P7_X_ID || '''' || ',ID),1) and' ||
'nvl(ID_RETKA,1) = nvl(nvl(''' || :P7_X_ID_RETKA || '''' || ',ID_RETKA),1) and' ||
'nvl(DATUM_STANJA,1) = nvl(nvl(''' || :P7_X_DATUM_STANJA || '''' || ',DATUM_STANJA),1) and' ||
'nvl(IZNOS,1) = nvl(nvl(''' || :P7_X_IZNOS || '''' || ',IZNOS),1) and' ||
'nvl(IZNOS_ACTUAL,1) = nvl(nvl(''' || :P7_X_IZNOS_ACTUAL || '''' || ',IZNOS_ACTUAL),1) and' ||
'nvl(ACT_AR_BAL_KN,1) = nvl(nvl(''' || :P7_X_ACT_AR_BAL_KN || '''' || ',ACT_AR_BAL_KN),1) and' ||
'nvl(ACT_AR_BAL,1) = nvl(nvl(''' || :P7_X_ACT_AR_BAL|| '''' || ',ACT_AR_BAL),1) and' ||
'nvl(IZNOS_ACTUAL_OLD,1) = nvl(nvl(''' || :P7_X_IZNOS_ACTUAL_OLD || '''' || ',IZNOS_ACTUAL_OLD),1) and' ||
'nvl(ACT_AR_BAL_KN_OLD,1) = nvl(nvl(''' || :P7_X_ACT_AR_BAL_KN_OLD || '''' || ',ACT_AR_BAL_KN_OLD),1) and' ||
'nvl(ACT_AR_BAL_OLD,1) = nvl(nvl(''' || :P7_X_ACT_AR_BAL_OLD || '''' || ',ACT_AR_BAL_OLD),1) and' ||
'nvl(EXG_RT_CRD_RSK_F,1) = nvl(nvl(''' || :P7_X_EXG_RT_CRD_RSK_F || '''' || ',EXG_RT_CRD_RSK_F),1) ';
execute immediate l_sql_stmt;
end; -
Actions on button or MovieClip instances are not supported in ActionScript 3.0?
I have recently updated my Flash and I seriously regret it as everything seems to of changed. For instance I want to publish a movie i created in Action Script 3.0. In this movie i have buttons which have actions applied to them and everytime i go to publish the site, it brings up the error
'WARNING: Actions on button or MovieClip instances are not supported in ActionScript 3.0. All scripts on object instances will be ignored.'
How do I go about keeping my 3.0 elements but having buttons with actions applied to them. I am a complete beginner with Flash by the way so the answer would need to be completely straight forward.
Thanks!okay, just to simplify this even further and to break it into steps..
1: I Create a new button.
2: I give it an instance name of say 'button'
3: I place the following code in the timeline
button.addEventListener(MouseEvent.CLICK,callFunction);
function callFunction(e:Event):void{
gotoAndPlay();
Now here is where I am stuck. What do you need to add to this to navigate to another scene?
Thanks again!! -
Adding a push button on the report toolbar
adding a save button on the report toolbar, so that after clicking the button, the data fetched on the report will be stored in the application server.
Hi
to automate this process ,best way is to create a Z rport and there u can submit this sap standard report and get its output into an Internal table and then u can write this internal table to application server via following demo code -
this is code for both (download /upload),u can not use CG3y and CG3z as u want to do it as a background job ..
*& Report ZGILL_AS *
REPORT ZGILL_AS message-id rp .
tables: pa0001,pa0002.
select-options s_pernr for pa0001-pernr no intervals MODIF ID XYZ.
parameters: p_dwnld AS CHECKBOX ,
p_upld AS CHECKBOX DEFAULT 'X'.
parameters: P_DSNI(75) TYPE C MODIF ID ABG DEFAULT
'/usr/local/sapdata/amit.dat' LOWER CASE.
data: begin of itab occurs 0,
pernr(8),
sp1(1) value ',',
werks(4),
sp2(1) value ',',
persg(1),
sp3(1) value ',',
persk(2),
end of itab.
data: s_eof(3).
start-of-selection.
if p_upld = 'X'.
OPEN DATASET P_DSNI FOR OUTPUT IN LEGACY TEXT MODE.
PERFORM FETCH_DATA.
STOP.
elseif p_dwnld = 'X'.
OPEN DATASET P_DSNI FOR INPUT IN LEGACY TEXT MODE.
IF SY-SUBRC NE 0.
MESSAGE E016 WITH
'Error opening seq. file, RC:' SY-SUBRC.
EXIT.
ENDIF.
CLEAR S_EOF.
DO.
PERFORM FETCH_file.
IF S_EOF EQ 'YES'. stop. ENDIF.
ENDDO.
endif.
END-OF-SELECTION.
if itab[] is not initial.
perform print_file1 tables itab.
else.
write:/ 'No records exists'.
endif.
*& Form FETCH_DATA
text
--> p1 text
<-- p2 text
FORM FETCH_DATA .
SELECT * FROM PA0001 WHERE PERNR IN S_PERNR.
MOVE-CORRESPONDING PA0001 TO ITAB.
TRANSFER ITAB TO P_DSNI.
APPEND ITAB.
ENDSELECT.
CLOSE DATASET P_DSNI.
ENDFORM. " FETCH_DATA
*& Form FETCH_file
text
--> p1 text
<-- p2 text
FORM FETCH_file .
READ DATASET P_DSNI INTO itab.
append itab.
clear itab.
IF SY-SUBRC NE 0.
S_EOF = 'YES'. EXIT.
ENDIF.
ENDFORM. " FETCH_file
*& Form print_file1
text
-->P_ITAB text
FORM print_file1 tables P_ITAB structure itab .
write:/2 'EmpNo',
14 'Personnel Area',
34 'Emp Group',
47 'Emp SubGroup'.
skip 1.
loop at p_itab.
write:2 p_itab-pernr,
14 p_itab-werks,
34 p_itab-persg,
47 p_itab-persk.
skip 1.
endloop.
ENDFORM. " print_file1
<b>Reward if usefull</b> -
MS CRM 2015 Adding Custom RIbbon button in dashboard and Changing Colors
Hi,
I am Looking for customization in MS Dynamics CRM 2015 and want to Add Custom Ribbon button in dashboard and Changing Colors of that ribbon using customization.xml i am new to crm 2015 and only know how to import export solutions.
Regards
IrfanHello Irfan,
For adding a custom button please refer this blog
https://community.dynamics.com/crm/b/aeonnexuscrm/archive/2014/10/21/ms-crm-2013-adding-custom-ribbon-button-in-dashboard.aspx
And for changing colors in Chart
https://crmchartguy.wordpress.com/2012/08/23/palette-custom-colors-in-charts/
Hope this helps!
Regards, Abhishek Bakshi If you find this post helpful then please Vote as Helpful and Mark As Answer. Check my blog on https://mydynamicscrmblog.wordpress.com/ -
Photoshop Action Play Button Inactive
The Actions Play Button has suddenly become inactive, i.e. regardless of which Action I now select the Play Button remains unclickable. A circle with bar appears when I hover over the Play Button.
This happened at some point while I was editing an Image in CS3 (Windows XP SP2). I had run one (of many Actions) I have successfully. When I came back to it (or any other Action) a short time later none of my actions could be invoked. I have tried several different images, I am sure I have highlighted the background layer when I try any of the Actions. I have restarted the Photoshop, and I have rebooted my computer. I have done several web searches and seen a few other posts about this problem, but so far have been unable to find a solution.
Thanks in advance,
Kenhiya!
this issue might be worth checking up on if video is playing (and you can hear it) but the audio isn't:
iTunes for Windows: Audio files do not play in iTunes 5 or 6
love, b -
How to programmatically click on cross button X c#
i searched google lot to know how can i programmatically click on cross button X using c#. i got the below code which is used for different purpose.
private void Form1_FormClosing(object sender, FormClosingEventArgs e) {
if (string.Equals((sender as Button).Name, @"CloseButton"))
// Do something proper to CloseButton.
else
// Then assume that X has been clicked and act accordingly.
so anyone can tell me How to programmatically click on cross button for closing form. thanksthis is the code which i was looking for to close any sdi window programmatically.
Question
Vote as helpful
0
Vote
Hi MM2,
After I tested all of the following WM_XXX messages, I found one that works.
Code Snippet
public partial class Form1 : Form
private int WM_IME_NOTIFY = 0x0282;
private int WM_DESTROY = 0x0002;
private int WM_NCDESTROY = 0x0082;
private int WM_CLOSE = 0x0010;
private int IMN_CLOSESTATUSWINDOW = 0x0001;
private int WM_KILLFOCUS = 0x0008;
private int WM_COMMAND = 0x0011;
[DllImport("user32.dll", SetLastError = true)]
static extern IntPtr FindWindow(string lpClassName, string lpWindowName);
[DllImport("user32.dll", CharSet = CharSet.Auto)]
private static extern int SendMessage(IntPtr hwnd, int wMsg, int wParam, int lParam);
private void closeYesNoMBButton_Click(object sender, EventArgs e)
IntPtr handle = FindWindow(null, "YesNoMessageBox");
SendMessage(handle, WM_KILLFOCUS, 0, 0);
SendMessage(handle, WM_IME_NOTIFY, IMN_CLOSESTATUSWINDOW, 0);
SendMessage(handle, WM_COMMAND, 0, 0);
SendMessage(handle, WM_DESTROY, 0, 0);
SendMessage(handle, WM_NCDESTROY, 0, 0); -
Adding a Glossary button which doesnt move the timeline on !
I'm using Captivate 3. On each page there is a
backwards/forwards button. On this one module we've now added a
'Glossary button'. If the user clicks this it opens up a external
PDF file in a seperate window. That works fine.
Say they are at the end of a page , the page is paused as its
waiting for them to click Back/Forward or Menu.
However if they click the Glossary button this moves the
timeline forward as its a kind of 'continue' which is frustrating
as it then moves to the next page. I just want them to be able to
click Glossary as many times as they want and the program doesnt
move on a page.
Has anyone come across this before ? Just want a button which
doesnt seem to move on ! Its not set to continue at all. Just set
to open an external file
RegardsHello P_SJ,
The way I would tackle this would be to create the button in
Adobe Flash (including the link to the PDF document) and then
import this into Captivate as an animation. The reason for me
suggesting this is because with Images and Animations you can make
the object persist for the entire project (Options tab > Display
for > rest of project).
If you don't need the button to persist then you could just
disable the Pause after option (Options tab) in the Button dialog
and set the On success menu option to Open URL or file.
I guess that even if you did need the button to persist you
could just copy the button and paste this onto all the relevant
slides. That might work as well.
HTH
Regards - Mark -
"Jump To" action on button not working
First, let me say that I have read a ton of messages on this
topic before posting this. Unfortuantely I have tried for over 5
hours to resolve this but no success. What is particularly strange
is the fact that this project file was published and working for a
few weeks but now is no longer acting correctly regarding the "jump
to slide" action for buttons.
I have built a project of about 30 slides. There are 4 quiz
questions, with scoring, that are programmed into the project. If
the user gets a passing score, their next slide is a 'success' page
and they continue on. However, if they do not pass (all 4 questions
must be correct) they are taken to a "fail" page that has 2 buttons
- 1 button is to go BACK to a previous slide where major content
is; the second button takes them BACK to the very first question
slide.
When I select the "jump to slide" choice from the "on
success" pull-down menu, the buttons do not work. When I select
another action choices, such as "open URL" or something else, they
do work. I have selected the "allow backward movement" choice from
the quiz manager which I have read in other posts saying that may
need to be selected. I have also checked my quiz scoring logic
making sure that if they are passing the quiz, they end up on a
different slide than if they fail the quiz.
I have also tried making a completely new movie with a slide
that has the "jump to slide" on a button and it does not work. I
have tried copying/pasting slides from one project file into
another but no go.
Really stuck bad and cannot afford any more time to
troubleshoot. I'd rather not have to remove the quiz and dependent
branching but may have to.
Is there an Adobe Support person I can send this project file
to for review?
Thanks in advance!!Let me fist say - "I feel your pain". I too have been going
though this for the past 6 hours with a peer and when requiring
100% pass to continue it would not go back. Here is what should
work for you that yes, Adobe has not covered well in their
documentation:
Go to Edit Question-->Edit Quiz-->Reporting--> Have
100% or more of total score to continue.
Then Quiz--->Quiz/Required--> Change from "Pass
Required - the user must pass this quiz to continue" to "Required -
the user take this quiz to continue"
And Quiz/Settings--> Allow backward movement checked
Then Options-->If Failing Grade--->Jump to slide/Slide
This should work for you. What I found out was that if you
have Pass Required instead of Required along with Allow backward
movement not together it hangs at the score results. If you have it
set for Pass Required you don't even get past the last Question
Slide.
Welcome to the world of Captivate Quirks. Let me know if this
helps - It works for us. -
Programmatically Added Web Part Issues - Powershell
Hello!
I have been doing quite a bit of research on this for the last few days but so far to no avail. What I am trying to do is use a powershell script to create a Content Editor Web Part on a basic sharepoint site created using the Team Site template.
The issue I'm running into is when I use the script I have to add a new web part to the "wpz" zone. The webpart gets created properly and exists in the webparts collection however it does not show up on the page. I can bind to the webpart through
powershell and can see that the visible property is set to true while the hidden property is false. The webpart is not closed it simply doesn't show up.
When I add the webpart to another zone it shows up properly however as soon as you edit the page the webpart disappears. However this only happens while the page is in edit mode. As soon as you save the page the programmatically added webpart immediately
shows back up in the zone it's supposed to be in.
I was wondering if anyone else had ever experienced this specific issue and if there is anything I can do to fix it.
The environment is a development box running Microsoft Server 2012 and is hosting Sharepoint 2013.
Thanks!Hello Patrick,
Thanks for your response. The script I am using is in the following code block:
$SiteUrl = "http://maddevsp01.btdev.net/my/personal/14736"
$WebUrl = "http://maddevsp01.btdev.net/my/personal/14736"
function main() {
[void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
$OpenWeb = Get-SPWeb $WebUrl
$OpenSite = Get-SPSite $SiteUrl
$file = $OpenWeb.GetFile("$WebURL/SitePages/Home.aspx")
$WebPartManager = $file.GetLimitedWebPartManager([System.Web.UI.WebControls.WebParts.PersonalizationScope]::Shared)
Add-ContentEditorWebPart "$WebURL" "$WebURL/SitePages/Home.aspx" "wpz" 12 "Test" "Test webpart"
$OpenWeb.Dispose()
function Add-ContentEditorWebPart($SiteURL, $pageUrl, $webpartzone, $index, $title, $content)
$site = new-object Microsoft.SharePoint.SPSite($SiteURL)
$web=$site.OpenWeb()
$webpartmanager = $web.GetLimitedWebPartManager($pageUrl, [System.Web.UI.WebControls.WebParts.PersonalizationScope]::Shared)
$webpart = new-object Microsoft.SharePoint.WebPartPages.ContentEditorWebPart
$webpart.ChromeType = [System.Web.UI.WebControls.WebParts.PartChromeType]::Default;
$webpart.Title = $title
$docXml = New-Object System.Xml.XmlDocument
$contentXml = $docXml.CreateElement("Content");
$contentXml.set_InnerText($content);
$docXml.AppendChild($contentXml);
$webpart.Content = $contentXml;
$webpartmanager.AddWebPart($webpart, $webpartzone, $index);
$web.Close()
$site.Close()
function Get-SPSite([string]$url) {
New-Object Microsoft.SharePoint.SPSite($url)
function Get-SPWeb([string]$url) {
$SPSite = Get-SPSite $url
return $SPSite.OpenWeb()
$SPSite.Dispose()
main
I was investigating further after posting yesterday and used powershell to bind to a webpart created by the script and a webpart I created using the sharepoint interface. Then I exported all the properties and their values to two different text files and
used winmerge to compare the differences to see if there was a setting I was missing in the script or something akin to that. However when I did the comparison the only differences between the two were the following values: Title, Description, PartOrder, ID,
StorageKey, EffectiveTitle, DisplayTitle, ZoneIndex, ClientID, and UniqueID. All of which you would expect to be different. All other settings are exactly the same on both webparts.
I am at a complete loss as to what this issue might be.
Kindest Regards,
-Zach
Maybe you are looking for
-
Purchase requisition with reference to blocked sales order
Hello, we are creating purchase requisitions (PR) manually with reference to a sales order (account assignment Z). When this sales order is blocked, we still can issue the purchase requistion. What can we do to avoid this? I think in 2 solutions: - u
-
Does anyone know what causes error message 1020023?
THe message is Multiple reports per retrieval are not supported. Thanks
-
Hi, I have very recently started to use RoboHelp HTML 8 and also have Server 8. I am currently creating some test projects so I am able to provide a feel for what the tool can do etc. I have managed to publish a project to the server, however I would
-
Source system settings DB Connect
trying to change the IP settings for source system get message :Source system default settings are maximun values; input adjusted.. Source system is DB connect, any idea how can change settings? It is correctly in BW : sbiw and spro set to correct le
-
Hi Gurus' Where can we find the options "Before Aggregation" and "After Aggregation"?What is the basic use of these aggregations?Why we should not use the option called Before Aggregation in a Multiprovider? Could any one please let me know the abov