How to get an ImageIcon
Hi!
I havent found a method to get the absolute path of an ImageIcon/Image i produced this way:
Image img;
img = getToolkit().getImage( chooser.getSelectedFile().getAbsolutePath() );
jLabel9.setIcon( new ImageIcon( img ) );
I need a String with the absolute path of the ImageIcon/Image.
thanks
Maybe I misunderstood...But you already have the absolute path as a String, just save it in a variable.
Like this.
String theAbsolutePath = chooser.getSelectedFile.getAbsolutePath();Then use theAbsolutePath variable in your call to getToolkit().getImage().
HTH,
Fredrik
Similar Messages
-
How can I get an ImageIcon back from a JToggleButton...
When I create a JToggleButton I have to create an ImageIcon and pass it to the constructor.
e.g. JToggleButton toggleButtonA = new JToggleButton( new ImageIcon( "images/A.gif" ) );
But when I want to get that ImageIcon back, all I can find in the documentation is getIcon(), which is much more limited in what I can do with it.
How can I get my ImageIcon back?
I've seen some people just paint the button on a new ImageIcon, but then it's not the same image, it has the button look around the original icon, not to mention since it's a toggle button you actually get the selectedIcon() instead.
Please help. Thanks.All you basically have to do is use getIcon() and cast it to an ImageIcon... here's an example:
import java.awt.*;
import javax.swing.*;
public class ImageIconGrab {
public static void main(String[] args) {
JFrame frame = new JFrame("ImageIcon Grabber");
JToggleButton jtb = new JToggleButton(new ImageIcon("pregoico.gif"));
ImageIcon ii = (ImageIcon) jtb.getIcon();
JToggleButton jtb2 = new JToggleButton(ii);
frame.getContentPane().add(jtb, BorderLayout.NORTH);
frame.getContentPane().add(jtb2, BorderLayout.SOUTH);
frame.pack();
frame.setVisible(true); -
How to get a string or byte array representation of an Image/BufferedImage?
I have a java.awt.Image object that I want to transfer to a server application (.NET) through a http post request.
To do that I would like to encode the Image to jpeg format and convert it to a string or byte array to be able to send it in a way that the receiver application (.NET) could handle. So, I've tried to do like this.
private void send(Image image) {
int width = image.getWidth(null);
int height = image.getHeight(null);
try {
BufferedImage buffImage = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
ImageIcon imageIcon = new ImageIcon(image);
ImageObserver observer = imageIcon.getImageObserver();
buffImage.getGraphics().setColor(new Color(255, 255, 255));
buffImage.getGraphics().fillRect(0, 0, width, height);
buffImage.getGraphics().drawImage(imageIcon.getImage(), 0, 0, observer);
ByteArrayOutputStream stream = new ByteArrayOutputStream();
JPEGImageEncoder jpeg = JPEGCodec.createJPEGEncoder(stream);
jpeg.encode(buffImage);
URL url = new URL(/* my url... */);
URLConnection connection = url.openConnection();
String boundary = "--------" + Long.toHexString(System.currentTimeMillis());
connection.setRequestProperty("method", "POST");
connection.setRequestProperty("Content-Type", "multipart/form-data; boundary=" + boundary);
String output = "--" + boundary + "\r\n"
+ "Content-Disposition: form-data; name=\"myImage\"; filename=\"myFilename.jpg\"\r\n"
+ "Content-Type: image/jpeg\r\n"
+ "Content-Transfer-Encoding: base64\r\n\r\n"
+ new String(stream.toByteArray())
+ "\r\n--" + boundary + "--\r\n";
connection.setDoOutput(true);
connection.getOutputStream().write(output.getBytes());
connection.connect();
} catch {
}This code works, but the image I get when I save it from the receiver application is distorted. The width and height is correct, but the content and colors are really weird. I tried to set different image types (first line inside the try-block), and this gave me different distorsions, but no image type gave me the correct image.
Maybe I should say that I can display the original Image object on screen correctly.
I also realized that the Image object is an instance of BufferedImage, so I thought I could skip the first six lines inside the try-block, but that doesn't help. This way I don't have to set the image type in the constructor, but the result still is color distorted.
Any ideas on how to get from an Image/BufferedImage to a string or byte array representation of the image in jpeg format?Here you go:
private static void send(BufferedImage image) throws Exception
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
ImageIO.write(image, "jpeg", byteArrayOutputStream);
byte[] imageByteArray = byteArrayOutputStream.toByteArray();
URL url = new URL("http://<host>:<port>");
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.setDoOutput(true);
connection.setRequestMethod("POST");
OutputStream outputStream = connection.getOutputStream();
outputStream.write(imageByteArray, 0, imageByteArray.length);
outputStream.close();
connection.connect();
// alternative to connect is to get & close the input stream
// connection.getInputStream().close();
} -
How to get the full path instead of just the file name, in �FileChooser� ?
In the FileChooserDemo example :
In the statement : log.append("Saving: " + file.getName() + "." + newline);
�file.getName()� returns the �file name�.
My question is : How to get the full path instead of just the file name,
e.g. C:/xdirectory/ydirectory/abc.gif instead of just abc.gif
import java.io.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.filechooser.*;
public class FileChooserDemo extends JFrame {
static private final String newline = "\n";
public FileChooserDemo() {
super("FileChooserDemo");
//Create the log first, because the action listeners
//need to refer to it.
final JTextArea log = new JTextArea(5,20);
log.setMargin(new Insets(5,5,5,5));
log.setEditable(false);
JScrollPane logScrollPane = new JScrollPane(log);
//Create a file chooser
final JFileChooser fc = new JFileChooser();
//Create the open button
ImageIcon openIcon = new ImageIcon("images/open.gif");
JButton openButton = new JButton("Open a File...", openIcon);
openButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
int returnVal = fc.showOpenDialog(FileChooserDemo.this);
if (returnVal == JFileChooser.APPROVE_OPTION) {
File file = fc.getSelectedFile();
//this is where a real application would open the file.
log.append("Opening: " + file.getName() + "." + newline);
} else {
log.append("Open command cancelled by user." + newline);
//Create the save button
ImageIcon saveIcon = new ImageIcon("images/save.gif");
JButton saveButton = new JButton("Save a File...", saveIcon);
saveButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
int returnVal = fc.showSaveDialog(FileChooserDemo.this);
if (returnVal == JFileChooser.APPROVE_OPTION) {
File file = fc.getSelectedFile();
//this is where a real application would save the file.
log.append("Saving: " + file.getName() + "." + newline);
} else {
log.append("Save command cancelled by user." + newline);
//For layout purposes, put the buttons in a separate panel
JPanel buttonPanel = new JPanel();
buttonPanel.add(openButton);
buttonPanel.add(saveButton);
//Explicitly set the focus sequence.
openButton.setNextFocusableComponent(saveButton);
saveButton.setNextFocusableComponent(openButton);
//Add the buttons and the log to the frame
Container contentPane = getContentPane();
contentPane.add(buttonPanel, BorderLayout.NORTH);
contentPane.add(logScrollPane, BorderLayout.CENTER);
public static void main(String[] args) {
JFrame frame = new FileChooserDemo();
frame.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
frame.pack();
frame.setVisible(true);simply use file.getPath()
That should do it!Thank you !
It takes care of the problem !! -
How to get format from textpane?
iam changing the color and inserting image in jtextpane after i have to send a mail.
how to get that formatted data and send to mail plz help in this case.
change the code and send it. plz...............
import java.awt.*;
import javax.swing.*;
import javax.swing.JTabbedPane.*;
import java.awt.event.*;
import java.io.*;
import javax.swing.event.*;
import javax.swing.text.*;
import javax.swing.text.rtf.*;
import java.util.*;
import javax.mail.*;
import javax.mail.internet.*;
import javax.activation.*;
public class loginform extends JFrame {
JTabbedPane jtp = new JTabbedPane();
public loginform() {
Container c = getContentPane();
JTabbedPane jtp = new JTabbedPane();
jtp.addTab("COMPOSEMAIL", new ComposeMailPanel());
c.add(jtp);
c.validate();
}//method
public static void main(String a[]) throws Exception {
loginform s = new loginform();
s.setSize(800, 800);
s.setVisible(true);
}//main
}//mainclass
class ComposeMailPanel extends JPanel implements ActionListener {
JTextField BCC;
int start;
int end;
JLabel JLabel1;
JLabel JLabel2;
JLabel JLabel3;
JLabel JLabel4;
JFrame mainFrame = new JFrame();
JTextField from;
JTextField subject;
JButton Send;
String mailsentaddress = "";
JButton bInsertPic = new JButton("P");
JButton bForegroundColor = new JButton("F");
JFileChooser insertIconFile = new JFileChooser();
JColorChooser backgroundChooser = new JColorChooser();
JColorChooser foregroundChooser = new JColorChooser();
Color foregroundColor;
JTextPane mainTextPane = new JTextPane();
SimpleAttributeSet sas = new SimpleAttributeSet();
MutableAttributeSet sas1 = new SimpleAttributeSet();
StyleContext sc = new StyleContext();
MutableAttributeSet mas;
DefaultStyledDocument dse = new DefaultStyledDocument(sc);
JScrollPane mainScrollPane = new JScrollPane(mainTextPane, ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
RTFEditorKit rtfkit = new RTFEditorKit();
Dimension Size1 = new Dimension();
public ComposeMailPanel() {
setLayout(null);
mainTextPane.setBounds(150, 325, 572, 150);
mainTextPane.setContentType("text/html");
mainTextPane.setEditorKit(rtfkit);
mainTextPane.setDocument(dse);
mainScrollPane.setBounds(150, 325, 572, 155);
bInsertPic.setBounds(150, 300, 20, 20);
bForegroundColor.setBounds(171, 300, 20, 20);
add(mainScrollPane);
add(bInsertPic);
add(bForegroundColor);
mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
bInsertPic.addActionListener(this);
bInsertPic.setToolTipText("Insert picture");
bForegroundColor.addActionListener(this);
bForegroundColor.setToolTipText("Text color");
JLabel1 = new JLabel("FROM :");
add(JLabel1);
JLabel1.setBounds(30, 205, 110, 20);
JLabel2 = new JLabel("BCC :");
add(JLabel2);
JLabel2.setBounds(30, 235, 110, 20);
JLabel3 = new JLabel("SUBJECT :");
add(JLabel3);
JLabel3.setBounds(30, 265, 110, 20);
JLabel4 = new JLabel("MESSAGE :");
add(JLabel4);
JLabel4.setBounds(30, 325, 110, 20);
from = new JTextField();
add(from);
from.setBounds(150, 210, 577, 20);
BCC = new JTextField();
add(BCC);
BCC.setBounds(150, 240, 577, 20);
subject = new JTextField();
add(subject);
subject.setBounds(150, 270, 577, 20);
Send = new JButton("Send");
add(Send);
Send.setBounds(720, 495, 65, 20);
Send.addActionListener(this);
}// constructor
public void setAttributeSet(AttributeSet attr) {
int xStart, xFinish, k;
xStart = mainTextPane.getSelectionStart();
xFinish = mainTextPane.getSelectionEnd();
k = xFinish - xStart;
if (xStart != xFinish) {
dse.setCharacterAttributes(xStart, k, attr, true);
} else if (xStart == xFinish) {
mas = rtfkit.getInputAttributes();
mas.addAttributes(attr);
// The below command line sets the focus to the JTextPane
mainTextPane.grabFocus();
public void actionPerformed(ActionEvent ae1) {
JComponent b = (JComponent) ae1.getSource();
String str3 = null;
if (b == bInsertPic) {
insertIconFile.setDialogType(JFileChooser.OPEN_DIALOG);
insertIconFile.setDialogTitle("Select a picture to insert into document");
if (insertIconFile.showDialog(mainFrame, "Insert") != JFileChooser.APPROVE_OPTION) {
return;
File g = insertIconFile.getSelectedFile();
ImageIcon image1 = new ImageIcon(g.toString());
mainTextPane.insertIcon(image1);
mainTextPane.grabFocus();
} else if (b == bForegroundColor) {
foregroundColor = foregroundChooser.showDialog(mainFrame,"Color Chooser", Color.white);
if (foregroundColor != null) {
String s1 = mainTextPane.getSelectedText();
StyleConstants.setForeground(sas, foregroundColor);
setAttributeSet(sas);
} else if (ae1.getSource() == Send) {
String From = "";
String To = "";
String Subject = "";
String Body = "";
String Attachment = "";
String Hostname = "";
From = from.getText();
To = BCC.getText();
Subject = subject.getText();
try {
int ki = mainTextPane.getDocument().getLength();
Body = mainTextPane.getStyledDocument().getText(0, ki);
Hostname = "192.9.200.2";
SmtpAttachmentExample example1 = new SmtpAttachmentExample();
example1.sendMessage1(Hostname, To, From, Subject, Body);
mailsentaddress = BCC.getText();
} catch (Exception we1) {
class SmtpAttachmentExample {
public void sendMessage1(String hostname, String to, String from,
String subject, String body) {
try {
Properties props = System.getProperties();
props.put("mail.smtp.host", hostname);
Session mailsession = Session.getDefaultInstance(props, null);
Message message = new MimeMessage(mailsession);
message.setFrom(new InternetAddress(from));
message.setRecipients(Message.RecipientType.TO, InternetAddress.parse(to, false));
message.setSubject(subject);
message.setSentDate(new Date());
MimeBodyPart messageBodyPart = new MimeBodyPart();
messageBodyPart.setText(body);
Multipart multipart = new MimeMultipart();
multipart.addBodyPart(messageBodyPart);
message.setContent(multipart);
Transport.send(message);
} catch (Exception ert) {
}//withoutattachement
}thanks in advance
rajahere it is...simple is'nt it???
package jwsdp.test;
import java.awt.Color;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.util.Properties;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JColorChooser;
import javax.swing.JComponent;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTabbedPane;
import javax.swing.JTextField;
import javax.swing.JTextPane;
import javax.swing.ScrollPaneConstants;
import javax.swing.text.AttributeSet;
import javax.swing.text.DefaultStyledDocument;
import javax.swing.text.MutableAttributeSet;
import javax.swing.text.SimpleAttributeSet;
import javax.swing.text.StyleConstants;
import javax.swing.text.StyleContext;
import javax.swing.text.rtf.RTFEditorKit;
import javax.mail.*;
import javax.mail.internet.*;
import javax.activation.*;
public class loginform extends JFrame {
JTabbedPane jtp = new JTabbedPane();
public loginform() {
Container c = getContentPane();
JTabbedPane jtp = new JTabbedPane();
jtp.addTab("COMPOSEMAIL", new ComposeMailPanel());
c.add(jtp);
c.validate();
}//method
public static void main(String a[]) throws Exception {
loginform s = new loginform();
s.setSize(800, 800);
s.setVisible(true);
}//main
}//mainclass
class ComposeMailPanel extends JPanel implements ActionListener {
JTextField BCC;
int start;
int end;
JLabel JLabel1;
JLabel JLabel2;
JLabel JLabel3;
JLabel JLabel4;
JFrame mainFrame = new JFrame();
JTextField from;
JTextField subject;
JButton Send;
String mailsentaddress = "";
JButton bInsertPic = new JButton("P");
JButton bForegroundColor = new JButton("F");
JFileChooser insertIconFile = new JFileChooser();
JColorChooser backgroundChooser = new JColorChooser();
JColorChooser foregroundChooser = new JColorChooser();
Color foregroundColor;
JTextPane mainTextPane = new JTextPane();
SimpleAttributeSet sas = new SimpleAttributeSet();
MutableAttributeSet sas1 = new SimpleAttributeSet();
StyleContext sc = new StyleContext();
MutableAttributeSet mas;
DefaultStyledDocument dse = new DefaultStyledDocument(sc);
JScrollPane mainScrollPane = new JScrollPane(mainTextPane, ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
RTFEditorKit rtfkit = new RTFEditorKit();
Dimension Size1 = new Dimension();
public ComposeMailPanel() {
setLayout(null);
mainTextPane.setBounds(150, 325, 572, 150);
mainTextPane.setContentType("text/html");
mainTextPane.setEditorKit(rtfkit);
mainTextPane.setDocument(dse);
mainScrollPane.setBounds(150, 325, 572, 155);
bInsertPic.setBounds(150, 300, 20, 20);
bForegroundColor.setBounds(171, 300, 20, 20);
add(mainScrollPane);
add(bInsertPic);
add(bForegroundColor);
mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
bInsertPic.addActionListener(this);
bInsertPic.setToolTipText("Insert picture");
bForegroundColor.addActionListener(this);
bForegroundColor.setToolTipText("Text color");
JLabel1 = new JLabel("FROM :");
add(JLabel1);
JLabel1.setBounds(30, 205, 110, 20);
JLabel2 = new JLabel("BCC :");
add(JLabel2);
JLabel2.setBounds(30, 235, 110, 20);
JLabel3 = new JLabel("SUBJECT :");
add(JLabel3);
JLabel3.setBounds(30, 265, 110, 20);
JLabel4 = new JLabel("MESSAGE :");
add(JLabel4);
JLabel4.setBounds(30, 325, 110, 20);
from = new JTextField();
add(from);
from.setBounds(150, 210, 577, 20);
BCC = new JTextField();
add(BCC);
BCC.setBounds(150, 240, 577, 20);
subject = new JTextField();
add(subject);
subject.setBounds(150, 270, 577, 20);
Send = new JButton("Send");
add(Send);
Send.setBounds(720, 495, 65, 20);
Send.addActionListener(this);
}// constructor
public void setAttributeSet(AttributeSet attr) {
int xStart, xFinish, k;
xStart = mainTextPane.getSelectionStart();
xFinish = mainTextPane.getSelectionEnd();
k = xFinish - xStart;
if (xStart != xFinish) {
dse.setCharacterAttributes(xStart, k, attr, true);
} else if (xStart == xFinish) {
mas = rtfkit.getInputAttributes();
mas.addAttributes(attr);
// The below command line sets the focus to the JTextPane
mainTextPane.grabFocus();
public void actionPerformed(ActionEvent ae1) {
JComponent b = (JComponent) ae1.getSource();
String str3 = null;
if (b == bInsertPic) {
insertIconFile.setDialogType(JFileChooser.OPEN_DIALOG);
insertIconFile.setDialogTitle("Select a picture to insert into document");
if (insertIconFile.showDialog(mainFrame, "Insert") != JFileChooser.APPROVE_OPTION) {
return;
File g = insertIconFile.getSelectedFile();
ImageIcon image1 = new ImageIcon(g.toString());
mainTextPane.insertIcon(image1);
mainTextPane.grabFocus();
} else if (b == bForegroundColor) {
foregroundColor = foregroundChooser.showDialog(mainFrame,"Color Chooser", Color.white);
if (foregroundColor != null) {
String s1 = mainTextPane.getSelectedText();
StyleConstants.setForeground(sas, foregroundColor);
setAttributeSet(sas);
} else if (ae1.getSource() == Send) {
String From = "";
String To = "";
String Subject = "";
String Body = "";
String Attachment = "";
String Hostname = "";
From = from.getText();
To = BCC.getText();
Subject = subject.getText();
try {
int ki = mainTextPane.getDocument().getLength();
ByteArrayOutputStream l_out = new ByteArrayOutputStream(); // added by Guilllaume
mainTextPane.getEditorKit().write(l_out,mainTextPane.getDocument(),0,ki); // added by Guilllaume
Body = new String(l_out.toByteArray()); // added by Guilllaume
// Body = mainTextPane.getStyledDocument().getText(0, ki); // supress by Guilllaume
Hostname = "192.9.200.2";
SmtpAttachmentExample example1 = new SmtpAttachmentExample();
example1.sendMessage1(Hostname, To, From, Subject, Body);
mailsentaddress = BCC.getText();
} catch (Exception we1) {
class SmtpAttachmentExample {
public void sendMessage1(String hostname, String to, String from,
String subject, String body) {
try {
Properties props = System.getProperties();
props.put("mail.smtp.host", hostname);
Session mailsession = Session.getDefaultInstance(props, null);
Message message = new MimeMessage(mailsession);
message.setFrom(new InternetAddress(from));
message.setRecipients(Message.RecipientType.TO, InternetAddress.parse(to, false));
message.setSubject(subject);
message.setSentDate(new Date());
MimeBodyPart messageBodyPart = new MimeBodyPart();
messageBodyPart.setText(body);
Multipart multipart = new MimeMultipart();
multipart.addBodyPart(messageBodyPart);
message.setContent(multipart);
Transport.send(message);
} catch (Exception ert) {
}//withoutattachement
} -
How can get a Graphics to draw line on screen?
How can get a Graphics to draw line on screen?
Now, I can get a Graphics to draw line based on component. For example JPanel, but I want to get a Graphics to draw line on screen.By drawing on the screen, I assume you mean drawing outside the bounds of a top-level window like
JFrame or JDialog. You can't do that. At least, without going native and even then that's a dodgey thing
for any platform to let you do. One thing you can do is simulate it with a robot's screen capture:
import java.awt.*;
import java.awt.event.*;
import java.awt.image.*;
import javax.swing.*;
public class X {
public static void main(String[] args) throws Exception {
Rectangle bounds = GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds();
BufferedImage image = new Robot().createScreenCapture(bounds);
Graphics2D g2 = image.createGraphics();
g2.setStroke(new BasicStroke(20));
g2.setPaint(Color.RED);
g2.drawLine(0, 0, bounds.width, bounds.height);
g2.drawLine(bounds.width, 0, 0, bounds.height);
g2.dispose();
JLabel label = new JLabel(new ImageIcon(image));
label.addMouseListener(new MouseAdapter(){
public void mousePressed(MouseEvent evt) {
System.exit(0);
JFrame f = new JFrame();
f.setUndecorated(true);
f.getContentPane().add(label);
f.setBounds(bounds);
f.setVisible(true);
} -
How to get the values from table SKB1 R/3 to SRM
Hi Gurus,
My requirement is to get all the values from the table SKB1 to SRM (i.e. in to an internal table) for doing some validation(G/L account XXXXXX requires an assignment to a CO objectXXXXXX.)
Like wise I have many tables for doing validation in SRM
Help me how to get this, suggest me any Function module with sample code.
OR
Any Standard FM which will give all the values of the fields in the table SKB1 when I pass the key fields G/L account & company code alone so that I can improve the performance.
Suggest me.
Regards
PaulHi,
You can use the FM 's META_READ_TABLE Or RFC_READ_TABLE
Which SRM / Backend system version are you using ?
Are you taking care of the Importing paramater - DELIMITER in this case.. ??*
See related links ->
Re: Retrieving data from R/3 into SRM
Re: Product Search TIME lag
Else you can just call the remote enabled FM "BAPI_GL_ACC_GETDETAIL" from SRM.
BR,
Disha.
Do reward points for useufl answers. -
How to get the values from popup window to mainwindow
HI all,
I want to get the details from popup window.
i have three input fields and one search button in my main window. when i click search button it should display popup window.whenever i click on selected row of the popup window table ,values should be visible in my main window input fields.(normal tables)
now i am able to display popup window with values.How to get the values from popup window now.
I can anybody explain me clearly.
Thanks&Regards
kranthiHi Kranthi,
Every webdynpro component has a global controller called the component controller which is visible to all other controllers within the component.So whenever you want to share some data in between 2 different views you can just make it a point to use the component controller's context for the same. For your requirement (within your popups view context) you will have have to copy the component controllers context to your view. You then will have to (programmatically) fill this context with your desired data in this popup view. You can then be able to read this context from whichever view you want. I hope that this would have made it clear for you. Am also giving you an [example|http://****************/Tutorials/WebDynproABAP/Modalbox/page1.htm] which you can go through which would give you a perfect understanding of all this. In this example the user has an input field in the main view. The user enters a customer number & presses on a pushbutton. The corresponding sales orders are then displayed in a popup window for the user. The user can then select any sales order & press on a button in the popup. These values would then get copied to the table in the main view.
Regards,
Uday -
I had an icloud account in 2009. We set it up as a family plan because my family had just changed from PC to Mac. We never used it and let the plan expire in 2010. My ical will not sync with my new iphone because it is linked to the family plan account that no longer exist. Because I don't remember my password, I tried resetting it. It says the personal information I entered is incorrect, but I know the information is correct...It's my birthday it asks for! Does anyone know how to get that account off of my mac without the account existing?
You were a MobileMe (not iCloud) subscriber in 2009 and this service has been terminated. However the login is an Apple ID and this never expires. What is your operating system? Do you have a MobileMe icon in System Preferences? - if so you should be able to sign out in it, but you may not have an iCloud icon to let you create an iCloud account, though you can do so if your iPhone has iOS 5 or above.
If you are getting login requests or other irritations from your MobileMe account you can go to (user)/Library/Preferences/ByHost and delete all .plist files beginning with com.apple.DotMac or com.apple.idisk, then reboot.
The minimum requirement for iCloud to let you sync your data is 10.7.5 though you can sync through iTunes (except with Mavericks). -
I can't update nor download any apps in itunes. Prompted invalid password, upon checking the apple id was not mine. The id was [email protected] whic is not mine. Pls. Help how to get rid of this. Thank you.
try and delete the apps and re-add them
-
How to get changed data in ALV in Web Dynpro for ABAP
METHOD on_data_check .
DATA:
node_spfli TYPE REF TO if_wd_context_node,
node_sflight TYPE REF TO if_wd_context_node,
itab_sflight2 TYPE if_display_view=>elements_sflight.
node_spfli = wd_context->get_child_node( name = if_display_view=>wdctx_spfli ).
node_sflight = node_spfli->get_child_node( name = if_display_view=>wdctx_sflight ).
CALL METHOD node_sflight->get_static_attributes_table
IMPORTING
table = itab_sflight2.
this code is ..get all data(changed and not changed)
but i want get changed data only, not all data.
how to get changed data?
Edited by: Ki-Joon Seo on Dec 27, 2007 6:04 AMHi,
To get only the changed data in the ALV grid of a WD, you need to capture the "ON_DATA_CHECK" of the ALV grid.
To this please do the following in the ALV initialization of the ALV table settings :
lr_table_settings->set_data_check(
IF_SALV_WD_C_TABLE_SETTINGS=>DATA_CHECK_ON_CELL_EVENT ).
You may also do this:
lr_table_settings->set_data_check( IF_SALV_WD_C_TABLE_SETTINGS=>DATA_CHECK_ON_CHECK_EVENT)
The above two ways would depend on when do you need to check for the changed data. If you want to check the data as soon as it is entered, then use the first method. Else, use the second method.
You need to register an EVENT HANDLER for this event.(You may do this in your VIEW or Component Controller).
In this Event handler, you would find an importing parameter R_PARAM which is a ref type of IF_SALV_WD_TABLE_DATA_CHECK.
The attribute T_MODIFIED_CELLS of this interface IF_SALV_WD_TABLE_DATA_CHECK will contain the modified cells of the ALV with the old & new values. -
How to get title dyanamically in xsl
Hi ,
i am working seo project which is search engine optimigation.
i have one xsl file and i added meta tag like
<title> title</tile>
<meta name="Description" content="MyDescription">
<meta name="Keywords" content="Keyword1, Keyword2, �, KeywordN">
can you please tell me how to get the dynamic title based on the url.
and keyword with commas taking as input title.
i am using javascript but i do not how to call that sciprt in xsl file
this is my xsl file souce code
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt"
xmlns:user="user" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xalan="http://xml.apache.org/xslt" xmlns:i18n="http://apache.org/cocoon/i18n/2.1">
<xsl:param name="pageName"/>
<xsl:param name="titlePage"/>
<xsl:param name="keyword"/>
<!-- start - includes -->
<xsl:include href="../mobility/header.xsl"/>
<xsl:include href="../mobility/footer.xsl"/>
<xsl:include href="../mobility/navigation.xsl"/>
<xsl:include href="../mobility/mobility_content.xsl"/>
<!-- end - includes -->
<xsl:template match="page">
<html>
<head>
<script type="text/javascript">
function test2()
var st= "nissan uk";
str = str.toLowerCase();
str = str.replace(/['"-]/g, ",");
str = str.replace(/\W/g, ",");
str = str.replace(/\s+/g, ",");
window.location();
</script>
<title><xsl:value-of select="$titlePage"/></title>
<xsl:variable name="keywords" select="'keyword'"/>
<xsl:variable name="scriptid" select="test2()"/>
<meta content="We have developed this site to make it easier to access the information you need, when you need it. " name="Description" />
<meta content="{$scriptid}" name="Keywords"/>
<meta content="index, follow" name="Robots"/>
<xsl:comment><xsl:value-of select="$titlePage"/>.We have developed this site to make it easier to access the information you need, when you need it. </xsl:comment>
<link rel="stylesheet" type="text/css" href="/nova/global/css/mobility/mobility.css"/>
<script type="text/javascript" src="/nova/global/js/mobility/ExpandingMenu.js"/>
<script type="text/javascript" src="/nova/global/js/mobility/Popup.js"/>
<script type="text/javascript" src="/nova/global/js/global.js"/>
</head>
<body id="mb_bodyMargin" >
<!-- start - to publish the header details -->
<div id="mb_navtop">
<xsl:call-template name="header"/>
</div>
<!-- end - to publish the header details -->
<div id="mb_navMenu">
<div class="mb_leftContent">
<!-- start - to publish the left navigation -->
<div class="mb_menublock">
<div class="mb_menublockGrayPatch"></div>
<xsl:copy-of select="/page/navigation/node()"/>
</div>
<!-- end - to publish the left navigation -->
<div class="mb_whitePathch"></div>
<!-- start - to publish the Motability image & Related Pags -->
<div class="mb_mobilityimage">
<a>
<xsl:attribute name="href"><xsl:value-of select="collection/image/IMAGE-LINK"/></xsl:attribute>
<img>
<xsl:attribute name="src">/nova/<xsl:value-of select="collection/image/filename"/></xsl:attribute>
<xsl:attribute name="alt"><xsl:value-of select="collection/image/alt"/></xsl:attribute>
<xsl:attribute name="border">0</xsl:attribute>
<xsl:attribute name="class">mb_imgMotability</xsl:attribute>
</img>
</a>
<xsl:apply-templates select="collection" mode="mb_related_links"/>
</div>
<!-- end - to publish the Motability image & Related Pags -->
</div>
<!-- start - to publish the right content & footer details -->
<div class="mb_rightContent">
<xsl:apply-templates select="collection" mode="mobility_home"/>
<xsl:call-template name="footer"/>
</div>
<!-- end - to publish the right content & footer details -->
</div>
</body>
<!-- start - to expand and highlight the selected menu/sub-menu item -->
<xsl:variable name="pageNameWithoutIndex" select="$pageName"/>
<xsl:choose>
<xsl:when test="contains($pageNameWithoutIndex,'/')">
<xsl:variable name="firstNav" select="substring-before($pageNameWithoutIndex,'/')"/>
<xsl:variable name="secondNav" select="substring-after($pageNameWithoutIndex,'/')"/>
<script>
expand('<xsl:value-of select="$firstNav"/>','<xsl:value-of select="$pageNameWithoutIndex"/>');
</script>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="firstNav" select="$pageNameWithoutIndex"/>
<script>
expand('<xsl:value-of select="$firstNav"/>');
</script>
</xsl:otherwise>
</xsl:choose>
<!-- start - to expand and highlight the selected menu/sub-menu item -->
</html>
</xsl:template>
</xsl:stylesheet>
and sitemap.map file is
<?xml version="1.0"?>
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<!-- Reorganised sitemap as follows:- printing pipeline, then main pipeline-->
<!--============================ Views ======================================-->
<map:views>
<map:view from-label="beautify" name="beautify">
<map:transform type="i18n">
<map:parameter name="locale" value="{../locale}"/>
</map:transform>
<map:serialize type="xml"/>
</map:view>
</map:views>
<!--=========================== Pipelines =================================-->
<map:pipelines>
<map:pipeline>
<!--============= to generate Content for navigation ===============================-->
<map:match pattern="navigation.xml">
<map:generate src="cocoon:/navigation_gen.xml"/>
<map:transform src="context:///stylesheets/mobility/navigation.xsl"/>
<map:serialize type="xml"/>
</map:match>
<!--============= to generate Channel information for Mobility =================-->
<map:act type="nscData">
<map:match pattern="navigation_gen.xml">
<map:generate src="cocoon://sitemap-gen_{../locale-path}.xml" />
<map:transform src="context:///stylesheets/mobility/channel.xsl"/>
<map:serialize type="xml"/>
</map:match>
</map:act>
<map:act type="nscData">
<!--============ NOVA - Mobility root pipeline ====================-->
<map:match pattern="">
<map:redirect-to uri="mobility/index.html"/>
</map:match>
<map:match pattern="home/index.*">
<map:redirect-to uri="/home/mobility/index.html"/>
</map:match>
<!--================================= Nissan mobility Home Page =================================-->
<map:match pattern="index.*">
<map:aggregate element="page" label="beautify">
<map:part element="" strip-root="true" src="cocoon:/navigation.xml"/>
<map:part src="cocoon://{../locale-path}/mobility/home.chan"/>
</map:aggregate>
<map:call resource="get_{1}">
<map:parameter name="filename" value="home"/>
<map:parameter name="titlefilename" value="nissan uk,home"/>
<map:parameter name="keywordname" value="nissan,uk,home"/>
</map:call>
</map:match>
<!--=================================== Scheme page =======================================-->
<map:match pattern="scheme/index.*">
<map:aggregate element="page" label="beautify">
<map:part element="" strip-root="true" src="cocoon:/navigation.xml"/>
<map:part src="cocoon://{../locale-path}/mobility/scheme.chan"/>
</map:aggregate>
<map:call resource="get_{1}">
<map:parameter name="filename" value="scheme" />
<map:parameter name="titlefilename" value="nissan uk,scheme"/>
<map:parameter name="keywordname" value="nissan,uk,scheme"/>
</map:call>
</map:match>
<!--====================== For the Scheme sub-menu pages =========================-->
<map:match pattern="scheme/*/index.*">
<map:aggregate element="page" label="beautify">
<map:part element="" strip-root="true" src="cocoon:/navigation.xml"/>
<map:part src="cocoon://{../locale-path}/mobility/scheme/{1}.chan"/>
</map:aggregate>
<map:call resource="get_{2}">
<map:parameter name="filename" value="{1}" />
<map:parameter name="file-path" value="scheme/{1}"/>
<map:parameter name="file-path1" value="Nissan UK,scheme-{1}"/>
<map:parameter name="keywordname" value="nissan,uk,scheme,{1}"/>
</map:call>
</map:match>
<!--====================== For those pages under construction =============-->
<map:match pattern="mobility_centre/index.*">
<map:aggregate element="page" label="beautify">
<map:part element="" strip-root="true" src="cocoon:/navigation.xml"/>
<map:part src="cocoon://{../locale-path}/mobility/mobility_centre.chan"/>
</map:aggregate>
<map:call resource="get_{1}">
<map:parameter name="filename" value="mobility_centre" />
<map:parameter name="titlefilename" value="Nissan UK,mobility_centre" />
</map:call>
</map:match>
<!--====================== For the sub-menu pages under construction=========================-->
<map:match pattern="mobility_centre/*/index.*">
<map:aggregate element="page" label="beautify">
<map:part element="" strip-root="true" src="cocoon:/navigation.xml"/>
<map:part src="cocoon://{../locale-path}/mobility/mobility_centre.chan"/>
</map:aggregate>
<map:call resource="get_{2}">
<map:parameter name="filename" value="{1}" />
<map:parameter name="file-path" value="mobility_centre/{1}"/>
</map:call>
</map:match>
<!--================================== Vehicles page =======================================-->
<map:match pattern="vehicles/index.*">
<map:aggregate element="page" label="beautify">
<map:part element="" strip-root="true" src="cocoon:/navigation.xml"/>
<map:part src="cocoon://{../locale-path}/mobility/vehicles.chan"/>
<map:part element="passenger" src="cocoon://{../locale-path}/mobility/vehicles/passenger.chan"/>
<map:part element="lcv" src="cocoon://{../locale-path}/mobility/vehicles/lcv.chan"/>
<map:part element="four-by-four" src="cocoon://{../locale-path}/mobility/vehicles/4x4.chan"/>
</map:aggregate>
<map:call resource="get_{1}">
<map:parameter name="filename" value="vehicles" />
<map:parameter name="titlefilename" value="nissan uk,vehicles"/>
</map:call>
</map:match>
<!--=============================== For Vehicles sub-menu pages =============================-->
<map:match pattern="vehicles/*/*/index.*">
<map:aggregate element="page" label="beautify">
<map:part element="" strip-root="true" src="cocoon:/navigation.xml"/>
<map:part src="cocoon://{../locale-path}/mobility/vehicles.chan"/>
<map:part src="cocoon://{../locale-path}/mobility/vehicles/{1}/{2}.chan"/>
<map:part element="" strip-root="false" src="cocoon://{../locale-path}/mobility/vehicles/{1}/{2}/NSC-MODEL-XTND.type"/>
<map:part src="cocoon://{../locale-path}/vehicles/{1}/{2}/grades-and-specs/EQUIPMENT-XTND.type"/>
<map:part src="cocoon://{../locale-path}/vehicles/{1}/{2}/grades-and-specs/GRADE-XTND.type"/>
<map:part src="cocoon://{../locale-path}/vehicles/{1}/{2}/carbuilder/ENGINE-AND-TRANS-XTND.type"/>
<map:part element="BODY" src="cocoon://{../locale-path}/vehicles/{1}/{2}/carbuilder/BODY-XTND.type"/>
<map:part element="" strip-root="true" src="cocoon://logicsheets/vehicles/pv-gp.xsp?country={../country}&locale={../locale-path}&with-vat={../with-vat}&modelGroup={2}&cache-timeout=600" />
</map:aggregate>
<map:call resource="get_{3}">
<map:parameter name="filename" value="vehicles-details" />
<map:parameter name="file-path" value="vehicles/{1}/{2}"/>
<map:parameter name="tiltefile-path" value="nissan uk, vehicles -{1}-{2}"/>
<map:parameter name="tiltefile-path-intro" value="nissan uk, vehicles -{1}-{2}-intro"/>
</map:call>
</map:match>
<!--======================== Performance/Energy (Frugality page) ==============================-->
<map:match pattern="*/*/*/performance/energy/index.*">
<map:aggregate element="page">
<map:part element="" strip-root="true" src="cocoon:/navigation.xml"/>
<map:part src="cocoon://{../locale-path}/mobility/vehicles/image.type"/>
<map:part src="cocoon://{../locale-path}/mobility/vehicles/Mb_Relatedlinks.type"/>
<map:part src="cocoon://{../locale-path}/mobility/vehicles/{2}/{3}.chan"/>
<map:part src="cocoon://logicsheets/vehicles/engine-energy.xsp?locale={../locale-path}&model-code={3}&cache-timeout=600" />
<map:part src="cocoon://logicsheets/vehicles/model-body-engine-attributes.xsp?model-code={3}&cache-timeout=600"/>
</map:aggregate>
<map:call resource="get_{4}">
<map:parameter name="filename" value="energy" />
<map:parameter name="file-path" value="vehicles/{2}/{3}"/>
</map:call>
</map:match>
<!--======================== Price popup for Vehicle pages ==============================-->
<map:match pattern="*/*/*/price-popup.*">
<map:aggregate element="page">
<map:part src="cocoon://{../locale-path}/mobility/vehicles/{2}/{3}.chan"/>
</map:aggregate>
<map:call resource="get_{4}">
<map:parameter name="filename" value="price-popup" />
<map:parameter name="file-path" value="vehicles/{3}"/>
</map:call>
</map:match>
<!--====================== News and Events page ==========================-->
<map:match pattern="news-events/index.*">
<map:aggregate element="page" label="beautify">
<map:part element="" strip-root="true" src="cocoon:/navigation.xml"/>
<map:part src="cocoon://{../locale-path}/mobility/news-events.chan"/>
</map:aggregate>
<map:call resource="get_{1}">
<map:parameter name="filename" value="news-events" />
</map:call>
</map:match>
<!--======================= News Article page ============================-->
<map:match pattern="news-events/*.*">
<map:aggregate element="page" label="beautify">
<map:part element="" strip-root="true" src="cocoon:/navigation.xml"/>
<map:part src="cocoon://{../locale-path}/mobility/news-events.chan"/>
<map:part src="cocoon://{../locale-path}/{1}.item"/>
</map:aggregate>
<map:call resource="get_{2}">
<map:parameter name="filename" value="news-article"/>
</map:call>
</map:match>
<!--=================== contact us / Requests page =======================-->
<map:match pattern="contactus/index.*">
<map:aggregate element="page" label="beautify">
<map:part element="" strip-root="true" src="cocoon:/navigation.xml"/>
<map:part src="cocoon://{../locale-path}/mobility/contactus.chan"/>
</map:aggregate>
<map:call resource="get_{1}">
<map:parameter name="filename" value="contactus" />
</map:call>
</map:match>
<!-- ================ Brochure and Test Drive page =========================== -->
<map:match pattern="*/brochure_testdrive/index.*">
<map:act type="sessionCreator"> <!-- sessionCreator -->
<map:aggregate element="page" label="beautify">
<map:part element="" strip-root="true" src="cocoon:/navigation.xml"/>
<map:part src="cocoon://{../../locale-path}/mobility/contactus/image.type"/>
<map:part src="cocoon://{../../locale-path}/mobility/contactus/Mb_Relatedlinks.type"/>
<map:part src="cocoon://request.params"/>
<map:part src="cocoon://session.params"/>
<map:part src="cocoon://vehicles/leads_vehicle_data.xml"/>
<map:part element="brochure" strip-root="true" src="cocoon://{../../locale-path}/mobility/contactus/brochure_testdrive.chan"/>
<map:part element="testdrive" strip-root="true" src="cocoon://{../../locale-path}/mobility/contactus/testdrive.chan"/>
<map:part element="" strip-root="true" src="../content/contact/{../../locale-path}/brochure/step1-static.xml"/>
</map:aggregate>
<map:call resource="get_{../2}">
<map:parameter name="filename" value="brochure-testdrive" />
<map:parameter name="file-path" value="{../1}/brochure_testdrive" />
<map:parameter name="file-path" value="nissan uk,passanger-range " />
</map:call>
</map:act>
</map:match>
<!-- ===================== Enquiries page ================================ -->
<map:match pattern="*/enquiries/index.*">
<map:act type="sessionCreator"> <!-- sessionCreator -->
<map:aggregate element="page" label="beautify">
<map:part element="" strip-root="true" src="cocoon:/navigation.xml"/>
<map:part src="cocoon://{../../locale-path}/mobility/contactus/image.type"/>
<map:part src="cocoon://{../../locale-path}/mobility/contactus/Mb_Relatedlinks.type"/>
<map:part src="cocoon://{../../locale-path}/mobility/contactus/enquiries.chan"/>
<map:part element="" strip-root="true" src="../content/contact/{../../locale-path}/mobility/mobility.xml"/>
</map:aggregate>
<map:call resource="get_{../2}">
<map:parameter name="filename" value="enquiries" />
<map:parameter name="file-path" value="{../1}/enquiries" />
</map:call>
</map:act>
</map:match>
<!-- ========================= Your Details page ============================ -->
<map:match pattern="*/*/yourdetails.*/*">
<map:act type="sessionWriter">
<map:aggregate element="page" label="beautify">
<map:part src="cocoon://request.params"/>
<map:part src="cocoon://session.params"/>
<map:part element="" strip-root="true" src="cocoon:/navigation.xml"/>
<map:part src="cocoon://{../../locale-path}/mobility/contactus/image.type"/>
<map:part src="cocoon://{../../locale-path}/mobility/contactus/Mb_Relatedlinks.type"/>
<map:part element="" strip-root="true" src="../content/contact/{../../locale-path}/mobility/step1-static.xml"/>
<map:part element="" strip-root="false" src="../content/contact/{../../locale-path}/mobility/occupation.xml"/>
</map:aggregate>
<map:call resource="get_{../3}">
<map:parameter name="filename" value="yourdetails" />
<map:parameter name="file-path" value="{../1}/{../2}"/>
<map:parameter name="formValues" value="{../4}"/>
</map:call>
</map:act>
</map:match>
<!--========================= No Postal Address code Page =========================-->
<map:match pattern="*/*/postcode.*/*">
<map:act type="sessionWriter">
<map:aggregate element="page" >
<map:part src="cocoon://request.params"/>
<map:part src="cocoon://session.params"/>
<map:part element="" strip-root="true" src="cocoon:/navigation.xml"/>
<map:part src="cocoon://{../../locale-path}/mobility/contactus/image.type"/>
<map:part src="cocoon://{../../locale-path}/mobility/contactus/Mb_Relatedlinks.type"/>
<map:part strip-root="true" src="cocoon://contact/common_{../../locale-path}.xml?section-header-id=/{../../locale-path}/contact/brochure"/>
<map:part element="" strip-root="true" src="../content/contact/{../../locale-path}/mobility/step1-static.xml"/>
<map:part element="" strip-root="false" src="../content/contact/{../../locale-path}/common/occupation.xml"/>
<map:part element="" strip-root="false" src="cocoon://search.qas"/>
<map:part strip-root="true" src="cocoon://{../../locale-path}/contact.chan"/>
<map:part strip-root="true" src="cocoon://{../../locale-path}/contact/brochure.chan_errcheck"/>
</map:aggregate>
<map:call resource="get_{../3}">
<map:parameter name="filename" value="yourdetails" />
<map:parameter name="file-path" value="{../1}/{../2}"/>
<map:parameter name="formValues" value="{../4}"/>
</map:call>
</map:act>
</map:match>
<map:match pattern="*/list.*">
<map:act type="sessionWriter">
<map:aggregate element="page">
<map:part src="cocoon://request.params"/>
<map:part src="cocoon://session.params"/>
<map:part strip-root="true" src="cocoon://contact/common_{../../locale-path}.xml?section-header-id=/{../../locale-path}/contact/{../1}"/>
<map:part element="" strip-root="true" src="../content/contact/{../../locale-path}/address/list-static.xml"/>
<map:part src="cocoon://results.qas"/>
</map:aggregate>
<map:call resource="get_{../2}">
<map:parameter name="file-path" value="/{nsc-short-name}/{locale-path}/site-media/contact/"/>
<map:parameter name="filename" value="address/list" />
<map:parameter name="nedstat-path" value="{../../country-upper}.{../1}.askaddress"/>
</map:call>
</map:act>
</map:match>
<map:match pattern="*/validate.*">
<map:act type="sessionWriter">
<map:aggregate element="page" >
<map:part src="cocoon://request.params"/>
<map:part src="cocoon://session.params"/>
<map:part strip-root="true" src="cocoon://contact/common_{../../locale-path}.xml?section-header-id=/{../../locale-path}/contact/{../1}"/>
<map:part element="" strip-root="true" src="../content/contact/{../../locale-path}/address/validate-static.xml"/>
<map:part src="cocoon://results.qas"/>
</map:aggregate>
<map:call resource="get_{../2}">
<map:parameter name="file-path" value="/{nsc-short-name}/{locale-path}/site-media/contact/"/>
<map:parameter name="filename" value="address/validate" />
<map:parameter name="nedstat-path" value="{../../country-upper}.{../1}.askaddress"/>
</map:call>
</map:act>
</map:match>
<map:match pattern="*/*/confirmation.*">
<map:act type="sessionWriter">
<map:act type="data-submit">
<map:aggregate element="page" >
<map:part src="cocoon://request.params"/>
<map:part src="cocoon://session.params"/>
<map:part src="cocoon://vehicles/leads_vehicle_data.xml"/>
<map:part element="" strip-root="true" src="cocoon:/navigation.xml"/>
<map:part src="cocoon://{../../../locale-path}/mobility/contactus/image.type"/>
</map:aggregate>
<map:call resource="get_{../../3}">
<map:parameter name="filename" value="confirmation"/>
<map:parameter name="file-path" value="{../../1}/{../../2}"/>
</map:call>
</map:act>
</map:act>
</map:match>
<!--============================ Tell us More Page ================================-->
<map:match pattern="*/*/more.*">
<map:act type="sessionCreator">
<map:aggregate element="page" >
<map:part src="cocoon://request.params"/>
<map:part src="cocoon://session.params"/>
<map:part element="" strip-root="true" src="cocoon:/navigation.xml"/>
<map:part src="cocoon://{../../locale-path}/mobility/contactus/image.type"/>
<map:part src="cocoon://{../../locale-path}/mobility/contactus/Mb_Relatedlinks.type"/>
<map:part strip-root="true" src="cocoon://contact/common_{../../locale-path}.xml?section-header-id=/{../../locale-path}/contact/{../1}"/>
<map:part element="" strip-root="true" src="../content/contact/{../../locale-path}/common/more-static.xml"/>
<map:part strip-root="true" src="cocoon://{../../locale-path}/contact.chan_errcheck"/>
<map:part strip-root="false" src="../content/contact/received-files/Leisure_{../../locale-path}.xml"/>
<map:part strip-root="false" src="../content/contact/received-files/Sport_{../../locale-path}.xml"/>
<map:part strip-root="false" src="../content/contact/received-files/FinanceType_{../../locale-path}.xml"/>
<map:part strip-root="false" src="../content/contact/received-files/FuelType_{../../locale-path}.xml"/>
</map:aggregate>
<map:call resource="get_{../3}">
<map:parameter name="filename" value="more" />
<map:parameter name="file-path" value="/{nsc-short-name}/{locale-path}/site-media/contact/"/>
<map:parameter name="nedstat-path" value="{../../country-upper}.contact.{2}.more"/>
</map:call>
</map:act>
</map:match>
<!--============================ confirmation2 ================================-->
<map:match pattern="*/*/confirm_more.*">
<map:act type="sessionWriter">
<map:act type="data-submit">
<map:aggregate element="page" >
<map:part src="cocoon://request.params"/>
<map:part src="cocoon://session.params"/>
<map:part element="" strip-root="true" src="cocoon:/navigation.xml"/>
<map:part src="cocoon://{../../../locale-path}/mobility/contactus/image.type"/>
<map:part strip-root="true" src="cocoon://contact/common_{../../../locale-path}.xml?section-header-id=/{../../../locale-path}/contact/{../../1}"/>
<map:part element="" strip-root="true" src="../content/contact/{../../../locale-path}/common/confirmation-static.xml"/>
</map:aggregate>
<map:call resource="get_{../../3}">
<map:parameter name="filename" value="confirmation_more" />
<map:parameter name="file-path" value="{../../1}/{../../2}"/>
</map:call>
</map:act>
</map:act>
</map:match>
<!--============================ Sitemap page ================================-->
<map:match pattern="sitemap/index.*">
<map:aggregate element="page" label="beautify">
<map:part element="" strip-root="true" src="cocoon:/navigation.xml"/>
<map:part src="cocoon:/navigation_gen.xml"/>
<map:part src="cocoon://{../locale-path}/mobility/sitemap.chan"/>
</map:aggregate>
<map:call resource="get_{1}">
<map:parameter name="filename" value="sitemap"/>
</map:call>
</map:match>
<!-- =========================== Image PopUp ================================= -->
<map:match pattern="*/image-popup.*">
<map:aggregate element="page" label="beautify">
<map:part src="cocoon://{../locale-path}/mobility/scheme.chan"/>
</map:aggregate>
<map:call resource="get_{2}">
<map:parameter name="filename" value="image-popup"/>
</map:call>
</map:match>
<!-- ======================== Editorial - PopUp ================================== -->
<map:match pattern="scheme/editorial-popup.*">
<map:aggregate element="page" label="beautify">
<map:part src="cocoon://{../locale-path}/mobility/scheme/editorial-page-standard.type"/>
</map:aggregate>
<map:call resource="get_{1}">
<map:parameter name="filename" value="editorial-popup"/>
</map:call>
</map:match>
<!--=========================== Terms and Conditions =================================-->
<map:match pattern="terms-conditions/index.*">
<map:aggregate element="page" label="beautify">
<map:part element="" strip-root="true" src="cocoon:/navigation.xml"/>
<map:part src="cocoon://{../locale-path}/mobility/home/editorial-page-faq-short.type"/>
<map:part src="cocoon://{../locale-path}/mobility/home/image.type"/>
</map:aggregate>
<map:call resource="get_{1}">
<map:parameter name="filename" value="terms-conditions"/>
</map:call>
</map:match>
</map:act>
</map:pipeline>
</map:pipelines>
<!--=========================== Resources =================================-->
<map:resources>
<map:resource name="get_html">
<map:act type="nscData">
<map:transform type="i18n">
<map:parameter name="locale" value="{../locale}" />
</map:transform>
<map:transform type="xslt" src="cocoon://stylesheets/mobility/{../filename}.xsl">
<map:parameter name="pageName" value="{../filename}"/>
<map:parameter name="titlePage" value="{../titlefilename}"/>
<map:parameter name="keyword" value="{../keywordnameWorks for me. What happened when you tried?
<pre style="
font-family: Monaco, 'Courier New', Courier, monospace;
font-size: 10px;
font-weight: normal;
margin: 0px;
padding: 5px;
border: 1px solid #000000;
width: 720px;
color: #000000;
background-color: #E6E6EE;
overflow: auto;"
title="this text can be pasted into the AppleScript Editor">
tell application "Finder" to display dialog "I need ® or ™ in dialog box text" with title "I need ® or ™ in dialog box text" buttons {"Aha!"} default button 1</pre> -
How to get flagged messages in to tasks or alternatively view another users to do list.
If someone could just help me out I would be extremely appreciative.
2 of us work in one mail box together called admin. when one of us is away we like to use the flags to create follow ups for each other on certain email items.
Firstly, I can only see my main accounts to do list
Secondly, when I flag a contact / message / anything in fact, in any mailbox it only appears in their respective to do lists and not in their tasks. Thus I cannot see what I have flagged for them at a glance as I can not find a way to view other peoples
to do list. i.e. neither of us can see any of the flags in the shared mailbox we use (admin) unless we log in under a different profile, which is troublesome as it takes way to long to switch back and forth.
I presently use colour categories to delegate who is currently in charge of answering certain emails and use custom flags to note what we are waiting for in particular to a certain email and then mark a tick when it has been dealt with. Simple system but
not currently working in full due to the follow up flags not appearing in tasks.
This also affects my task synching on my mobile where once again it only shows what is in tasks... i.e stuff I have physically typed in outlook rather than flagged content; mails, contacts etc.
Any ideas how to get the follow up flags appearing in tasks or an ability to see other peoples to do lists... the first is more preferable but I will take what I can.
Kindest Regards
WoodyJust add the 'admin' mailbox as additional account in Outlook, as opposed to additional mailbox (i.e. don't add it from Accounts Settings -> More settings -> Advanced, but from File -> Add account instead).
It will then show flagged items and tasks from all accounts in the 'To-do' list. -
I have a situation, where i need to write expression Period to date(PTD). i want to know how to get the period date. i want you to help in writing Period date or else is there any function to get period date for a given date(the date is given
from the parameter dynamically) in MDX for SSRS report
ramHi ram,
Per my understanding that you want to get the period date based on the month selected and the given date, right?
Could you please provide details information below to help us better understanding your requirements, thus we will be more effective to provide an solution:
What is the format of the period date you want to get, is this date in the DB and you want to filter it based on the month and the given Date?
Did the month and given date are two parameters in the report? if possible, could you please provide some sample data in the DB and also the snapshot of the report structure
I assume you want to get the period date(mm/dd/yyy) between the select month(e.g:Feb) and the given date (10/1/2014) and you should get the date between(02/01/2014-10/1/2014).
If so,and you also have two parameter "Month","EndDate"(EndDate is the given date), please reference to details information below:
You can create an new parameter "BeginDate" (Date/Time) which is the begin date of the period, you can use the expression to get the value based on the value of the month and the year value from the given date,finally hide this parameter:
Specify the available value:
Label:=Parameters!Month.Value &"/01/"& DatePart("yyyy",Parameters!EndDate.Value)
Value:=CDate(=Parameters!Month.Value &"/01/"& DatePart("yyyy",Parameters!EndDate.Value))
Specify the default Value:
Value:=CDate(=Parameters!Month.Value &"/01/"& DatePart("yyyy",Parameters!EndDate.Value))
Add filter to the dataset as below:
Preview you will get all the date in the given Period:
If you still have any problem, please feel free to ask.
Regards
Vicky Liu -
My internet was down for over 24hrs after a storm. During that time, my IPad completely shut down and I can't get it going again. I studied the manual but couldn't find a similar topic. I reset it and now it is totally goofed up.
Does anyone have any ideas or should I just take it to an Apple store and pay?? Any solutions you may have, PLEASE use simple words as I am not a pro, by any means....probably why I'm in this situation.
Thank you in advance.Look at iOS Troubleshooting Wi-Fi networks and connections http://support.apple.com/kb/TS1398
iPad: Issues connecting to Wi-Fi networks http://support.apple.com/kb/ts3304
iOS: Recommended settings for Wi-Fi routers and access points http://support.apple.com/kb/HT4199
Additional things to try.
Try this first. Turn Off your iPad. Then turn Off (disconnect power cord) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
Change the channel on your wireless router. Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
Another thing to try - Go into your router security settings and change from WEP to WPA with AES.
How to Quickly Fix iPad 3 Wi-Fi Reception Problems
http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
If none of the above suggestions work, look at this link.
iPad Wi-Fi Problems: Comprehensive List of Fixes
http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
Fix iPad Wifi Connection and Signal Issues http://www.youtube.com/watch?v=uwWtIG5jUxE
~~~~~~~~~~~~~~~
If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
Cheers, Tom
Maybe you are looking for
-
How do I "Put" multiple html files at the same time?
I did a global find and replace for a broken link. But I don't see how to "publish" all the changed pages using the "Put" command? Dreamweaver MX 2004.
-
Administrator's Name...
When trying to install adobe flash player....what does it mean to "type in an administrator's name and password to allow this?" What username and password are we supposed to be typing in because I've tried everything I could think of. I really need s
-
BAPI.. with screen return?
BAPI is processed without returning any screen dialogs to the calling application. But there are some released BAPIs provided by SAP like BAPI_CUSTOMER_EDIT, in which statement CALL TRANSACTION 'XD02', causes screen return to the user. This prevents
-
Deployment Incomplete in Jdeveloper
Dear All, I am new to SOA tecnology, I am practising on SOA. I am Creating the Task Form for Task Details. after creating a task while deploying I am getting following error message. Could you please help me out on this [03:50:32 PM] ---- Deployment
-
Come trasferire foto dall'iphone al pc
allora io non riesco a trasferire le foto dal mio cell al pc, qualcuno ha consigli?? sono dicìperato, ho immagini importanti, grazie