How to set value for trim and bleed using jsx script?
I have tried using bleedoffsetRect but somehow it is not working. Can anybody please help me on how to set value for trim and bleed using jsx script? Any example will be highly appreciated.
Following is the code I am trying with:
var _saveName = new File ( root_path +_strFileName+".pdf");
var _saveOpts = new PDFSaveOptions();
_saveOpts.printerResolution = 300;
var bleedarray = new Array();
bleedarray[0] =9.00;
bleedarray[1]=9.00;
bleedarray[2]=9.00;
bleedarray[3]=9.00;
_saveOpts.bleedOffsetRect = bleedarray;
I would expect although I've not actually tried this for the bleed off set box to be larger than the artbaord and the first two values to be negative or 0…
var bleedarray = new Array(-9,-9,artboard.width+9,artboard.height+9);
Where 'artboard.width' & 'artboard.height' you will have calculated from your file. An Array(9,9,9,9); would not constitute any boxes bounds.
Similar Messages
-
How to set value for radio button in sap crm survey suite
Hi ,
I created a survey in CRM Service, in which I added a question with answer as '10 Selection Button Group ('radio button'). And answer has 11 answer options (which means 11 radio buttions). Now when we test the survey, the value for the radio buttons is appearing like 'id_0050569b03091ee480a29d8ee61e953c'. But i want to set a specific value for each radion button (from 1 to 11). So, how to set value for radio button in sap crm survey suite???.
Thanks & Regards,
SeshuHi,
I found solution myself. Click on Goto -> Editing Mode -> Expert Mode. Now you can set value for radio button.
Regards,
Seshu -
How to set value for selectOneChoice
Hello,
How to set value for selectOneChoice defined as:
<af:selectOneChoice label="Label" id="soc1" binding="#{DepositorMergingBean.socSurnameComponent}">
<f:selectItems id="si1" value="#{DepositorMergingBean.socSurnames}"/>
</af:selectOneChoice>
where socSurnames is List<SelectItem> - manually filled list of SelectItem(SomeObject, (String)text_description), so - SOC is filled manually (no binded iterators, etc..)
Neither socSurnameComponent.setValue( new Integer(0) ) nor socSurnameComponent.setValue( socSurnames.get(0) ) do not help.
Thanks in advance.this.selectOneChoice.setValue(selectItems.get(2).getValue());Try as per the following sample:
SelectOneChoiceTest.JSPX:
<af:form id="f1">
<af:selectOneChoice label="Select One Choice" id="soc1"
binding="#{SelectOneChoiceTestBean.selectOneChoice}">
<f:selectItems value="#{SelectOneChoiceTestBean.selectItems}"
id="si1"/>
</af:selectOneChoice>
<af:commandButton text="Set Selected Value" id="cb1"
actionListener="#{SelectOneChoiceTestBean.onClick}"/>
</af:form>
SelectOneChoiceTestBean.java:
import java.util.ArrayList;
import java.util.List;
import javax.faces.event.ActionEvent;
import javax.faces.model.SelectItem;
import oracle.adf.view.rich.component.rich.input.RichSelectOneChoice;
public class SelectOneChoiceTestBean {
private RichSelectOneChoice selectOneChoice;
public SelectOneChoiceTestBean() {
super();
private List<SelectItem> selectItems;
public void setSelectItems(List<SelectItem> selectItems) {
this.selectItems = selectItems;
public List<SelectItem> getSelectItems() {
selectItems = new ArrayList<SelectItem>();
selectItems.add(new SelectItem("One", "One"));
selectItems.add(new SelectItem("Two", "Two"));
selectItems.add(new SelectItem("Three", "Three"));
return selectItems;
public void setSelectOneChoice(RichSelectOneChoice selectOneChoice) {
this.selectOneChoice = selectOneChoice;
public RichSelectOneChoice getSelectOneChoice() {
return selectOneChoice;
public void onClick(ActionEvent actionEvent) {
this.selectOneChoice.setValue(selectItems.get(2).getValue());
Thanks,
Navaneeth -
How to set value for Dropdown control using Querystring filter wepart
Hi,
I have a dropdown in my customized list form and need to set the value for the dropdown control using query string filter web part.
I am able to set value for textbox control using Query String Filer web part.
But, since the dropdown values are not populated on form load, the value is not set for dropdown control.
How to load the values in dropdown control on form load and set a value using Query String filter webpart?
Thanks,
dhijitHi,
According to your post, my understanding is that you want to filter choice field using Query String Filter web part.
To filter using query string filter web part, we can set the default value for the choice field in the query string filter web part panel as below, then connect to the list.
Now it would be filter by the value you have set.
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
How to set value for skip condition in train stop property of train compnt
Hi,
Iam using JDev 11.1.1.5 version, i have created a TaskFlow where having train components pointing to different jsff pages, moving from one jsff page to another jsff page.
I want to validate the input fileds in one of the jsff page, then only have to move to next jsff page. For this, how can i set skip property of train component....to disable to go for next train component...?
Note: I want to set boolean value(returns 'True', if all input fileds are filled, otherwise 'False') into skip property of train component.
Regards.You can use the skip property of the train stop. You can have an EL expression for it, some thing like this #{pageFlowScope.isContinueEnabled}.
Once all the mandatory fields are entered, you can set the isContinueEnabled flag and refresh the train button bar.
For more info refer this: http://docs.oracle.com/cd/E14571_01/web.1111/b31974/taskflows_complex.htm#CJHFBFIE
Also, you can try navigating to different train stops programmatically.
Check: 082. How-to programmatically navigate ADF train models
in http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html -
How to set value for html:img
i am using <html:img tag to render image and i need to set some value to that image when selected and that value need to be checked in java code.
How i can set the value for that image.
Thanks,use javascript and hidden input to do this:
<html:img src="your_img.gif" ononclick="document.getElementById('your_hidden_input_id').value='your_value' ">
<input type="hidden" name="your_hidden_input_name" id = "your_hidden_input_id" value="" />Hope that Helps -
How to set value for table lines in web dynpro ?
Hi experts,
I'm new in webdynpro. My requirement is to set value to the second line when user press expand on first line.
In method ONACTIONLOAD_CHILDREN , I use get_static_attributes_table to get the current table records and change return table value .
Then i user bind_table to pass table to the screen.
It works fine for first time i press expand and collaps, but when i expand it again it throw out a dump 'OBJECTS_OBJREF_NOT_ASSIGNED'.
Could any one please help to solve that?
ThanksHi Harsha,
Thanks for your reply,I've check the dump details and it display like this:
Information on where terminated
Termination occurred in the ABAP program "CL_WDR_CONTEXT_ELEMENT========CP" -
in "IF_WD_CONTEXT_ELEMENT~SET_ATTRIBUTE".
The main program was "SAPMHTTP ".
In the source code you have the termination point in line 40
of the (Include) program "CL_WDR_CONTEXT_ELEMENT========CM007".
The termination is caused because exception "CX_SY_REF_IS_INITIAL" occurred in
procedure "IF_WD_CONTEXT_ELEMENT~SET_ATTRIBUTE" "(METHOD)", but it was neither
handled locally nor declared
in the RAISING clause of its signature.
The procedure is in program "CL_WDR_CONTEXT_ELEMENT========CP "; its source
code begins in line
1 of the (Include program "CL_WDR_CONTEXT_ELEMENT========CM007 ".
First time i debug it work fine but the next time it dump with same import values. And it even did not reach the logic i add when i expand it again.
I'm not sure why it happen.
My code in ONACTIONLOAD_CHILDREN is like this.
*navigate from <CONTEXT> to <ITEM_DATA> via lead selection
lo_nd_item_data = wd_context->path_get_node( path =
`COMP_CONTEXT.ITEM_DATA` ).
*get element via lead selection
lo_el_item_data = lo_nd_item_data->get_element( ).
*get all declared attributes
lo_nd_item_data->get_static_attributes_table(
IMPORTING
table = lt_item_data ).
LOOP AT lt_item_data INTO ls_item_data.
IF sy-tabix = 2.
ls_item_data-description = 'TEST'.
MODIFY lt_item_data FROM ls_item_data TRANSPORTING description.
ENDIF.
ENDLOOP.
lo_nd_item_data->bind_table( new_items = lt_item_data
set_initial_elements = abap_true ).
lo_nd_item_data->set_lead_selection_index( 1 ).
First line was set selected but still got dump.
Could you please help to check this ?
Thanks & Regards
Eric Li -
How to set ORACLE_HOME for database and apps server in same server
Hi, I have problem here to set ORACLE_HOME in .bash_profile for database and apps server. please help me to set this Oracle Home.
Thanks
-jebatcoIf you mean to have both simultaneosly set on the same OS session, of course that's not possible. But you can configure them on your profile, and choose them when needed. The following is an excerpt from my .bash_profile
export EDITOR=vi
umask 022
alias O='cd ${ORACLE_HOME}'
o10()
{ export ORACLE_SID=db102
export ORACLE_BASE=/home/oracle/base
export ORACLE_HOME=$ORACLE_BASE/OraHome10
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin
export TNS_ADMIN=$ORACLE_BASE/OraHome11/network/admin
export PS1='[\u@\h_10 \W]\$ '
o11()
{ export ORACLE_SID=db11
export ORACLE_BASE=/home/oracle/base
export ORACLE_HOME=$ORACLE_BASE/OraHome11
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin
export PS1='[\u@\h_11 \W]\$ '
xe()
{ export ORACLE_SID=XE
export ORACLE_BASE=/usr/lib/oracle/xe/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/server
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin
export TNS_ADMIN=/home/oracle/base/OraHome11/network/admin
export PS1='[\u@\h_XE \W]\$ '
}If I want to set Oracle 10g environment I type "o10" at OS prompt, "o11" for 11g, and so on. -
How to set font for title and message in JOptionPane?
Hi,
I have following test code.
JOptionPane.showMessageDialog(null, "Some Alert Message", "Alert", JOptionPane.ERROR_MESSAGE);In this code can we set font for "Some Alert Message", "Alert"?
Regards,
Kalyani......roll-your-own?
import javax.swing.*;
class Testing
public static void main(String[] args)
JDialog.setDefaultLookAndFeelDecorated(true);
JOptionPane optionPane = new JOptionPane("<html><font size='5'>Your message here</font></html>");
optionPane.setOptionType(JOptionPane.DEFAULT_OPTION);
optionPane.setMessageType(JOptionPane.ERROR_MESSAGE);
JDialog dialog = optionPane.createDialog(null, "Alert");
dialog.getLayeredPane().getComponent(1).setFont(dialog.getFont().deriveFont(18f));//size = 18/whatever
dialog.setModal(true);
dialog.setVisible(true);
} -
How to set homepage for other people who use my programs?!
I have a website and it is a download site.
I don't want to force my users to come to my web page.so I want to open my web site in second Tab in home page.
what should I do ?It is up to individuals if they want to add your site as a home page, they can do that by using the procedure in the [[how to set the home page]] article. You should not force your site to be a home page.
I am sorry if I have misinterpreted your question, if I have can you give more details of what you want. -
How to set RNA for Agent and Preference
How best to set the number of rings for a Verison 8 UCCX Agent, before the system moves on to the next agent?
Line preference - we want when they pick up the handset for outgoing that it select the IPCC extension. This is a CUCM setting or a UCCX setting?The RONA timer is controlled by the Connect parameter of thebSelect Resource step in the script.
The phone will answer whichever DN is on button one (upper most).
Please remember to rate helpful responses and identify helpful or correct answers. -
How to set value for slis_selfield-tabname
Hi!
I'd like to change the value of the field slis_selfield-tabname.
It will be used to handle different alv's!
One ALV is shown and after double-clicking, another one is shown.
If the user double-clicks now on one alv line he should be forwarded to a transaction!
Therefore I'd like to check the field slis_selfield-tabname to differ the two tables.
In both cases in my report slis_selfield-tabname is '1'.
Regards,
JackoI was looking for the same thing and I found what you were looking for originally. The value of slis_selfield-tabname is set when you build the columns of your ALV. For example:
wa_fieldcat-tabname = '1'. " this is were you set the cvalue for slis_selfield-tabname
wa_fieldcat-fieldname = 'CAT'.
wa_fieldcat-seltext_m = 'Category'.
wa_fieldcat-col_pos = 1.
wa_fieldcat-outputlen = 12.
append wa_fieldcat to i_fieldcat.
clear wa_fieldcat.
wa_fieldcat-tabname = '1'.
wa_fieldcat-fieldname = 'VAL'.
wa_fieldcat-seltext_m = 'Value (EUR)'.
wa_fieldcat-col_pos = 2.
wa_fieldcat-outputlen = 25.
append wa_fieldcat to i_fieldcat.
clear wa_fieldcat. -
How to set values for Parameters?
Hi,
I have the following Selection Screen;
SELECTION-SCREEN BEGIN OF BLOCK prog WITH FRAME TITLE text-001.
parameters: R1 RADIOBUTTON GROUP RAD1 DEFAULT 'X',
R2 RADIOBUTTON GROUP RAD1.
parameters zw_laufd like reguh-laufd.
parameters zw_laufi like reguh-laufi.
parameters zw_BELNR like BKPF-BELNR.
SELECTION-SCREEN END OF BLOCK prog.
For Parameter zw_laufd the following Module is written;
MODULE F4_LAUFD_0200.
REFRESH TLAUFK.
TLAUFK-LAUFK = SPACE.
TLAUFK-SIGN = 'I'.
APPEND TLAUFK.
CALL FUNCTION 'F4_ZAHLLAUF'
EXPORTING
F1TYP = 'D'
F2NME = 'zw_laufi'
IMPORTING
LAUFD = zw_laufd
LAUFI = zw_laufi
TABLES
LAUFK = TLAUFK.
ENDMODULE.
The Module Pops up a window for selection for Parameter zw_laufd. When I select a value from the popup zw_laufd gets a value and long with that Parameter zw_laufi gets a value too, but this value does not get refelcted in the screen. How to show this in the Selection screen?
Thanks,
KishanHi Kishan,
Just try this code in a separate program . On selection screen do an F4 on ZW_LAUFI, select any value and then execute . You will see the selected values in list output . I am not sure what is your probelm. Are you doing some other processing in selection screen apart from this code. Or is it that you want to do F4 on LAUDF and want LAUFI to be populated ?????
<b>data tlaufk like ILAUFK occurs 0 with header line.
SELECTION-SCREEN BEGIN OF BLOCK prog WITH FRAME TITLE text-001.
parameters: R1 RADIOBUTTON GROUP RAD1 DEFAULT 'X',
R2 RADIOBUTTON GROUP RAD1.
parameters zw_laufd like reguh-laufd.
parameters zw_laufi like reguh-laufi.
parameters zw_BELNR like BKPF-BELNR.
SELECTION-SCREEN END OF BLOCK prog.
AT selection-screen on value-request for ZW_LAUFI.
REFRESH TLAUFK.
TLAUFK-LAUFK = SPACE.
TLAUFK-SIGN = 'I'.
APPEND TLAUFK.
CALL FUNCTION 'F4_ZAHLLAUF'
EXPORTING
F1TYP = 'D'
F2NME = 'ZW_LAUFI'
IMPORTING
LAUFD = zw_laufd
LAUFI = zw_laufi
TABLES
LAUFK = TLAUFK.
AT selection-screen on value-request for ZW_LAUFD.
REFRESH TLAUFK.
TLAUFK-LAUFK = SPACE.
TLAUFK-SIGN = 'I'.
APPEND TLAUFK.
CALL FUNCTION 'F4_ZAHLLAUF'
EXPORTING
F1TYP = 'D'
F2NME = 'ZW_LAUFI'
IMPORTING
LAUFD = zw_laufd
LAUFI = zw_laufi
TABLES
LAUFK = TLAUFK.
START-OF-SELECTion.
write :/ zw_laufi.
write :/ zw_laufd.</b>
Cheers. -
How to set value for Next Auto Restart for components
Hi All
When I checked my SPS13 portal in component monitoring area, I found that one of file server repository etc is not running. To get rid of the problem, we had to restart the portal.
On the same page there is a column for Next Auto Restart which was empty. Any idea where do we set it so that we do not have to restart entire portal for such kind of error.
Any help will be appreciated.
Regards
Prabhakar LalQuoting a mail by Akhilesh:
"Until EP6 SP2 you could have done this via
System Administration -> System Configuration -> Monitoring Configuration,
but this iView was deleted in SP3 and now this configuration needs to be done using the VA
In the VA navigate to Server -> Services -> Monitoring
In the Monitor Tree navigate to Root -> Applications -> KMC - > Repository Framework -> Components -> Repository Manager
You can set the "next auto restart" parameter for managers individually."
Regards, Karsten -
How to set values to the structure containing a node with cardinality 0..n
Hello.
I 'm trying to set values for the node with cardinality 0..n. The node type is "Fields".
<xsd:complexType name="Field">
<xsd:sequence>
<xsd:element name="fieldCode" type="xsd:string"></xsd:element>
<xsd:element name="displayValue" type="xsd:string" minOccurs="0"></xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Fields">
<xsd:sequence>
<xsd:element name="field" type="tns:Field" minOccurs="0" maxOccurs="unbounded"></xsd:element>
</xsd:sequence>
</xsd:complexType>
I need to set several values for the element "fieldCode" but it has cardinality 0..1 and BPM does not allow it but I did not find any option about how to set values for the structure of type "Fields". Could you help me?
Best regards,
Timur SemenchukHi Marcus,
If there is no way you could change the cardinality of the node, and thus it can contain 0..n items, I think you should create-and-add a new element programmatically.
Since the collection can contain zero elements, I would add a 'new' button, which upon clicking adds one new element via:
IYourNodeElement yourNodeElem = wdContext.nodeYourNode().createYourNodeElement();
wdContext.nodeYourNode().addElement(yourNodeElem);
Hope this explains a bit!
Best,
Robin van het Hof
Maybe you are looking for
-
Links No longer work for HowTo
Hi, for the thread with the title: Thread: HOWTO: Implementing a ViewObject with Multiple Updateable Dependent Entity Objects HOWTO: Implementing a ViewObject with Multiple Updateable Dependent Entity Objects The links in the thread no longer seem to
-
Mac Plug-ins for Adobe indesign CS5
Hi all, I am making new Indesign CS5 plug-ins for Mac os. build my project and i get error "Developer/usr/bin/gcc-4.0 failed with exit code 1" what it mean error "exit code 1"? and I am work on porting of Adobe Indesign CS4 to CS5 plugIns for Mac O
-
Oracle 9.2.0.1 on Redhat Linux ADVANCED SERVER -PATCHES
HI Can some one help me out, is Oracle 9.2.0.1 on Redhat Linux ADVANCED SERVER , is having some patch set to work on Developer2000, if so,please let me know where in we get the same tks narayana rao
-
Nexus 6004 EIGRP Relationship between the two switches
Hi All, I will try to explain this as best as I can. In our current TEST LAB we have a Pair of Cisco ASA5585x running in Active/Passive mode. We use a VRF transit to connect the 10 GB interface to a Pair of Cisco Nexus 6004 (L3) switches running vPC
-
Just set up a Mac Mini. One of the intended uses is to copy old vinyls and personal tapes. For input, I use a Griffin iMic through an amp NAD 3225PE. No trouble except no way of getting full stereo, only one channel works. The same with my G4 iBook.