How to set the color for road map steps
hi all,
my requirement is like ,whenever i select my step in a roadmap it has to be set in yellow color and others has to be in default color.
thanks,
Siva.
Hi......
Its Very Simple......
Create an action for the road map.
for example..... if you have three step in it....
by default the first step will be in active only...
ie., Yellow colour
if you click the second step and it should be active means.... if you have to create a event....in the property of the Roadmap
Create the on action select event....
in that event.....
try to use this code.... based on your scenario.....
set context data
DATA: road_node TYPE REF TO if_wd_context_node,
road_data TYPE if_componentcontroller=>element_roadmap.
road_node = wd_context->get_child_node( 'ROADMAP' ).
road_data-step = step.
IF step = 'CHOOSE'.
road_data-prev_enabled = abap_false.
ELSE.
road_data-prev_enabled = abap_true.
ENDIF.
IF step = 'END'.
road_data-next_enabled = abap_false.
ELSE.
road_data-next_enabled = abap_true.
ENDIF.
road_node->set_static_attributes( road_data ).
navigation
wd_this->fire_navigate_evt( step ).
Hope this will help you
Thanks & reagrds
Raja
Similar Messages
-
How can I set the color for a textfield
Hi all,
I use a textfield and I want to set the color for characters which are typed in the textfield. I didn't find anywhere a solution for this. Do you know how I should implement this?
ThanksNot possible. If you want this, you'll need to make a custonItem that implements this.
-
How to set background color for selected days in DateChooser
How to set background color for selected days. I created
checkbox for each day [Son,Mon,Tue,Wed,Thu,Fri,Sat] and a
DateChooser, I want to change the background color for the selected
day when i click on a button after selecting the desired checkboxs
[ monthly wise/yearly wise]
Thanks in advanceThere is no button involved in the following code, but it may
be of use to you:
<?xml version="1.0"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
creationComplete="init()">
<mx:Script>
<![CDATA[
private var origColor:uint;
private function init():void {
origColor = dc.getStyle("selectionColor");
public function setBackGrdColors(newColor:uint):void {
dc.setStyle("selectionColor", origColor);
if(dc.selectedDate){
var dayOfWeek:Number = dc.selectedDate.day;
else{
return;
switch(dayOfWeek) {
case 0:
if(sun.selected)
dc.setStyle("selectionColor", newColor);
break;
case 1:
if(mon.selected)
dc.setStyle("selectionColor", newColor);
break;
case 2:
if(tue.selected)
dc.setStyle("selectionColor", newColor);
break;
case 3:
if(wed.selected)
dc.setStyle("selectionColor", newColor);
break;
case 4:
if(thu.selected)
dc.setStyle("selectionColor", newColor);
break;
case 5:
if(fri.selected)
dc.setStyle("selectionColor", newColor);
break;
case 6:
if(sat.selected)
dc.setStyle("selectionColor", newColor);
break;
default:
break;
]]>
</mx:Script>
<mx:VBox horizontalAlign="center" verticalGap="20">
<mx:DateChooser id="dc" textAlign="left"
change="setBackGrdColors(cellColor.selectedColor)"/>
<mx:HBox width="100%" horizontalAlign="center">
<mx:CheckBox id="sun" label="Sun"/>
<mx:CheckBox id="mon" label="Mon"/>
<mx:CheckBox id="tue" label="Tue"/>
<mx:CheckBox id="wed" label="Wed"/>
</mx:HBox>
<mx:HBox width="100%" horizontalAlign="center">
<mx:CheckBox id="thu" label="Thu"/>
<mx:CheckBox id="fri" label="Fri"/>
<mx:CheckBox id="sat" label="Sat"/>
</mx:HBox>
<mx:HBox width="300" horizontalAlign="center">
<mx:Label text="Background Color" />
<mx:ColorPicker id="cellColor"
selectedColor="#FF00FF"/>
</mx:HBox>
</mx:VBox>
</mx:Application> -
How to change the color for HTML words in JEditorPane?
Hi Sir,
In the JTextPane , we could change the word's color by using:
Style style = doc.addStyle("test",null);
StyleConstants.setForeground(style, Color.red);
doc.setCharacterAttributes(10,20,syle,true);
we can change the text into red color,which range is from 10 to 30.
But how to change the color for HTML words in JEditorPane?Hi,
you can use an AttributeSet to apply the foreground color. Let's say, doc is a HTMLDocument, then SimpleAttributeSet set = new SimpleAttributeSet();
doc.getStyleSheet().addCSSAttribute(set, CSS.Attribute.COLOR, "#0D0D0D"); would apply a color to a given AttributeSet. The AttributeSet with your color then can be applied to a selected range of text in a JEditorPane by /**
* set the attributes for a given editor. If a range of
* text is selected, the attributes are applied to the selection.
* If nothing is selected, the input attributes of the given
* editor are set thus applying the given attributes to future
* inputs.
* @param editor the editor pane to apply the attributes to
* @param a the set of attributes to apply
public void applyAttributes(JEditorPane editor, AttributeSet a) {
((HTMLDocument) editor.getDocument()).getStyleSheet().addCSSAttribute(set, CSS.Attribute.COLOR, "#0D0D0D");
editor.requestFocus();
int start = editor.getSelectionStart();
int end = editor.getSelectionEnd();
if(end != start) {
doc.setCharacterAttributes(start, end - start, a, false);
else {
MutableAttributeSet inputAttributes =
((SHTMLEditorKit) editor.getEditorKit()).getInputAttributes();
inputAttributes.addAttributes(a);
} Ulrich -
How to set the color to the particular row in a report
Hi
I have a report in which I have an edit link(I changed the id as edit link)..When I click that link, all the details(the whole row details) will be appearing on the items nearer to the report to save the changes....
I want to set the color for the particular row when a link is clicked and the color should not be changed until I save the changes in items...After saving the changes, the report should come in the normal color...this is my requirement..i refered many forums regarding this...But could not find solution....If anyone knows,please help me...
FazilaHere is how I would implement
Create renderer
Add SkinnableContainer element and create a skin for this container namely SkinnableContainerSkin
find the fill section in the skin
add bitmap fill to the fill section and give the source of the image which you are planning to use(Hopefully this is a direct way of doing, may be you need to hack this a little to get it to work)
I've never tried this, but should help you give some idea. -
How to enable root on mac on 10.9.2 and how to set the password for the same ?
how to enable root on mac on 10.9.2 and how to set the password for the same ?
http://support.apple.com/kb/ht1528
Follow the steps for Lion.
But, why are you doing this? I've never found the need to do that. -
Can u tell me how to set the color of the button and its border
hi to all,can u tell me how to set the color of the button and its border
There are sample code on the java.sun.com
http://java.sun.com/docs/books/tutorial/uiswing/components/example-swing/index.html
try this web page ... There are lots of examples... Good luck ... "Gan en " -
How to set the color scale so that we can get same color for same intensity of color in various runs
Hi
I am trying to get the color pattern of mashed potato trays and diferent trays has different color intensity but if IF i am chsooing rainbow plateu it's giveing red color for dark region of each tray but two tray has different intensity of dark color. Can you suugest me how should I set the color scale so that I can distinguish which tray has higher degree of intensity of darkness.
I will be obliged to get the suggestionsHello,
Thank you for contacting National Instruments. I just have a few questions for you to help us clarify your application:
What API, such as LabVIEW or C, are you programming your application in?
Are you using Vision, and if so what specific functions are you currently using?
Is the lighting consistent and just the color of the trays changing?
How are you displaying the image in your program? Are you using an Image Display control?/li>
Depending on what functions you have available, then we may be able to work on finding a way to distinguish between the different intensities. If you could provide a little information to your application based on these questions then will be able to better understand and help you with your app
lication.
Regards,
Michael
Applications Engineer
National Instruments -
How to set the background for all components?
hi
Does anybody know how to set the DEFAULT background color in an application.. I need it because in jdk 1.3 the default bgcolor is grey and in 1.5 it is white.. and I wish white as well.. so to make it also white in jdk 1.3 I need to use the (a bit annoying) anyContainer.setBackground( Color.white ); and these are lots in my app.. So my question is: is there such an overall class with a function (say UIManager.setComponentsBackground( Color color ) ) for such a purpose?
any tip or link would be greatly appreciatedDoes anybody know how to set the DEFAULT background color in an applicationthis might get you close
import java.awt.*;
import javax.swing.*;
import java.util.Enumeration;
class ApplicationColor extends JFrame
public ApplicationColor()
setApplicationColor(Color.RED);
setLocation(400,300);
setDefaultCloseOperation(EXIT_ON_CLOSE);
JPanel jp = new JPanel(new BorderLayout());
jp.add(new JTextField("I'm a textfield"),BorderLayout.NORTH);
jp.add(new JComboBox(new String[]{"abc","123"}),BorderLayout.CENTER);
jp.add(new JButton("I'm a button"),BorderLayout.SOUTH);
getContentPane().add(jp);
pack();
public void setApplicationColor(Color color)
Enumeration enum = UIManager.getDefaults().keys();
while(enum.hasMoreElements())
Object key = enum.nextElement();
Object value = UIManager.get(key);
if (value instanceof Color)
if(((String)key).indexOf("background") > -1)
UIManager.put(key, color);
public static void main(String[] args){new ApplicationColor().setVisible(true);}
} -
How to set background color for a JFrame
Hi,
i am new to swing programming. I have created a JFrame called framehelp and i placed some labels in the frame.
I have set the background color as yellow for the frame ie by setBackground(new java.awt.Color(255, 255, 204));
But after compiling the program i am still getting the background color of frame as gray.
How can i change the background color of frame as lightish yellow.
I have used NETBEANS to generate this code and i am posting the code..
Kindly help me
Thanks in adavance
public class framehelp extends javax.swing.JFrame {
/** Creates new form framehelp */
public framehelp() {
initComponents();
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
private void initComponents() {
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
jLabel8 = new javax.swing.JLabel();
jLabel9 = new javax.swing.JLabel();
jLabel10 = new javax.swing.JLabel();
jLabel11 = new javax.swing.JLabel();
jLabel12 = new javax.swing.JLabel();
jLabel13 = new javax.swing.JLabel();
jLabel7 = new javax.swing.JLabel();
jLabel14 = new javax.swing.JLabel();
jLabel15 = new javax.swing.JLabel();
jLabel16 = new javax.swing.JLabel();
jLabel17 = new javax.swing.JLabel();
jLabel18 = new javax.swing.JLabel();
jLabel19 = new javax.swing.JLabel();
jLabel20 = new javax.swing.JLabel();
jLabel21 = new javax.swing.JLabel();
jLabel22 = new javax.swing.JLabel();
jLabel23 = new javax.swing.JLabel();
jLabel24 = new javax.swing.JLabel();
jLabel25 = new javax.swing.JLabel();
jLabel26 = new javax.swing.JLabel();
jLabel27 = new javax.swing.JLabel();
jLabel28 = new javax.swing.JLabel();
jLabel29 = new javax.swing.JLabel();
jLabel30 = new javax.swing.JLabel();
jLabel31 = new javax.swing.JLabel();
jLabel32 = new javax.swing.JLabel();
jLabel33 = new javax.swing.JLabel();
getContentPane().setLayout(null);
setBackground(new java.awt.Color(255, 255, 204));
setForeground(new java.awt.Color(204, 204, 204));
addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosing(java.awt.event.WindowEvent evt) {
exitForm(evt);
jLabel1.setText("The CAME framework software measurement process evaluation is used to determine the Level of measurement in the ITarea. This measurementprocess evaluation is ");
getContentPane().add(jLabel1);
jLabel1.setBounds(40, 50, 41, 16);
jLabel2.setText("performed individually for software coomponents ie SoftwareProduct, SoftwareProcess and SoftwareResource.");
getContentPane().add(jLabel2);
jLabel2.setBounds(40, 70, 41, 16);
jLabel3.setText("Below we describe the steps which will guide through the measurement process evaluation. There are two types of evaluation considerd here, General evaluation");
getContentPane().add(jLabel3);
jLabel3.setBounds(40, 100, 913, 16);
jLabel4.setText("and Evaluation with respect to a standard. The measurement intensions considerd by varoius measurement standards will be used in our tool based method. ");
getContentPane().add(jLabel4);
jLabel4.setBounds(40, 120, 893, 16);
jLabel5.setText("Information about the measurement standards can be found at www.iso.org , www.ieee.org.");
getContentPane().add(jLabel5);
jLabel5.setBounds(40, 140, 542, 16);
jLabel6.setText("Steps to calculate the MetricsLevel");
getContentPane().add(jLabel6);
jLabel6.setBounds(40, 190, 199, 16);
jLabel8.setText("2 ) The opened frame consists of several metrics and measures, evaluation level buttons, result textfields and selection choice lists. To calculate");
getContentPane().add(jLabel8);
jLabel8.setBounds(70, 240, 41, 16);
jLabel9.setText("general Metricslevel without any standard, select general from Measurement standard choice list. then select Both from scaleType choice list and finally select metrics ");
getContentPane().add(jLabel9);
jLabel9.setBounds(90, 260, 949, 16);
jLabel10.setText(" and measures from the frame and press MetricsLevel Button. The metricslevel for the selected metrics will be displayed in textfield1.");
getContentPane().add(jLabel10);
jLabel10.setBounds(90, 280, 756, 16);
jLabel11.setText("3 ) To determine MetricsLevel with respect to a standard select a standard from MeasurementStandard choice list, select Both from ScaleType choice list and finally ");
getContentPane().add(jLabel11);
jLabel11.setBounds(70, 300, 933, 16);
jLabel12.setText("select darkened metrics and measures and press MetricsLevel Button. The Metrics Level for the selected Metrics and standard will be diplayed in textfield1.");
getContentPane().add(jLabel12);
jLabel12.setBounds(90, 320, 883, 16);
jLabel13.setText("4 ) Repeat steps 1 2, 3 for ProcessMeasurementEvaluation and ResourceMeasurementEvaluation menu items from the select menu.");
getContentPane().add(jLabel13);
jLabel13.setBounds(70, 340, 751, 16);
jLabel7.setText("1 ) Select ProductMeasurementEvaluation menu item from the select menu,a frame called CAME framework software product measurement evaluation will be opened. ");
getContentPane().add(jLabel7);
jLabel7.setBounds(70, 220, 946, 16);
jLabel14.setText("Steps to calculate MeasurementLevel");
getContentPane().add(jLabel14);
jLabel14.setBounds(50, 390, 214, 16);
jLabel15.setText("1 ) Select ProductMeasurementEvaluation menu item from the select menu,a frame called CAME framework software product measurement evaluation will be opened.");
getContentPane().add(jLabel15);
jLabel15.setBounds(80, 420, 943, 16);
jLabel16.setText("2 ) The opened frame consists of several metrics and measures, evaluation level buttons, result textfields and selection choice lists. To calculate");
getContentPane().add(jLabel16);
jLabel16.setBounds(80, 450, 822, 16);
jLabel17.setText("general Measurementlevel without any standard, select general from Measurement standard choice list. then select Quantitative measures from scaleType choice list ");
getContentPane().add(jLabel17);
jLabel17.setBounds(100, 470, 943, 16);
jLabel18.setText("and finally select metrics and measures from the frame and press MeasurementLevel Button. The MeasurementLevel for the selected metrics will be displayed in textfield2.");
getContentPane().add(jLabel18);
jLabel18.setBounds(100, 490, 973, 20);
jLabel19.setText("3 ) To determine MeasurementLevel with respect to a standard select a standard from MeasurementStandard choice list, select Quantitative measures from ScaleType choice list");
getContentPane().add(jLabel19);
jLabel19.setBounds(80, 510, 1009, 16);
jLabel20.setText("and finally select darkened metrics and measures and press MeasurementLevel Button. The MeasurementLevel will be diplayed in textfield2.");
getContentPane().add(jLabel20);
jLabel20.setBounds(100, 530, 799, 16);
jLabel21.setText("4 )Repeat steps 1 2, 3 for ProcessMeasurementEvaluation and ResourceMeasurementEvaluation menu items from the select menu.");
getContentPane().add(jLabel21);
jLabel21.setBounds(80, 550, 748, 16);
jLabel22.setText("Steps to calculate MeasurementProcessLevel");
getContentPane().add(jLabel22);
jLabel22.setBounds(50, 600, 262, 16);
jLabel23.setText("1 ) Select ProductMeasurementEvaluation menu item from the select menu,a frame called CAME framework software product measurement evaluation will be opened.");
getContentPane().add(jLabel23);
jLabel23.setBounds(80, 630, 943, 16);
jLabel24.setText("2 )The opened frame consists of several metrics and measures, evaluation level buttons, result textfields and selection choice lists. To calculate");
getContentPane().add(jLabel24);
jLabel24.setBounds(80, 650, 819, 16);
jLabel25.setText("general MeasurementProcesslevel without any standard, select general from Measurement standard choice list. then select Quantitative measures from scaleType ");
getContentPane().add(jLabel25);
jLabel25.setBounds(100, 670, 930, 16);
jLabel26.setText("choice list, enter migrated metrics if any in textfield below migrated metrics label and finally select metrics measures from the frame and press ");
getContentPane().add(jLabel26);
jLabel26.setBounds(100, 690, 818, 16);
jLabel27.setText("MeasurementProcessLevel Button. The MeasurementProcessLevel for the selected metrics will be displayed in textfield3.");
getContentPane().add(jLabel27);
jLabel27.setBounds(100, 710, 691, 16);
jLabel28.setText("3 ) To determine MeasurementProcessLevel with respect to a standard select a standard from MeasurementStandard choice list, select Quantitative measures from ");
getContentPane().add(jLabel28);
jLabel28.setBounds(80, 740, 937, 16);
jLabel29.setText("from ScaleType choice list, enter migrated metrics if any in textfield below migrated metrics and finally select darkened metrics and measures and press ");
getContentPane().add(jLabel29);
jLabel29.setBounds(100, 760, 873, 16);
jLabel30.setText("MeasurementProcessLevel Button. The MeasurementprocessLevel for the selected metrics will be displayed in textfield3");
getContentPane().add(jLabel30);
jLabel30.setBounds(100, 780, 687, 16);
jLabel31.setText("4 ) Repeat steps 1,2,3 for ProcessMeasurementEvaluation and ResourceMeasurementEvaluation menuitems.");
getContentPane().add(jLabel31);
jLabel31.setBounds(80, 800, 618, 16);
jLabel32.setText("Steps to calculate MeasuredSoftwareProcessLevl");
getContentPane().add(jLabel32);
jLabel32.setBounds(60, 830, 285, 16);
jLabel33.setText("1 ) Follow the same steps as MetricsLevel calcualtion but select metrics and measures covered by CAME Tools only.");
getContentPane().add(jLabel33);
jLabel33.setBounds(90, 860, 657, 16);
java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
setBounds((screenSize.width-1100)/2, (screenSize.height-940)/2, 1100, 940);
/** Exit the Application */
private void exitForm(java.awt.event.WindowEvent evt) {
System.exit(0);
* @param args the command line arguments
public static void main(String args[]) {
new framehelp().show();
// Variables declaration - do not modify
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel10;
private javax.swing.JLabel jLabel11;
private javax.swing.JLabel jLabel12;
private javax.swing.JLabel jLabel13;
private javax.swing.JLabel jLabel14;
private javax.swing.JLabel jLabel15;
private javax.swing.JLabel jLabel16;
private javax.swing.JLabel jLabel17;
private javax.swing.JLabel jLabel18;
private javax.swing.JLabel jLabel19;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel20;
private javax.swing.JLabel jLabel21;
private javax.swing.JLabel jLabel22;
private javax.swing.JLabel jLabel23;
private javax.swing.JLabel jLabel24;
private javax.swing.JLabel jLabel25;
private javax.swing.JLabel jLabel26;
private javax.swing.JLabel jLabel27;
private javax.swing.JLabel jLabel28;
private javax.swing.JLabel jLabel29;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel30;
private javax.swing.JLabel jLabel31;
private javax.swing.JLabel jLabel32;
private javax.swing.JLabel jLabel33;
private javax.swing.JLabel jLabel4;
private javax.swing.JLabel jLabel5;
private javax.swing.JLabel jLabel6;
private javax.swing.JLabel jLabel7;
private javax.swing.JLabel jLabel8;
private javax.swing.JLabel jLabel9;
// End of variables declaration
}1. When you post code, post a minimal example. Did we have to scroll through
all those bloody labels.
2. Can't say much for the quality of code NetBeans generates.
3. To answer your question (sorry, I don't have an autographed copy of the photo):
import java.awt.*;
import java.net.*;
import javax.swing.*;
public class Example {
public static void main(String[] args) throws MalformedURLException {
final JFrame f = new JFrame();
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Container cp = f.getContentPane();
cp.setBackground(new Color(0xff, 0xff, 0xee));
cp.add(new JLabel("set the color on the content pane, not the frame"), BorderLayout.SOUTH);
URL url = new URL("http://today.java.net/jag/bio/JagHeadshot-small.jpg");
cp.add(new JLabel(new ImageIcon(url)));
f.pack();
SwingUtilities.invokeLater(new Runnable(){
public void run() {
f.setLocationRelativeTo(null);
f.setVisible(true);
} -
How to set the conditions for item deletion approval workflow?
Hi,
I have created approval workflow for item modifications ie, when user try to modify an item, it will send a mail to Project Manager. For that I set the conditions in Change the behavior of the overall task: 1. When the task process starts 2 . When the task
process completes .
Change the behavior of the single task: 1.when a task is Pending.
[I followed this https://www.nothingbutsharepoint.com/sites/eusp/Pages/5-Steps-to-Enhance-SharePoint-2010-Approval-Workflow.aspx ]
My Requirement is that I want to set this same workflow for the scenario: when the user deletes an item it will send a mail (intimation mail for item deletion) to Project Manager. here i dont want to send modification mails when user deletes an item.
When user modifies an item: 1. intimation mail, 2. Approve/Reject mail 3. intimation for approval / rejection mail.
When user deletes an item: 1. intimation mail.
How can we set it in one approval workflow?? where i have to set the condition for sending either item modification mails or deletion mail.
Thanks,
Praveen jiHi,
According to your post, my understanding is that you wanted to start approval workflow when item deleted.
You should first make some changes to trigger the workflow when you delete the item.
You can use the Event Receiver to achieve it.
In order to trigger workflow on item delete you need to create event receivers and from event receiver call the workflow already attached with list.
http://ravendra.wordpress.com/sharepoint-workflow-on-list-item-delete/
You can also create custom action to start the workflow, you can refer to the following article, then modify the workflow as your need.
http://blogs.sharepoint911.com/blogs/jennifer/Lists/Posts/Post.aspx?ID=50
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
How to set the icon for the entire application with JFrame.setIconImage
I set the icon on the main frame using JFrame.setIconImage(). The icon is shown properly in the main frame.
If more JFrames are opened from the main frame, the newly opened JFrames also show the icon.
However if JDialogs are opended, in some cases the icon set on the main frame is shown and in other cases the coffee cup.
What is JFrame.setIconImage() expected to do? Setting the icon for a single JFrame or the entire application?
How can I set the icon for the entire application?
How can I set the icon for JDialogs?
Thank youIn order for your dialogs to use the same icon as the frame, you must parent the dialogs to the frame which has the custom icon.
See the following thread for more information: http://forum.java.sun.com/thread.jsp?forum=57&thread=362542
cheers,
Greg -
How to set the size for height of iView tray?
Hi,
I have created a ABAP webdynpro component and integrated this comp with iView. Then i integrated iView into Page in portal. That is working fine.
But the size of tray/window which is displayed in the page is very small.
How to increase the height of that Tray/window/iView containing my component?Hi,
By changing the maximum automatic height and Minimum automatic height property of the iview you can set the size for height of your iview.
to do this follow the setps:
goto content administrator -> portal content -> your folder where you created your iview or directly to your iview -> right click -> open -> object,
and now in property category choose appearance-Size from the drop down menu and set the above properties to your required height.
if you want the end user to modify this property set the property to read/write .
*********please reward points if the information is helpful to you******************** -
How to set the header for second page
Hello all,
I'm trying to set different header for first page and page number should starts from second page.
Below is the sample code to set the header for each and every page.
DECLARE
hApplication OLE2.OBJ_TYPE;
hWindow OLE2.OBJ_TYPE;
hPane OLE2.OBJ_TYPE;
hView OLE2.OBJ_TYPE;
hDocuments OLE2.OBJ_TYPE;
hDocument OLE2.OBJ_TYPE;
hSelection OLE2.OBJ_TYPE;
hParagraphFormat OLE2.OBJ_TYPE;
hRange OLE2.OBJ_TYPE;
hFields OLE2.OBJ_TYPE;
hFont OLE2.OBJ_TYPE;
args OLE2.LIST_TYPE;
wdAlignParagraphLeft CONSTANT number(3) := 0;
wdAlignParagraphCenter CONSTANT number(3) := 1;
wdAlignParagraphRight CONSTANT number(3) := 2;
wdSeekCurrentPageHeader CONSTANT number(3) := 9;
wdSeekCurrentPageFooter CONSTANT number(3) := 10;
wdSeekMainDocument CONSTANT number(3) := 0;
wdFieldPage CONSTANT number(3) := 33;
wdFieldNumPages CONSTANT number(3) := 26;
wdPageBreak CONSTANT number(3) := 7;
wdStory CONSTANT number(3) := 6;
myTab CONSTANT varchar2(1) := chr(9);
myBlue CONSTANT number(8) := 16711680; --FF0000
myGreen CONSTANT number(8) := 65280; --00FF00
myRed CONSTANT number(8) := 255; --0000FF
myDkGreen CONSTANT number(8) := 32768; --008000
myBlack CONSTANT number(8) := 0; --000000
myText varchar2(2000);
BEGIN
hApplication:=OLE2.CREATE_OBJ('Word.Application');
OLE2.SET_PROPERTY(hApplication, 'Visible', 1);
hDocuments := OLE2.GET_OBJ_PROPERTY(hApplication, 'Documents');
hDocument := OLE2.INVOKE_OBJ(hDocuments, 'Add');
-------- Create Header and Footer --------
hWindow := OLE2.GET_OBJ_PROPERTY(hApplication, 'ActiveWindow');
hPane := OLE2.GET_OBJ_PROPERTY(hWindow, 'ActivePane' );
hView := OLE2.GET_OBJ_PROPERTY(hPane, 'View' );
---- Header Section ---
OLE2.SET_PROPERTY(hView, 'SeekView', wdSeekCurrentPageHeader);
hSelection := OLE2.GET_OBJ_PROPERTY(hApplication, 'Selection');
hFont := OLE2.GET_OBJ_PROPERTY(hSelection, 'Font');
OLE2.SET_PROPERTY(hFont, 'Name', 'Times New Roman');
OLE2.SET_PROPERTY(hFont, 'Size', 10);
OLE2.SET_PROPERTY(hFont, 'Bold', FALSE);
OLE2.SET_PROPERTY(hFont, 'Color', MyBlue );
hParagraphFormat := OLE2.GET_OBJ_PROPERTY(hSelection, 'ParagraphFormat');
OLE2.SET_PROPERTY(hParagraphFormat, 'Alignment', wdAlignParagraphCenter);
OLE2.RELEASE_OBJ(hParagraphFormat);
args := OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(args, 'This is a');
OLE2.INVOKE(hSelection, 'TypeText', args);
OLE2.DESTROY_ARGLIST(args);
OLE2.INVOKE(hSelection, 'TypeParagraph');
OLE2.SET_PROPERTY(hFont, 'Size', 16);
OLE2.SET_PROPERTY(hFont, 'Bold', TRUE);
OLE2.SET_PROPERTY(hFont, 'Color', MyDkGreen );
args := OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(args, 'Test Header');
OLE2.INVOKE(hSelection, 'TypeText', args);
OLE2.DESTROY_ARGLIST(args);
---- Footer Section ----
OLE2.SET_PROPERTY(hView, 'SeekView', wdSeekCurrentPageFooter);
hParagraphFormat := OLE2.GET_OBJ_PROPERTY(hSelection, 'ParagraphFormat');
OLE2.SET_PROPERTY(hParagraphFormat, 'Alignment', wdAlignParagraphCenter);
OLE2.RELEASE_OBJ(hParagraphFormat);
hFields := OLE2.GET_OBJ_PROPERTY(hSelection, 'Fields');
args := OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(args, 'Page ');
OLE2.INVOKE(hSelection, 'TypeText', args);
OLE2.DESTROY_ARGLIST(args);
hRange := OLE2.GET_OBJ_PROPERTY(hSelection, 'Range');
args := OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG_OBJ(args, hRange);
OLE2.ADD_ARG(args, wdFieldPage);
OLE2.INVOKE(hFields, 'Add', args );
OLE2.DESTROY_ARGLIST(args);
args := OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(args, ' of ');
OLE2.INVOKE(hSelection, 'TypeText', args);
OLE2.DESTROY_ARGLIST(args);
hRange := OLE2.GET_OBJ_PROPERTY(hSelection, 'Range');
args := OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG_OBJ(args, hRange);
OLE2.ADD_ARG(args, wdFieldNumPages);
OLE2.INVOKE(hFields, 'Add', args );
OLE2.DESTROY_ARGLIST(args);
OLE2.RELEASE_OBJ(hRange);
OLE2.RELEASE_OBJ(hFields);
OLE2.SET_PROPERTY(hView, 'SeekView', wdSeekMainDocument);
OLE2.RELEASE_OBJ(hView);
OLE2.RELEASE_OBJ(hPane);
OLE2.RELEASE_OBJ(hWindow);
-------- Insert Text --------
hFont := OLE2.GET_OBJ_PROPERTY(hSelection, 'Font');
OLE2.SET_PROPERTY(hFont, 'Name', 'Arial');
OLE2.SET_PROPERTY(hFont, 'Size', 12);
OLE2.SET_PROPERTY(hFont, 'Bold', FALSE );
OLE2.SET_PROPERTY(hFont, 'Color', myBlack );
OLE2.INVOKE(hSelection, 'TypeParagraph');
myText := myTab || 'This text is on the ';
args := OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(args, myText);
OLE2.INVOKE(hSelection, 'TypeText', args);
OLE2.DESTROY_ARGLIST(args);
OLE2.SET_PROPERTY(hFont, 'Bold', TRUE);
OLE2.SET_PROPERTY(hFont, 'Color', myRed);
args := OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(args, 'first ');
OLE2.INVOKE(hSelection, 'TypeText', args);
OLE2.DESTROY_ARGLIST(args);
OLE2.SET_PROPERTY(hFont, 'Bold', FALSE);
OLE2.SET_PROPERTY(hFont, 'Color', myBlack );
args := OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(args, 'page.');
OLE2.INVOKE(hSelection, 'TypeText', args);
OLE2.DESTROY_ARGLIST(args);
args := OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(args, wdPageBreak);
OLE2.INVOKE(hSelection, 'InsertBreak', args);
OLE2.DESTROY_ARGLIST(args);
----page 2
myText := myTab || 'This text is on the ';
args := OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(args, myText );
OLE2.INVOKE(hSelection, 'TypeText', args);
OLE2.DESTROY_ARGLIST(args);
OLE2.SET_PROPERTY(hFont, 'Bold', TRUE);
OLE2.SET_PROPERTY(hFont, 'Color', myBlue);
args := OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(args, 'second ');
OLE2.INVOKE(hSelection, 'TypeText', args);
OLE2.DESTROY_ARGLIST(args);
OLE2.SET_PROPERTY(hFont, 'Bold', FALSE);
OLE2.SET_PROPERTY(hFont, 'Color', myBlack );
args := OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(args, 'page.');
OLE2.INVOKE(hSelection, 'TypeText', args);
OLE2.DESTROY_ARGLIST(args);
---- go to the top of the first page
args := OLE2.CREATE_ARGLIST;
OLE2.ADD_ARG(args, wdStory);
OLE2.INVOKE(hSelection, 'HomeKey', args);
OLE2.DESTROY_ARGLIST(args);
OLE2.RELEASE_OBJ(hFont);
OLE2.RELEASE_OBJ(hSelection);
OLE2.RELEASE_OBJ(hDocument);
OLE2.RELEASE_OBJ(hDocuments);
OLE2.RELEASE_OBJ(hApplication);
END;
Please help me out
Thanks,
BhavanaClick on --
Edit link for Page> Click "Edit Default" link on Banner >
Under the "Banner Links"
provide value something like this:
Label = Help
URL = /pls/portal30/docs/myhelp.html
Icon = U can upload any icon here.
For Application Components = See the Second Last tab on "Edit Component".
Thanx,
Chetan. -
How to set the status for a customer plan to RELEASED.
Hello all,
I created a program for mass creation of customer plans. But after the creation of a plan, the status should be set to released, so that the user can go about creating the trade promotions for the customer plan. Can anybody tell me how to set the status of a customer plan to RELEASED.
Thanks,
Disha.Hi Clemens,
I am not talking about doing it in the CRM_UI transaction..I created a program..which would create the customer plans based on the planning account data provided. I was succesfull in creating the plans, but I am not knowing how to release it, if only anybody can tell me about a Function module or method, which can help me do this, that would be great
Thanks,
Disha.
Maybe you are looking for
-
IOS 6 seems to be causing multiple typing errors. The problem didn't occur before ios6. I have delayed ipad toeing iPhone 4 forbear ofmthensame problems. As an example, I did not,go,correct mistakes in last sentence that iPad 'corrected' Any ideas of
-
How do i delete an apple id account from an ipod touch?
I have an ipad and iphone. My son has an ipod touch. My son entered his icloud with my apple id and he needs his own otherwise we are getting each others imessages and contacts. How do I separate? I DID go to ICloud settings and DELETE the account bu
-
I signed into my Apple ID on a new phone and I already had it on my iPod. When I signed into the new phone it won't let me buy anything unless I know my old security questions but I don't know the answers to them. How can I get past those or change t
-
Difference between N+1 HA model and traditional secondary/Tertiary Cisco 5508 Model.
Hi Team we are going to implement N+1 HA cisco WLC high availability for that we have procured one WLC 5508. However i am not able to find out difference between N+1 and secondary WLC configured under each AP in wireless tab ? As per my understanding
-
IPlanet version and Windows 2003
What is the lowest iPlanet version supported with Windows 2003?