How to change box (border) lines dynamically?
Hi,
is there a way to change the lines of a box (in german "Rahmen) on an usual abap dynpro dynamically?
Background:
I've a box with several objects inside on my dynpro. In same cases I hidde a few of this inside elements by modifing the screen table. Unfortunately boxes have no resize-attribute like subscreens or tabstrips, as result I've hidde the elements but the size of the box is unchanged.
PS: I didn't found any size or line attribute in the screen table.
Thanks!
Martin
Hi,
I think this is not possible to resize a box (frame) in dynpro dynamically, but you can do other thing:
- create two subscreens
- in first add all the controls you want
- in second add only these which you want to stay visible, also change here frame size to desired one
- create one normal screen and place subscreen area on it
- Now depending on some conditon (which you use for hidding controls) simply swap subscreens in that main screen.
"in main screen flow logic
PROCESS BEFORE OUTPUT.
CALLL SUBSCREEN subarea INCLUDING sy-repid dynnr.
PROCESS AFTER INPUT.
MODULE detemine_screen_version.
CALL SUBSCREEN subarea.
"in ABAP program
data: dynnr(4) type n value '0101'. "by default first subscreen
MODULE detemine_screen_version INPUT.
if condtion = 'X'.
dynnr = '0101'.
else.
dynnr = '0102'. "otherwise second subscreen
endif.
ENDMODULE.
This way you can achieve kind of versioning of screen's elements, together with "dynamic" resize option.
Regards
Marcin
Similar Messages
-
How can change language of application dynamic?
In the dialog I have combo box in which I can select desire language for application. When I select value I save this value in the config file. But language change ONLY when I exit and again enter to the application. How can change language of application dynamic (without exit from application) ?
alexpass wrote:
In the dialog I have combo box in which I can select desire language for application. When I select value I save this value in the config file. But language change ONLY when I exit and again enter to the application. How can change language of application dynamic (without exit from application) ?I guess your application sets the locale at "startup", based on the contents of the config file, using a call to java.util .Locale.setDefault(Locale). Did you try to call this method in response to the selection in the combobox?
This won't refresh all widgets already created however. You probably have to re-create them all.
There may be case-by-case way to refresh them, for example Locale-dependent layout may be taken into account dynamically. Try and tell us. -
How to change table border color in DW CS6
I need to know how to change the color of the border around my tables in Dreamweaver CS6. I saw a article on how to change it on http://forums.adobe.com/message/4451812, but i really couldnt follow because im just starting out using dreamweaver and i dont know anything about code. Is there a simple way to change the border color or can you give me a basic step process on how to change the border color in the code?
Just an FYI, nobody uses Table-based layouts anymore. It's much better to use CSS for layouts. Only use tables for tabular data like spreadsheets and charts.
Dreamweaver has a bunch of pre-built CSS Layouts for you to use as starter pages. Just go to File > New > Blank page > HTML. Pick a layout from the 3rd panel and hit Create button. See screenshot below.
Nancy O. -
How to change the schedule line date in SO with reference to value contract
Hi SD Guru's,
I need to change the schedule line date in the sales order with reference to the value contract by using some algorithm that i will write. The problem that i can't find the suitable place to add the algorithm. I can't add it to the Copy control because there is no schedule lines in value contract and copy control for schedule lines does no exist.
I can not add to user exit MV45AFZZ , because order that was created with reference to the value contract, does not go through this user exit.
Do you have some ideas where i can add it?
Thanks and Regards
Viky
Edited by: Viky Sloutsky on Oct 20, 2010 12:43 PMHello Viky
How about using program MV45AFZB- USEREXIT_CHECK_VBEP or USEREXIT_MOVE_FIELD_TO_VBEPKOM
or program FV45EFZ1- USEREXIT_CHANGE_SALES_ORDER
Does the program go through these exits when an order is created with ref to a value contract??
Also I am wondering why you need to change a Schedule line determined by Availability check and/or delivery scheduling? -
How to change length of line in Photoshop CS3
I must be being really stupid, but I can't find out how to change the length of a line I've drawn in PS using the line tool. Can anyone help me out?
Which type of line did you draw?
Filled pixels, Shape Layer or Path?
If filled pixels, then it's just like with any other pixelsyou have to erase them, or or make a selection and delete them. To lengthen, you'll have to use the Transform function.
If you created your line as a Shape Layer or as a plain path, they are both defining the line as vector elements. If you look very closely, you'll see that the line is actually a thin rectangle-shaped patha boxif you will.
In this case you can use the Path Selection Tool to select two of the anchor points and move them manually, or you can select the entire path and then use the Transform Path function (Command + T) and input values in the Options Bar to transform the points numerically. -
How to get multiple header lines dynamically and also data hierarchically using ALV
Hi experts,
My requirement is shown below.. I neet to compare prices of service RFQs. So i design as below..
I want to get RFQ number ,Vendor code and vendor name in ALV header and also other headings which static. I think dynamic table is the best way to load RFQ numbers to header.. But problem is i'm unable to load two lines dynamically using ALV.
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
i_style_table = 'X'
it_fieldcatalog = gt_dyn_fcat
IMPORTING
ep_table = gt_dyn_table
EXCEPTIONS
generate_subpool_dir_full = 1
OTHERS = 2.
I use this function and pass RFQ no and vendor code in two rows but it output gt_dyn_table in same row.. How to print them as given image???
Then in data I want to get service items and according to the external service number divide them to groups and get sub totals and also finally total of all sub categories to compare each RFQs price to compare.. There i think ALV hierarch can use. but not sure I can use with dynamic table(in header use it).
What is thee best way to get the output in my image..??
Thanks..
PaviHi experts,
My requirement is shown below.. I neet to compare prices of service RFQs. So i design as below..
I want to get RFQ number ,Vendor code and vendor name in ALV header and also other headings which static. I think dynamic table is the best way to load RFQ numbers to header.. But problem is i'm unable to load two lines dynamically using ALV.
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
i_style_table = 'X'
it_fieldcatalog = gt_dyn_fcat
IMPORTING
ep_table = gt_dyn_table
EXCEPTIONS
generate_subpool_dir_full = 1
OTHERS = 2.
I use this function and pass RFQ no and vendor code in two rows but it output gt_dyn_table in same row.. How to print them as given image???
Then in data I want to get service items and according to the external service number divide them to groups and get sub totals and also finally total of all sub categories to compare each RFQs price to compare.. There i think ALV hierarch can use. but not sure I can use with dynamic table(in header use it).
What is thee best way to get the output in my image..??
Thanks..
Pavi -
I set up an autoreply but i cannot work out how to change the subject line to the one I want
I set up an automatic reply but the subject line come up as re: and what the other person wrote. I want to change the subject line to a set one to all emails. How can I do that?
What email program are we referring to?
-
How to change a item type dynamically?
Is it possible to change a item type dynamically?
For example.
I've got a page with 2 items. The first is a select list and the second is a date picker. The select list contains two values, 1 and 2.
If value 1 is selected the second item needs to remain a date picker. If value 2 is selected the second item needs to become a Text Field (disabled saves state).
Anyone got an idea?
Thx. Frank.Frank,
It's not possible to change the item type dynamically as you describe it below. However, to achieve a similar effect you could do the following:
1) Make the Select List a Select List With Submit.
2) Have a Date Picker AND a Text Field on the page.
3) Make the display of the Date Picker item conditional on the relevant value having been chosen from the Select List.
4) Make the display of the Text Item conditional on the other value having been chosen from the Select List.
Andy
http://atulley.wordpress.com/ -
How to change draw dashed line with arrowhead (not straight)?
Hi friends,
The following code sinept draws an arrowed line from a given point to the other point. I want to know how it can changed to be dashed line as well? I would appreciate it if anybody help me for doing such changes.
Thanks in advance,
Reza_mp
import javax.swing.*;
import java.awt.*;
import java.util.ArrayList;
public class ArrowExample extends JFrame
enum ArrowHead {
HEIGHT(10), WIDTH(10);
int n;
ArrowHead(int n) {this.n = n;}
public int value() {return n;}
java.util.List<Arrow> arrows;
BasicStroke stroke;
private class Arrow {
Point start;
Point end;
Polygon arrowHead;
public Arrow(Point start, Point end) {
this.start = start;
this.end = end;
double direction = Math.atan2(end.y - start.y, end.x - start.x);
System.out.println(direction * 180/Math.PI);
arrowHead = new Polygon();
arrowHead.addPoint(0, 0);
Point p1 = rotate(ArrowHead.WIDTH.value()/2, ArrowHead.HEIGHT.value(), direction);
arrowHead.addPoint(p1.x, p1.y);
Point p2 = rotate(-ArrowHead.WIDTH.value()/2, ArrowHead.HEIGHT.value(), direction);
arrowHead.addPoint(p2.x, p2.y);
arrowHead.addPoint(0, 0);
arrowHead.translate(end.x, end.y);
public Point rotate(int x, int y, double dir) {
Point p = new Point();
double r = Math.sqrt(x*x + y*y);
double theta = Math.atan2(y, x);
p.setLocation(Math.round(r*Math.cos(theta + dir + Math.PI/2)),
Math.round(r*Math.sin(theta + dir + Math.PI/2)));
return p;
public void draw(Graphics2D g) {
g.drawLine(start.x, start.y, end.x, end.y);
g.drawPolygon(arrowHead);
g.fillPolygon(arrowHead);
public ArrowExample() {
super("Arrows");
setDefaultCloseOperation(EXIT_ON_CLOSE);
JPanel p = new JPanel() {
protected void paintComponent(Graphics g) {
super.paintComponent(g);
Graphics2D g2d = (Graphics2D)g;
Stroke oldStroke = g2d.getStroke();
Color oldColor = g2d.getColor();
g2d.setStroke(stroke);
g2d.setColor(Color.black);
for (Arrow a : arrows)
a.draw(g2d);
g2d.setStroke(oldStroke);
g2d.setColor(oldColor);
p.setBackground(Color.white);
add(p, BorderLayout.CENTER);
stroke = new BasicStroke(3);
arrows = new ArrayList<Arrow>();
arrows.add(new Arrow(new Point(10,10), new Point(100,100)));
arrows.add(new Arrow(new Point(300,10), new Point(300,100)));
arrows.add(new Arrow(new Point(450,450), new Point(400,100)));
pack();
setSize(500, 500);
public static void main(String[] args) {
setDefaultLookAndFeelDecorated(true);
SwingUtilities.invokeLater(new Runnable() {
public void run() {
new ArrowExample().setVisible(true);
}Change the draw method as follows:
public void draw(Graphics2D g) {
Stroke s = g.getStroke();
g.setStroke( new BasicStroke( 3.0f, BasicStroke.CAP_BUTT,
BasicStroke.JOIN_MITER, 1.0f, new float[] { 10.0f, 10.0f }, 0.0f ) );
g.drawLine(start.x, start.y, end.x, end.y);
g.setStroke( s );
g.drawPolygon(arrowHead);
g.fillPolygon(arrowHead);
} -
How to change the JCA JNDI dynamically using FTP Adapter
We have 5 FTP Servers, each having a directory to poll. We have created 5 CCI instances for these FTP Adapters in the FTPAdapter deployment. We created a BPEL process and using FTP Adapter to connect to above mentioned servers.
Question: Customer's requirement is to use a single BPEL process to poll all these FTP Servers at a specified date and time. How can we connect dynamically to each FTP server at specified time.
(OR)
Is there any way to change the JCAJNDI dynamically in a FTP Adapter configuration ?
I have seen that FTP Adapter POLL doesnt take any JCA JNDI/hostname/un/pwd/date/time dynamically.
Regards
PavanHi Pavan,
It's possible to change the JNDI dynamically but only when you use put operation where you can control the JNDI name at the time of invoking the FTP Adapter as described in below link.
Dynamic JNDI in FTP Adapter | jca.jndi property not picked by Adapter
However, can you consider using BPEL process with SyncRead (and read files through all the JNDIs in a loop) and scheduling this BPEL process to a desired frequency?
Regards,
Neeraj Sehgal -
How to change an existing line item in CCM catalog using CSV file?
Dear All,
We are using SRM5.0 and CCM 2.0
We have uploaded the material and service master to CCM as supplier catalog from R/3.
The initial Upload was doen successfully.
My query is how to reflect the delta changes in CCM happening in R/3?
If I can generate a CSV file with all those items wich has been changed (Changes can be in description, Plant, status etc) and upload the same file in CCM, will it update the existing line in CCM or create a new line item?
How do i update an existing line item in CCM catalog using a CSV file?
Thanks
AbhishekHi Atul,
I am using CCM 2.0 and SRM 5.0 (EBP5.5).
We are not using XI, so i guess we cant use the program "/ccm/file_upload".
we have migrated the product master data from R/3.
We have developed a report which takes product category as input and gives out flat file in csv format containg all the items in that prod category.
Then we upload the file in CCM by logging thro the brpwser.
Similarly, i can develop another program which will give me a CSV file foll all those items changed in R/3 in a day.
Then we can upload that file in CCM.
But i have doubt if it will update the existing items in catalog.
Hope I could make myself clear.
Thanks
Abhishek -
How to change the border of a button.
Hi,
I use a togglebutton with following condition.
toogglebutton.setBorder(null);
toogglebutton.setContentAreaFilled(false);
now if i select the button it give a dotted border whereas i want a lot blue line border.
How to do this.???
thanx
neelMake a class that extends JToglleButton and then override paintBorder(Graphics g) --method
Here you can draw a border as you like
ps. don't forget the @Override --annotation -
How to change series or line color in excel 2007 using ActiveX
I am trying to change series color using Excel 2007 with ActiveX as below. It seems the color cannot be controlled correctly. For example, if I chosse red color, my curve will be changed to blue. Any ideas?
Also, I googled and found a guy ran into similiar problem using VBA for Excel 2007. See the link below:
http://help.wugnet.com/office/change-series-line-color-excel-2007-vba-ftopict1062646.html
Set ch = Worksheets("Chart").ChartObjects(1)
Set objSeries = ch.Chart.SeriesCollection(1)
objSeries.Format.Line.ForeColor.RGB = RGB(255, 127, 0)
According to the post, it need to be done as follows
objSeries.Border.Color = RGB(255, 127, 0) . But I cannot find the border property/method in ActiveX.
The color seems to be abitrary. and I found the Xubuli,
I looked into your question and confirmed that Border.Color is not located under the Excel.Series library. Instead, you must locate it under _Worksheet.UsedRange as seen below in the figure. I am attaching the VI file where I located the the Border.Color property node, and I am also including a SubVI on the block diagram that goes into explicitly set the cell color and border. This SubVI can be found under Programming>>Report Generation>>Excel Specific>>Excel Format>>Excel Set Cell Color and Border.vi, if you have the Report Generation Toolkit installed. I hope this helps.
Larry H
Applications Engineer
National Instruments
Attachments:
CellBorder.vi 8 KB -
How to change to new line?
the follow is part of my codes:
FileOutputStream fos = new FileOutputStream("seperate.txt");
DataOutputStream dos = new DataOutputStream(fos);
dos.writeChars("the one that i will not love any more has occupied this line");
dos.writeChars("\n");
dos.writeChars("\n i want to stand on a new line!! ");
dos.wrietChars("and embrace a fresh sun tomorrow!");
fos.close(); dos.close();
in the output file - seperate.txt, all the "\n" do not work, that is all the Strings stand on just one line.
how to seperate them?
thanks a lot more!the follow is part of my codes:
FileOutputStream fos = new
FileOutputStream("seperate.txt");
DataOutputStream dos = new DataOutputStream(fos);
dos.writeChars("the one that i will not love any
y more has occupied this line");
dos.writeChars("\n");
dos.writeChars("\n i want to stand on a new line!!
dos.wrietChars("and embrace a fresh sun
n tomorrow!");
fos.close(); dos.close();
in the output file - seperate.txt, all the "\n" do not
work, that is all the Strings stand on just one line.
how to seperate them? You get the line seperator with:
System.getProperty("line.separator");
>
thanks a lot more!Hope it helps -
How to change Id of a dynamically created child element?
Hi,
I would like to change the id of the dynamically created elements in order to work easily with their later. Currently, edge automatically generate an random id like "eid_1376057792551" for each element.
There is my code :
sym.setVariable("labels", {
content2: "Visiteur",
content3: "Exposant",
content4: "Organisateur",
content5: "Contact",
content6: "Connexion"
// Clear initial state
sym.getSymbol("tab").deleteSymbol();
// Find all large symbols in the library
var prefix = "content"; // content1, content2 ... content99
var allTabs = [];
var symbolDefns = sym.getComposition().symbolDefns;
for (var key in symbolDefns) {
if (symbolDefns.hasOwnProperty(key) && key.search(new RegExp(prefix+"[0-9]{1,2}"))!=-1 ) {
var tab = sym.createChildSymbol( "tab", "navigation" );
tab.setVariable("contentId", key);
allTabs.push(tab);
tab.$("btnLabel").html( sym.getVariable("labels")[key] || "" );
$tabEl = tab.getSymbolElement();
$tabEl.data("sym", tab);
$tabEl.css({float: "left", margin: "0 -1px 15px 0"});
$tabEl.click(function(evt){
var tabSym = $(evt.currentTarget).data("sym");
$.each(allTabs, function(index,item) {
if (item != tabSym) { item.stop("normal"); item.setVariable("active", false); }
var $content = sym.$("content").empty();
sym.createChildSymbol(tabSym.getVariable("contentId"), "content");
Thank you .hi - trying to get this to work with no luck.
a simple example as i understand it:
var test = sym.createChildSymbol("rect", "Stage");
test.attr("id","test2");
would that work in changing the id of the newly created symbol to test2?
thanks!
Maybe you are looking for
-
Blank Screen after entering password
I seem to be encountering an intermittent issue when entering my password at logon. I would enter the password and the little 'busy' circle would spin attempting log in but after a few seconds rather than seeing my desktop I just have a blank screen.
-
IMac, 2010, will not boot after update
After downloading Yosemite, my 2010, 27" iMac will not reboot. It appeared to install ok but it stayed white screen, no text for more than an hour after it automatically rebooted. Idaes?
-
I'm trying to sync a 4s so that it can be activated w ATT...my computer says that I need to have 11.1 or higher in order to do that but when I download from the itunes site nothing happens and I still can't sync phone...what am I doing wrong?
-
Unable to select modem in the "Show" field in System Prefs, Network
I think I may have asked this in the wrong place before. I really would appreciate any help or advice anyone can give!! I've just moved and I'm trying to get the modem there to work with my iBook G4. The modem definitely works and it's all definitely
-
I have an I book G3 about 3.5 years old. I had the logic board replaced two times under warranty and now the IBook will not work on the battery. I took it for repair and they said that it is the logic board and only Apple will replace it for $400 and