Is it possible to allocate a SAS script or macro to a Toolbar button in Base SAS? ie can you 'dm' a macro or sas script?
Certainly. Here is one way:
Go to Tools->Customize.
Select the Customize Tab
Create a new blank button by clicking the "Add Tool" (left most button, right above the word "command"
Select an icon for the new button using the "change icon" button (otherwise it will be blank and won't show up in the toolbar)
To have the button submit a compiled macro, type this in the command field (substituting your macro name of course):
%nameofmacro;run;
To have the button submit an external sas file, you would put something like this in the command field instead:
%include "C:\path-to-file\name-of-program.sas";run;
Put whatever you want in the help text and tip text fields
Click OK then save
Related
My form, which is called "Production Info", has a button on it that prints only the current record when clicked. I have added to its Onclick macro so that as well as printing when clicked, it also opens a second form and prints that as well. However, I am still getting two separate print dialogue boxes. Is there a way to print them both from the same print dialogue box so that the reports print together (duplex print) on the same paper instead of printing separately on different pages?
Also, I know it is not common practice to print forms, but making the "Production Info" form into a report isn't an option because it has a combo box that is essential to its' functionality. I tried making it a report before, but reports don't support interactive controls as far as I understand.
No, there is no such option.
You could print to two PDF files, then use a PDF tool to merge these into one PDF-file, and finally print this.
I would like my HTML page to have a text field where the user can enter the path to his R script and next to it I would like to have a button that actually executes the script. I have not seen any similar examples. How would I go about doing this?
I want to create Upload document in my module. I am creating Upload process using Binary type field. It is showing three buttons (select, save as, clear). Those three buttons are executing same process (upload documents only). "clear" buttons should be clear Field. What do i do?
python:
'file_upload': fields.binary('Documents')
xml:
<field name="file_upload"/>
Screenshot:
These three button are doing only upload process.
I want it are doing separate process.
can anyone help me.
Thanks
Try to move on to the 'Save As' Button by pressing TAB. Then press ENTER.
It seem's that the buttons are doing their jobs correctly, but the 'Save As' Button is not touchable for your mouse pointer.
We have found that there is an unvisible element that obviously shall overlaying the 'Select' Button only, but it covers the 'Save As' Button as well. So you are always clicking on this unvisible tag.
I have a graphical interface in jar file. There is a text box in there and a button in the window. I manually enter the text into it and then click the button to get the required output.
Now I want to make this thing automatic using a shell script. I wish to pass my input file using redirection. The shell script should open the jar file copy the text in the text box and click the button automatically so that I get the result instantaneously. Could anyone suggest something?
I don't think there's a out of the box solution for this, what I can think about is :
Create a simple java class which is the launcher of your GUI java app and to perform operations like typing and button click like
Using java Robot class. Refer this post or
Using a GUI testing utility like fest to do those user operations automatically
I'm working on complicated system, which allows some values in grid to be calculated by formulas.
Right now I have textbox control above grid.
It works in this way:
When you start editing inside in-place editor and first symbol is '=' - focus is moved to that textbox control above.
At this moment grid is made readonly, and when user clicks on grid cells - coordinates of the clicked cell are passed to formula editor, so it can add links to formula. When you press Enter or Esc in text editor - formula is being written to underlying dataset and grid is made editable back.
The goal:
I want this too look more like Excel grid. Don't like focus to jump somewhere outside.
Is it possible to keep editor open and at the same time allow user to click anywhere on grid? So, all formula editing will be performed inside inplace editor?
Right now, there's no event to disallow closing editor. If I use 'ValidateEditor' event - it doesn't even allow to use scrollbars.
Is there a way to keep editor open and leave navigation working?
Seems I have found way round that myself.
I handle ValidatingEditorEvent, and if edit value starts with '=' I set boolean flag in my control. Also, I remember text before and after cursor position, and cell coordinates (FocusedRowHandle, FocusedColumn).
When I receive Click event, I get clicked cell coordinates and if boolean flag is set - I focus previous cell, activate editor and add what I need to inpalce editor.
Seems to work fine.