How to add two lines in one cell in smartforms
Hi All,
can anyone help me to implement the following format in smartforms?
i have create one line type in table, one of the cell in the line type need to split two small line, the upper line is summary and the lower line still split into three small cell. how can i do?
?|????|___sum____|
?|????|aaa|bbb|cccc|
Edited by: wei fang on Oct 21, 2008 2:19 PM
Hi Wei Fang,
You can try by creating a 2 line template (1 Template, 2 linetype) under a loop note.
So your smartform tree structure will be shown like this:
LOOP
TEMPLATE1.
On the LOOP part, pass the internal table of your data to the working areas.
On the template put all the data of the summary on your first linetype, and put
the detail data on your second linetype.
Good luck and hopefully this will solve the problem
Edited by: Prawira Fadjar on Oct 22, 2008 10:04 AM
Similar Messages
-
How to add two videos to one???
Hello there,
I making a program in which I can capture the video and save it to a file, suppose the file name is "foo".
O.K. now every time I run the program it overrites the previous one(video file).
So the problem is every time I run the program the video should be added to the previous one that is concatenated.
That there are 2 videos
1> one is stored on the disk already.
2> other one is which is live and is going to be captured.
Hope you can understand.
Please help me.
Thanks in advance.Thanks Captfoss,
I got another idea
I just used the Cancat class from Concat.java example.
Here is the code\
import java.awt.*;
import java.net.*;
import javax.media.*;
import java.awt.event.*;
import javax.swing.*;
import javax.media.format.*;
import javax.media.protocol.*;
import javax.media.control.*;
import javax.media.Manager.*;
import java.util.*;
import java.io.*;
import java.util.Vector;
import java.io.File;
import javax.media.control.TrackControl;
import javax.media.control.QualityControl;
import javax.media.Format;
import javax.media.datasink.*;
import javax.media.protocol.DataSource;
import java.io.IOException;
/* This program is to capture from a webcam and save it in disk */
public class run extends JFrame implements ControllerListener,ActionListener
Processor p; DataSink sink;
MenuBar mb;
MenuItem start,stop;
Menu file;
Vector dl;
MediaLocator ml,oml;
MediaLocator iml[] = new MediaLocator[2];
DataSource ds,original,clone;
Player player;
ContentDescriptor cd;
run()
setVisible(true);
setSize(800,600);
setLayout(new BorderLayout());
mb=new MenuBar();
file=new Menu("File");
start=new MenuItem("Start");
// start button gets enabled only after the processor is realized
// I start the processor and sink after clicking the start button
// I start the processor and sink after clicking the start button
start.setEnabled(false);
stop=new MenuItem("Stop");
// I use stop button to stop the processor and the sink
file.add(start);
file.add(stop);
mb.add(file);
setMenuBar(mb);
start.addActionListener(this);
stop.addActionListener(this);
addWindowListener
(new WindowAdapter()
public void windowClosing(WindowEvent we)
System.exit(0);
try
dl=CaptureDeviceManager.getDeviceList(new VideoFormat(VideoFormat.YUV));
ml=((CaptureDeviceInfo)dl.firstElement()).getLocator();
//Manager.setHint( Manager.LEIGHTWEIGHT_RENDERER,true);
original = Manager.createDataSource(ml);
original = Manager.createCloneableDataSource(original);
clone = ((SourceCloneable)original).createClone();
player = Manager.createRealizedPlayer(original);
p=Manager.createProcessor(clone);
p.addControllerListener(this);
p.configure();
Thread.sleep(3000);
p.setContentDescriptor(new FileTypeDescriptor(FileTypeDescriptor.MSVIDEO));
p.realize();
Thread.sleep(3000);
oml = new MediaLocator("file:/e:/J-Solve.avi");
iml[1] = ml;
iml[0] = new MediaLocator("file:/e:/J-Solve1.avi");
catch (Exception e)
System.err.println("Got exception "+e);
boolean fetchDeviceFormats()
Vector deviceList = CaptureDeviceManager.getDeviceList(new VideoFormat(null));
CaptureDeviceInfo CapDevice = null;
Format CapFormat = null;
String type = "N/A";
CaptureDeviceInfo deviceInfo=null;
boolean VideoFormatMatch=false;
for(int i=0;i<deviceList.size();i++)
// search for video device
deviceInfo = (CaptureDeviceInfo)deviceList.elementAt(i);
if(deviceInfo.getName().indexOf("vfw:")<0)
continue;
Format deviceFormat[] = deviceInfo.getFormats();
for (int f=0;f<deviceFormat.length;f++)
if(deviceFormat[f] instanceof RGBFormat)type="RGB";
if(deviceFormat[f] instanceof YUVFormat)type="YUV";
if(deviceFormat[f] instanceof JPEGFormat)type="JPG";
Dimension size = ((VideoFormat)deviceFormat[f]).getSize();
//camImgSize.addElement(type+" "+ size.width+"x" +size.height);
CapDevice = deviceInfo;
//camCapDevice.addElement(CapDevice);
System.out.println("Video device = "+ deviceInfo.getName());
CapFormat = (VideoFormat)deviceFormat[f];
//camCapFormat.addElement(CapFormat);
System.out.println("Video format = " + deviceFormat[f].toString());
VideoFormatMatch=true; // at least one
if(VideoFormatMatch==false)
if(deviceInfo!=null)System.out.println(deviceInfo);
System.out.println("Video Format not found");
return false;
return true;
public void addNotify()
super.addNotify();
pack();
public void actionPerformed(ActionEvent ae)
try
if(ae.getActionCommand().equals("Start"))
sink.open();
sink.start();
p.start();
player.start();
System.out.println("start");
Concat concat = new Concat();
if (!concat.doIt(iml, oml))
System.err.println("Failed to concatenate the inputs");
else
player.stop();
p.stop();
p.close();
//Thread.sleep(1000);
sink.stop();
sink.close();
System.out.println("stop");
catch(Exception e)
System.out.println("Some problem "+e);
public synchronized void controllerUpdate(ControllerEvent ce)
try
if (ce instanceof RealizeCompleteEvent)
Component comp;
System.out.println("Realized");
sink = Manager.createDataSink(p.getDataOutput(), new MediaLocator("file:/e:/J-Solve1.avi"));
start.setEnabled(true);
if ((comp = player.getVisualComponent()) != null)
add (BorderLayout.CENTER, comp);
else
System.out.println("No visual component");
//if ((comp = player.getControlPanelComponent()) != null)
// add (BorderLayout.SOUTH, comp);
validate();
System.out.println("Updated");
catch(Exception e)
System.out.println("Exception rasied "+e);
public static void main(String s[])
run r = new run();
}But it gives exception
Create processor for : file:/e:/J-Solve1.avi
Create processor for : vfw://0
Java.io.IOException:Capture device in use
Cannot create processor for given URL : java.media.noProcessorException
Error instantiating the class : com.sun.media.protocol.vfw.Datasource
Failed to concatenate
My idea is right, but there is a problem
The catured ml is ok,
but for on going capture for which my class and concat class both try to make a processor.
Which gives this error.
How to resolve this problem.
Thanks in advance. -
How to add two list in one frame using REUSE_ALV_LIST_DISPLAY
Hi,
I want to display two list in single output by calling FM 'REUSE_ALV_LIST_DISPLAY' twice.
I saw one topic posted by Arunava Das as 'ALV Problem' but didn't get the steps to do that.
Here is his way of doing that "What I have done is gone for the append ALV approach wher I have added the END_OF_LIST Event for the Fisrt reprt and in the Corresponding FORM Routine I have added another made another cALL to the REUSE_ALV_LIST DISPLAY FM with the other table."
I would be grateful if someone can help me out.Hi Ashish,
The way you have tried i.e. calling the second list in the END_OF_LIST event of first list and like wise that is the correct way of doing it.
Using this way you can display multiple lists. In the event END_OF_LIST by using a global variable G_COUNTER. the value of which you increment for each list and based on that counter you call different lists in the END_OF_LIST event.
case G_COUNTER.
when 1. perform call_first_list.
when 2. perform call_second_list.
when 3. perform call_third_list.
endcase.
Hope this answers your query
regards,
Satyadev Dutta -
I have a situation where I need to display two textboxes in one cell (no, a text area will not do). I was wondering if anyone knew how to do this? Also, at what time would you set the data and would you do it with the TableModel. I posted a question similar to this and the only response I got was I should be able to do this by extending the renderer and editor classes. I have tried.
I need this example to show data in one line item so the I do not have to scroll to the right so much. It will also give me more real estate on the screen to show other important data.
Should I embed a JPanel in the cell and associate text boxes inside? What should I do? I know there are some vary savy programmers who can whip up a simple example. I appreciate any help.I don't think I can solve your problem, but may be I can help you on your way...
check out
http://www2.gol.com/users/tame/swing/examples/SwingExamples.html
for some good examples of table use and other swing components.
Adding a panel could be an option, but I'm not sure why you say you couldn't do it with a TextArea... I'll give it a try myself and show you some code if it works..
-Phil -
How to add two different page numbers in a single page
How to add two different page numbers in a single page? One is for page number of the whole article, the other one is for page number for each chapter in the article.
It's quite complicated, see
Two Page Numbering Schemes in the Same Document.
Regards, Hans Vogelaar (http://www.eileenslounge.com) -
How to add new line in message on my S890
My stock keyboard in Lenovo S890 doesn't have enter key, is this normal ? How to add new line ?
However this happened only in messages, while using whatsapp the enter key present.Hi,
the fact that your question is posted in Order Management section, does the move order automatically generated by OM?
nevertheless, i don't think you should (or allowed, in this case) to add a new line in transact move order. Transact move order only queries (not create records) the move order lines eligible to allocate and transact.
So, I don't see why you need to add a new line in transact move order.
You can, however, add a new line in the allocation of the lines, where for instance, you need to have half of the line allocated to one locator, and the other half to another locator
Thanks -
How to set two radius servers one is window NPS another is cisco radius server
how to set two radius servers one is window NPS another is cisco radius server
when i try the following command, once window priority is first , i type cisco radius user name, it authenticated fail
i can not use both at the same time
radius-server host 192.168.1.3 is window NPS
radius-server host 192.168.1.1 is cisco radius
http://blog.skufel.net/2012/06/how-to-integrating-cisco-devices-access-with-microsoft-npsradius/
conf t
no aaa authentication login default line
no aaa authentication login local group radius
no aaa authorization exec default group radius if-authenticated
no aaa authorization network default group radius
no aaa accounting connection default start-stop group radius
aaa new-model
aaa group server radius IAS
server 192.168.1.1 auth-port 1812 acct-port 1813
server 192.168.1.3 auth-port 1812 acct-port 1813
aaa authentication login userAuthentication local group IAS
aaa authorization exec userAuthorization local group IAS if-authenticated
aaa authorization network userAuthorization local group IAS
aaa accounting exec default start-stop group IAS
aaa accounting system default start-stop group IAS
aaa session-id common
radius-server host 192.168.1.1 auth-port 1812 acct-port 1813
radius-server host 192.168.1.2 auth-port 1812 acct-port 1813
radius-server host 192.168.1.3 auth-port 1645 acct-port 1646
radius-server host 192.168.1.3 auth-port 1812 acct-port 1813
privilege exec level 1 show config
ip radius source-interface Gi0/1
line vty 0 4
authorization exec userAuthorization
login authentication userAuthentication
transport input telnet
line vty 5 15
authorization exec userAuthorization
login authentication userAuthentication
transport input telnet
end
conf t
aaa group server radius IAS
server 192.168.1.3 auth-port 1812 acct-port 1813
server 192.168.1.1 auth-port 1812 acct-port 1813
endThe first AAA server listed in your config will always be used unless/until it becomes unavailable. At that point the NAD would move down to the next AAA server defined on the list and use that one until it becomes unavailable and then move to third one, and so on.
If you want to use two AAA servers at the same time then you will need to put a load balancer in front of them. Then the virtual IP (vip) will be listed in the NADs vs the individual AAA servers' IPs.
I hope this helps!
Thank you for rating helpful posts! -
How to add new line item using BAPI BAPI_CONTRACT_CHANGE for contract-ME32K
HI Experts,
how to add new line item using BAPI: BAPI_CONTRACT_CHANGE for existing contract.
Requirement:
Already the contract having two line items using ME31K.
Custom program has to add new line items in existing contract.
Thanks,
SendilI got the solution:
We can do like this:
1. Get all details using details, BAPI_CONTRACT_GETDETAIL.
2. After getting results, append new line item. Then use your BAPI.
Check this posting program.. where this bapi is used, use the same coding technique.
IDOC_INPUT_PURCONTRACT_CHANGE -
How to add two X Axis in the Column chart?Need Help
Hi,
I have a requirement to add two X axis in the SSRS column chart.Can someone please help how to add two X axis. I tried the secondary axis for horizontal axis but current x axis is shifting to other side, second X axis is not coming.
Regards
JonHi Jon,
According to your description, you want to add secondary X axis for one series in a column chart, right?
The secondary axis is useful when comparing two value sets with two distinct data ranges that share a common category. In Reporting Services, it’s not supported to create two X axis for one series. We can create secondary X axis when there are two series
in a column chart. As we tested in our local environment, we can add secondary X axis for specific series. Please refer to the screenshots below:
So I would like to know what’s your exact needs about creating two X axis for one series. If possible please share some detail information about your data and expected looking of the chart.
Reference: Plot Data on a Secondary Axis (Report Builder and SSRS)
If you have any question, please feel free to ask.
Best regards,
Qiuyun Yu -
How can update two rows in one query?
How can update two rows in one query?
Edited by: OracleM on May 4, 2009 12:16 AMWhat do you mean with "two rows"? May be two columns??
If the where clause of UPDATE query matches two rows, then it will update two rows. If you want to update two columns, then add column names to your query
UPDATE your_table SET col1=value1, col2=value2 WHERE your_where_clause- - - - - - - - - - - - - - - - - - - - -
Kamran Agayev A. (10g OCP)
http://kamranagayev.wordpress.com
[Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/] -
How to put two ipods on one computer
how to put two ipods on one computer
Set up the second exactly the same way as you set up the first. If iTunes is already installed, it doesn't need to be installed again.
(64746) -
How to add two columns in OBIEE report?
Hi to All,
Can anyone tell me how to add two columns in OBIEE report and get that result in a new column?
Thanks in Advance,
ThenmozhiAssume you already have two columns SalesAmt1 and SalesAmt2, and you want to derive 3rd column say SalesAmt3 which would be the sum of SalesAmt1 and SalesAmt2.
For this, as I mentioned above pull SalesAmt1 and SalesAmt2 columns in Report. Now pull another column (say SalesAmt1) and open the fx. Clear the contents of fx. Now locate the columns button in the bottom of the fx. From Here, first select SalesAmt1 and + sign and the select SalesAmt2.
Now in this new column, the fx should look like SalesAmt1 + SalesAmt2.
Let me know if you are looking for something else.
Thanks -
How to sync two IPhone with one PC , but with different applications
How to sync two IPhone with one PC , but with different applications ?
We have two IPhones , but one PC , we want to sync separately , is that possible ?Absolutely, connect each phone, select what content you want on each phone, then hit the sync button. iTunes will keep everything straight, by device, upon subsequent syncs, including separate backups.
-
How to add Two Columns in SQL
For Example
Jan Feb
215 NULL
How to add these two values in SQLAnything + NULL is NULL.
Check this:
SQL> SELECT 1 + NULL from dual;
1+NULL
SQL> You have to do this:
SQL> with t as (SELECT 235 JAN, NULL FEB FROM dual)
2 SELECT NVL(JAN,0) + NVL(FEB,0) FROM t;
NVL(JAN,0)+NVL(FEB,0)
235
SQL> -
Ask split long text into two line into same cell for ALV
Dear All,
Is it possible split long text into two line into same cell for ALV display data?
Regards,
Luke
Moderator message: please search for information before asking.
Edited by: Thomas Zloch on Feb 24, 2011 10:12 AMKeep options: Select the paragraph, then CtrlAltK (Mac: CmdOptK, I
think).
If you want the paragraphs in pairs, create two paragraph styles. Style
A has keep options set to start on a new page, and also, its Next Style
is style B.
Style B has no keep options, but it's Next Style is Style A.
Select all the text.
From the flyout menu of the paragraph styles palette, apply Style A
"then next style."
Now all paragraphs will be alternating -- style A, style B, style A, etc.
Now do what I wrote initially, and you'll have pairs of paragraph in
separate text frames.
Maybe you are looking for
-
Different Colored Highlights in JEditorPane
Hello there, I have a question regarding different highlights. I have multiple highlights in different color. Is there any way I can selectively remove highlights. Meaning say, I have two highlights one with red colored painter and another with green
-
Object Library Concept in Report ???
Hi Friends Is anybody aware of any concept in Report, similar to object library in forms. 1.Field's font, color, size etc. 2.Common Header and Footer information in many reports Sudhanshu
-
I got the My Brushes App for iPad 2 - have questions on how to use it but the support email address the vendor gives doesn't work??
-
Automatic Settings Lightroom 1.0
Hi, I don't know why, when I import an image from my card reader and open it in Develop, some settings are already changed. It does not happen all the time. I must be doing something. I would like for the settings to always be in zero, when I open an
-
"kdelibs conflicts with kdemod-kdelibs"
Hi all. I'm recently having troubles when pacman -Su (already done pacman -Sy) I have installed kdemod3 and I never had problems when upgrading. I usualy update my sistem every day. Today, pacman shows me this message bash-3.2# pacman -Su :: Starting