Selecting ConstrainProportions for scaling
Hi forum,
Is it possible to select the Constrain proportions for scaling link button in Control panel, using script.
Could forum help on this request.
regrds,
@ chand.
I see....
well.. first of all, you can't manipulate the interface from scripting, with the exception of "clicking" a menu.
second, it's usually a bad idea to try to emulate using scripting the exact things you do manually form the interface. You miss out on most of the power of scripting, and using things like: app.select(), app.copy etc comes with a large performance penalty.
using scripting you can access an object (or even a lot of objects) directly, without needing to select it before, and you can manipulate them in any way you want.
for your example, using a fixed width of 120mm:
app.selection[0].resize(CoordinateSpaces.INNER_COORDINATES,AnchorPoint.TOP_CENTER_ANCHOR,ResizeMethods.REPLACING_CURRENT_DIMENSIONS_WITH,[(new UnitValue('120mm')).as('pt'),ResizeConstraints.KEEP_CURRENT_PROPORTIONS])
also, remember that a page does not have a "width" property (weird, i know), it has a bounds property in the format [y1, x1, y2, x2]. so:
width=myPage.bounds[3]-myPage.bounds[1]
for the margins you can use http://jongware.mit.edu/idcs5/pc_MarginPreference.html
I know for now it looks daunting, but keep with it, and as you start to get more familiar with the DOM and JavaScript in general it will start to make more sense, and you will discover how easy and incredibly powerful scripting can be.
Best of luck,
Vlad
Similar Messages
-
How to select measurements for scaling
How i can select millimeters or other measurements for scaling (PS CC 64bit)?
p.s. previously did it with the right mouse button.
Thanks!Thanks, SRiegel!
When object is selected ruler are not active.
When i change ruler units there are not change top menus box units.
Ah, you mean that dialog? That not stable bu much better! -
Error while selecting entity for composantEO
Hi,
Briefly, I do an example of displaying a list of components (and already it works properly), but when I added a link to the removal of components I have encountered an error
Voila details
function code delete
public void deleteComposantMethod(String action,String param)
System.out.println("Now we are inside deleteComposantMethod");
System.out.println("we search composant with numcomp : "+param);
ComposantVOImpl inst=getComposantVO1();
Row row[]=inst.getAllRowsInRange();
for(int i=0;i<row.length;i++)
ComposantVORowImpl rowi=(ComposantVORowImpl)row;
System.out.println("checking the composant ===> "+rowi.getNumcomp());
if(param.equals(rowi.getNumcomp().toString()))
try{
rowi.remove();
getOADBTransaction().commit();
System.out.println("Deleting succes");
catch(Exception ex)
System.out.println("error : \n"+ex.getMessage());
return;
in the browser page component disapru it seems that it works correctly, but nothing changes at data base and voila the error message I get from embedder OC4J server log
Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = oracle.jbo.DMLException: JBO-26080: Error while selecting entity for ComposantEO
thanks
Please note: although no board code and smiley buttons are shown, they are still usable.
thanksHi,
for those who have encountered the same problem as me, you should check that the table name sql query is of the form Name_Schema.Name_Table.
For this right click on the entity in the workspace> edit entity> Database Objects> Schema Objects and add the schema name before table name( Name_Schema.Name_Table).
thanks, -
How to define our own selection screen for logical database in abap-hr?
Hi Friends,
Can u please help me
How to define your own selection screens for logical database.
we use to do like(goto->attributes-HRReportcatagerious ).but How to desin using customer table like t599c, t599f and how to add to my logical database?
Thanks in advance
charancheck out this online help
http://help.sap.com/saphelp_erp2004/helpdata/en/9f/dba65c35c111d1829f0000e829fbfe/frameset.htm
Regards
Raja -
While selecting Frame for Table in Smartform
hi
While i am selecting Frame for Table in Smartform , it displaying very Bold frame.
wat is the reason,
guide mehi,
do this steps,
->first in the shading of the table select white color
->provide the saturation as 100
->select the pattern and select any one of the pattern
->and then check the output
you will get the required do this in the same fashion i explained
Thanks,
Nethaji. -
Need Different Selection screen for different Queries in a Workbook
Hi,
I have created a workbook with Multiple tabs in BI 7.0. Each Tab has different Queries and each query has different Selection screens (Variable Selections).
When i open the workbook and refresh it, the selection screen is appearing only for one query. All the queries are refreshed by this single selection screen, though each query has different Variable selections. What i need is a seperate selection screen i.e seperate Variable selection appearing for each queries, when i refresh each one of them.
Is it possible to do this? If anybody has tried this, help me in solving this issue. Thanks for ur time.
Regards,
MuraliMurali,
If you un-check the 'Display Duplicate Variables Only Once' this WILL solve your problem.
When you Refresh, you should be presented with a single variable selection dialog box, but it should contain an area for each Query (DataProvider) that is embedded in the Workbook.
This is the case if the queries are all on the same tab, or on different tabs.
However, if you have multiple tabs each with a query on it, each query must have it's own DataProvider. If all queries are based on the same DataProvider, it will not work as the Workbook only 'sees' one Query for which it needs variable input.
If you REALLY want multiple variable selection dialog boxes, then maybe the best way to do this is to have the queries in separate Workbooks.
If you don't want the User to have to open 5 queries manually, you could use a Macro in each Workbook that runs on opening, to open the next Workbook in the sequence.
I hope this makes sense!
Regards
Steve -
I downloaded the OEHR Sample Objects application and followed the steps in Oracle® Application Express Advanced Tutorials
Release 3.2.
The parameters and report seem to be working correctly except when I enter "all" for department or manager I get no matching hits.
What's the most efficient way to retrieve "all" if the users selects all for dept and mgr - thus we'd want to return all records in the table.
Region snipprt
Enter Search
Search Employee
Dept
- ALL -
Administration
Marketing
Purchasing
Human Resources
Shipping
IT
Public Relations
Sales
Executive
Finance
Accounting
Treasury
Corporate Tax
Control And Credit
Shareholder Services
Benefits
Manufacturing
Construction
Contracting
Operations
IT Support
NOC
IT Helpdesk
Government Sales
Retail Sales
Recruiting
Payroll
Mgr
- ALL -
Steven King
Neena Kochhar
Lex De Haan
Alexander Hunold
Nancy Greenberg
Den Raphaely
Matthew Weiss
Adam Fripp
Payam Kaufling
Shanta Vollman
Kevin Mourgos
John Russell
Karen Partners
Alberto Errazuriz
Gerald Cambrault
Eleni Zlotkey
Michael Hartstein
Shelley Higgins
The following is the sql that was provided as part of the turitoral.
SELECT
"OEHR_EMPLOYEES"."EMPLOYEE_ID" "EMPLOYEE_ID",
"OEHR_EMPLOYEES"."FIRST_NAME" "FIRST_NAME",
"OEHR_EMPLOYEES"."LAST_NAME" "LAST_NAME",
"OEHR_EMPLOYEES"."EMAIL" "EMAIL",
"OEHR_EMPLOYEES"."PHONE_NUMBER" "PHONE_NUMBER",
"OEHR_EMPLOYEES"."HIRE_DATE" "HIRE_DATE",
"OEHR_EMPLOYEES"."JOB_ID" "JOB_ID",
"OEHR_EMPLOYEES"."SALARY" "SALARY",
"OEHR_EMPLOYEES"."COMMISSION_PCT" "COMMISSION_PCT",
"OEHR_EMPLOYEES"."MANAGER_ID" "MANAGER_ID",
"OEHR_EMPLOYEES"."DEPARTMENT_ID" "DEPARTMENT_ID"
FROM
"#OWNER#"."OEHR_EMPLOYEES" "OEHR_EMPLOYEES"
WHERE
(lower(first_name) like '%' || lower(:P1_NAME) || '%' OR
lower(last_name) like '%' || lower(:P1_NAME) || '%')
AND department_id = decode(:P1_DEPT,'%null%',department_id,:P1_DEPT)
AND manager_id = decode(:P1_MGR,'%null%',manager_id,:P1_MGR)Hi,
Use this..
SELECT
"OEHR_EMPLOYEES"."EMPLOYEE_ID" "EMPLOYEE_ID",
"OEHR_EMPLOYEES"."FIRST_NAME" "FIRST_NAME",
"OEHR_EMPLOYEES"."LAST_NAME" "LAST_NAME",
"OEHR_EMPLOYEES"."EMAIL" "EMAIL",
"OEHR_EMPLOYEES"."PHONE_NUMBER" "PHONE_NUMBER",
"OEHR_EMPLOYEES"."HIRE_DATE" "HIRE_DATE",
"OEHR_EMPLOYEES"."JOB_ID" "JOB_ID",
"OEHR_EMPLOYEES"."SALARY" "SALARY",
"OEHR_EMPLOYEES"."COMMISSION_PCT" "COMMISSION_PCT",
"OEHR_EMPLOYEES"."MANAGER_ID" "MANAGER_ID",
"OEHR_EMPLOYEES"."DEPARTMENT_ID" "DEPARTMENT_ID"
FROM
"#OWNER#"."OEHR_EMPLOYEES" "OEHR_EMPLOYEES"
WHERE
(:P1_NAME IS NULL OR
(:P1_NAME IS NOT NULL AND
(lower(first_name) like '%' || lower(:P1_NAME) || '%') OR
(lower(last_name) like '%' || lower(:P1_NAME) || '%')
) AND
(:P1_DEPT IS NULL OR department_id = :P1_DEPT) AND
(:P1_MGR IS NULL OR manager_id = :P1_MGR) -
Open qty errin Selection list For Ref Doc. screen while converting to order
Hi SAP Gurus,
For one of my materials, the open quantity is not updating in the Selection list For Ref Doc. screen while converting to sales order.
Can you please help me?
Thanks,
KetanHi Senthilkumar,
I really appreciate for your kind Hint of SEL ID.
I created and assigned new 'Sel Priority' to the SEL ID same as for Routing.
Now while converting Planned order to Production order system is asking for Reference operation set as there is no such need of Routing as I already mentioned in previous post.
Regards, -
Using (Select All) for report parameter
Hi there,
I am Looking for assistance in making the the (Select All) option work for a particular report. The parameter is for product families (which there are about 47 unique results for). The report is also influenced by two other parameters, one being a date type
i.e 'MTD' 'YTD' 'MAT'. When a long date type such as MAT is selected, selecting all families causes the report to get stuck in an endless loop.
I've tried creating my own <Select All'> item in the parameter dataset, then I have the opposite issue, the <Select All> selection works perfectly but when I try and tick two or more product families I recieve the following error:
"An expressions of non-boolean type specified in a context where a condition is expected, near ',' "
Parameter Dataset:
SELECT '<Select All>' AS family_description, '<Select All>' AS family_code
UNION ALL
SELECT DISTINCT family_description, family_code
FROM dim_item AS item
ORDER BY family_description
Snippet From Main Report Dataset:
Where
sales.oe_branch_code IN (@Branch)
And
sales.order_status <> 'X' and sales.line_status <> 'X'
AND (item.family_code IN (@Family) OR @Family = '<Select All>')
Any help is appreciated
Thanks Kindly
SQL NoviceHi KCBA,
I have check the query you have provided the issue cause by the query "
AND (item.family_code
IN (@Family)
OR @Family =
'<Select All>')" you are using which is incorrect.
If the parameter @Family have set as "Allow multiple values" then you don't need to add new label "Select All" for the multiple value parameter already have this section, if the parameter @Family is not the multiple values
parameter and you want to select all the values or just select one, you can modify the query as below which will works fine:
"AND (item.family_code =
(@Family) OR
@Family = '<Select All>'
If you are using the stored procedure and have issue about add multiple value parameter in the where clause, you are take reference to below similar case about how to create an function to make it work:
Passing multi-value parameter in stored procedure ssrs
If I have some misunderstanding, please try to provide more details information about the relationship of all the parameters (Cascading or not ), current result you have got and expect result you want(Snapshot).
Any problem, please feel free to ask.
Regards,
Vicky Liu
Vicky Liu
TechNet Community Support -
Any ideas on which data element to be used for select-options for timestamp on the screen so that a user is able to f4 help too.
i am using data element 'tzntstmps' but i am not getting f4 help for it.Hello Trivenn
I do not think it makes sense to search for any other timestamp data element which might be part of a search help.
TZNTSTMPS = UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
How could such a search help look like? A calendar control combined with some kind of "time control"?
You may facilitate the entry of time stamps in such a way that if the user enters only a date in the LOW field (e.g. 20080422 without time) you change it AT SELECTION-SCREEN (PBO of your selection screen to 20080422000000).
Correspondingly, you change a date value (e.g. 20080422) at the HIGH field into 20080422235959).
If, however, the user enters already a complete timestamp you do not change anything.
Regards
Uwe -
Hi all,
How can I define select-options for a method in a global class.
And how can I pass these select-options from a report.
Thanks & Regards
EshwarHi all,
How can I define select-options for a method in a global class.
And how can I pass these select-options from a report.
Thanks & Regards
Eshwar -
Multiple select options for an input field
Hi All,
We have a requirement where in we need to provide multiple select options for an input field in a BSP application and get output relevant to all the given inputs(do not require range).
Please do let me know how to solve this.
Thanks & Regards,
Lavanya .Hi,
The requirement is : Suppose there is a input field PLANT.
If we give input for plant it gives related output.
Now if it is required to give 5 or 6 inputs..like plant1,plant2...plant6 and get the output related to all 6 inputs.
(Like we implement in ABAP)
Please do let me know how can this be implemented in BSP.
Thanks & Regards,
Lavanya. -
Select-options for date field.
Hi all,
i need to give select options for Date field.How can i give that.
Thanks & Regards
Ravi.Hi Ravi,
Use the Component WDR_SELECT_OPTIONS to include select options in Web Dynpro ABAP. Follow these steps:
1. In your Component , "Used Componet" tab add Component WDR_SELECT_OPTIONS . Component Use can be any name that you want to give, eg SELECT_OPTIONS
2. Go to the View where you want to include the Date Select Options. I am assuming that you already have an Attribute of Type DATS in your context.
3. View: Properties Tab:Create Controller Usage and select
SELECT_OPTIONS WDR_SELECT_OPTIONS
SELECT_OPTIONS WDR_SELECT_OPTIONS INTERFACECONTROLLER
4. View Layout Tab:Include a View Container. In this view container we will show the Date Select Options.
5. View Attributes Tab: Create Following two attributes:
M_HANDLER type IF_WD_SELECT_OPTIONS
M_WD_SELECT_OPTIONS type IWCI_WDR_SELECT_OPTIONS
6: View Methods Tab: Create a method eg CREATE_SELECTION_SCREEN. Call this method in the WDDOINIT of the view.
7:CREATE_SELECTION_SCREEN: Write following Code:
* Data Declaration
data:
lt_range_table TYPE REF TO DATA.
data:
lr_componentcontroller TYPE REF TO IG_COMPONENTCONTROLLER,
lr_componentusage TYPE REF TO IF_WD_COMPONENT_USAGE.
* Execution
* Create Used Component
lr_componentusage = wd_this->wd_cpuse_select_options( ).
if LR_COMPONENTUSAGE->HAS_ACTIVE_COMPONENT( ) is initial.
lr_componentusage->create_component( ).
endif.
* Get pointer to interface controller of select options
wd_this->M_WD_SELECT_OPTIONS = wd_this->wd_cpifc_select_options( ).
* initialize selction screen
wd_this->M_HANDLER = wd_this->M_WD_SELECT_OPTIONS->init_selection_screen( ).
* Create Range Table for: Date
CALL METHOD WD_THIS->M_HANDLER->CREATE_RANGE_TABLE
EXPORTING
I_TYPENAME = 'DATS'
RECEIVING
RT_RANGE_TABLE = lt_range_table.
* Add Selection Field for: Date
CALL METHOD WD_THIS->M_HANDLER->ADD_SELECTION_FIELD
EXPORTING
I_ID = '<name of date attribute in the context>'
* I_WITHIN_BLOCK = MC_ID_MAIN_BLOCK
* I_DESCRIPTION =
* I_IS_AUTO_DESCRIPTION = ABAP_TRUE
IT_RESULT = lt_range_table
* I_OBLIGATORY = ABAP_FALSE
* I_COMPLEX_RESTRICTIONS =
* I_USE_COMPLEX_RESTRICTION = ABAP_FALSE
* I_NO_COMPLEX_RESTRICTIONS = ABAP_FALSE
* I_VALUE_HELP_TYPE = IF_WD_VALUE_HELP_HANDLER=>CO_PREFIX_NONE
* I_VALUE_HELP_ID =
* I_VALUE_HELP_MODE =
* I_VALUE_HELP_STRUCTURE =
* I_VALUE_HELP_STRUCTURE_FIELD =
* I_HELP_REQUEST_HANDLER =
* I_LOWER_CASE =
* I_MEMORY_ID =
* I_NO_EXTENSION = ABAP_FALSE
* I_NO_INTERVALS = ABAP_FALSE
* I_AS_CHECKBOX = ABAP_FALSE
* I_AS_DROPDOWN = ABAP_FALSE
* IT_VALUE_SET =
* I_READ_ONLY = ABAP_FALSE
* I_DONT_CARE_VALUE =
* I_EXPLANATION =
I_TOOLTIP = 'Select Date'.
8: To Fetch Data entered in the selection field, write following code on action of button click:
data:
lt_date type REF TO DATA.
FIELD-SYMBOLS:
<fs_date> TYPE table.
* retrieve Date from Select Options
CALL METHOD WD_THIS->M_HANDLER->GET_RANGE_TABLE_OF_SEL_FIELD
EXPORTING
I_ID = '<attrib_name>'
RECEIVING
RT_RANGE_TABLE = lt_date.
* assign Date Field Symbol
ASSIGN lt_date->* to <fs_date>.
9: Windows Window Tab: In the View Conatiner, embed the WND_SELECTION_SCREEN view from SELECT_OPTIONS component Usage of WDR_SELECT_OPTIONS component.
Regards,
Reema. -
How to get One Selection Screen for all queries?
Hi Experts,
I have three queries having selection screens. All the selection screen have the same variables, but the reports are different.
I have created a workbook having these three queries. Each time when the workbook opens, the three selection screen pops up one after the another. Same values are entered in all the selection screens.
Now the user wants only one selection screen for all the three reports. Is it possible? I tried but I do not see any way.
I think there should be some way of getting it done.
Waiting for your inputs,
With kind regards,
ShreeemHi
If a workbook contains multiple queries that use the same variable, you are prompted to enter the variable values again for each query. To avoid this, set the Display Duplicate Variables Only Once flag.
Goto Workbook Settings>Under Variables Tab>select Display Duplicate Variables only Once
http://help.sap.com/saphelp_nw70ehp1/helpdata/EN/54/a493f7256b43698191a2623e5a0532/frameset.htm
Hope this helps,
Aparna Duvvuri -
When I installed iOS5 on my IPhone4 and selected ICloud for my storage location, all my Notes disappeared off my IPhone & Desktop. Where are they?
There must be a big pile of notes somewhere cause the same thing happened to me. If you find them let me know.
Maybe you are looking for
-
Connectivity Problem while installing Oracle
I have been trying to install Oracle Personal Edition of 8i on Win 98 PC, after successfull installaion I get a very common Oracle error : ORA-12541 TNS : no listener, when I try to connect to SQL Plus. I am unable to resolve it, tips reqd. thanx in
-
Help. how do i get iphone out of recovery mode without having to restore
hello, i have no idea why, but the new update for iphone did not work when i was downloading last night and the phone put itself into recovery mode. i havent synched it with my computer for a while and theres tons of stuff on there that i cant afford
-
SD Revenue Recognition-Account settings for deferring COGS
Hi Experts In the current process, COGS, cost of goods sold is getting posted into the COGS G/L account, while creation of billing document. In VF44 transaction, we find option for VPRS cost being captured against every line item & are available for
-
When deleting running crystal report from BOE CMC, it leaves Oracle thread?
hi, Yesterday, we discovered an anomaly. From BOE's CMC, I deleted a running Crystal Report instance. I believed that this would "cancel" the running report. However, later, it produced a message. It apparently kept on running in Oracle until it f
-
ASA Active/Active Failover with Redundant Guest Anchors
Does anyone know how an ASA and a guest anchor 5508 will interact if I setup an Active/Active failover pair with physical interface redundancy? I see from documentation that I can create a logical group in the ASA to bond physical interfaces togethe