Creating a class with only one method in it

Do you think it is worth creating a class if you only have one method in it?
Or do you think i should just put it in the class that contains the main method?
Just wondering.
Thank you.

lol, what does it depend on.
The class i am talking about, is to register new
customers, A class is typically a noun in your problem description - so the class could be Customer, or maybe Registry. But "register new customers" is an action, so this should be a method, and it should belong to whatever class in your system you think should have the responsibility to register new custromers.
a pretty major part of the application.
But is it really required to have it's own class?
If it still depends, what does it depend on?

Similar Messages

  • Create many SIA with only one installation issue

    Hi,
    I want create many CMS linked to corresponding SIA in one install.
    For sample, we have:
    PRG -->CMS 6400
    TST -->CMS 6500
    In the install, The SIA for PRG is autolmatically created.
    After this, I have created a new database in Mysql for TST.
    I have used command for create a new SIA :
    ./addnode.sh -name SIATST -siaport 6411 -cms boxi:6400 -user Administrator -password PRG
    I have launched the command :
    ./cmsdbsetup and respond the name of the new SIA --> SIATST
    I have 'updated' the datadase info and reinitialize the database. At this time, the CMS port is asked and I have respond 6500.
    Like explain at the end of the tool, I have launched the command:
    ./ccm.sh -updateobjects -cms boxi:6500
    After start the SIATST, I can connect to the CMS:6500 and all services is connected to the port 6500 (in the command line -ns boxi:6500).
    Unluckily, the <node> name SIATST is always present in SIAPRG (cms on 6400) but on failed to start.
    I have tried to remove this by command:
    ./removenode.sh -name SIAPRG -cms boxi:6400 -username Administrator -password PRG
    I have the error:
    Logging on to boxi:6400 as user Administrator with secEnterprise authentication...
    The SIA on this machine with the name SIATST doesn't exist in the cluster you are connected to.
    In the 'Server' tab in the CCM interface, I have always this node information and all services linked.
    It's possible to remove this SIATST on SIAPRG ?
    This procedure is good for wanted solution ?
    Thanks
    Gilles
    Edited by: Gilles Crebassa on Oct 8, 2010 9:00 AM

    Why two primary that is 'coz geographically based server support and workstation. You can think it as a data center to data center split.
    That doesn't make sense and aren't valid reasons for 2012 (not that you can necessarily change it now).
    This line jumps out at me in the log file though: "An MP exists on this machine".
    That looks like the system you are installing on previously had an MP on it. I would delete the ccm namespace in WMI, cleanup all reference to ccm and Configuratin Manager from the registry, and then try again.
    Jason | http://blog.configmgrftw.com | @jasonsandys

  • Create a Graph with only one set of data? Threw serial

    I feel this is a simple question, but I am over thinking it. I am trying to make a program that takes data that is sent threw serial Rs232 from a device, and put that data both into a file and display a live graph of the data (saving the graph would also be great). The devise is strait forward it gives me data when it is don't making the test. After it has the data is sends it and it is always in this form, (ignore Quotes) "[ 122.8 PSI     ]' where "122.8" will always be 5 characters and the decimal point stays the same.
    I would like to take Ex. 122.8 and plot that on y and use the line number from the text file as the x value. How can this be achieved?
    Currently I am displaying the values in a list because I can't figure the graph out. But attached is my messy code and a sample of data that gets sent.
    P.S.. The data list can get as long as 2000 or more.
        side question... when the program is built into an EXE when using serial, can the user change what port?
    Attachments:
    test 1.vi ‏20 KB
    test 1.txt ‏1 KB
    test 1 graph.txt ‏1 KB

    Well, that's called Rube Golberg code.
    All that you have to do is convert the string to a numeric (i.e. a single Scan From String not your match pattern functions) and wire it to a chart. The chart's x axis by default will increment by 1 with each sample written so reading the x axis from file is silly. Be sure to set the chart history. Since you are already writing the data to file, why write it again? Either write the full string or just the value. Your second while loop becomes unnecessary and if for some reason you needed it, it would only record the very last value.
    Don't open the file with each iteration. Place that outside the loop.
    You might want to take the free LabVIEW tutorials.

  • Load balancing with only one Real Server on CSM

    Other than create a VSERVER with only one real server in it - is there a way of load balancing when you have only one real server now and may be additional servers to be added later?

    the only way is to use the vserver.
    Gilles.

  • Using only one method in session bean to create web service

    Hi all,
    I hhave a scenario where i am inserting and retrieving data from dict table using web service.
    For this i have created a session bean and a wrapper class.
    The session bean has two methods: insertRecords(), and viewRec().
    so while creating a web service i need to include two methods.
    I want to have only one method where i can pass a parameter as operation and if it is "I", then i can call the insert method and if it is "S" i can call view method.
    I tried doing that bt i am stuck up with the return type.
    Insert method has return type as array of wrapper class and
    view method has wrapper class as return type ...
    Is this scenario possible..??
    or is there any other way to do this???
    Plz let me knw..
    Thankls n regards,
    Ankita

    Hi Siddharth,
    Im really sorry..
    i cudnt  get u ..
    Actually these r methods:
    public DemoDicModel[] viewRecords()
    and
    public DemoDicModel insertRecords(
              String title,
              String desc,
              String status)
    and im trying this:
    public DemoDicModel[] getMethods(String operation,String title,String desc, String st)
    DemoDicModel[] demoModel =null;
    DemoDicModel model = new DemoDicModel();
    if(operation == "show")
          demoModel = viewRecords();
    if(operation == "ins")
          model = insertRecords(title,desc,st);
          model.setMsg("RECORDS GENERATED");
          demoModel=
    return demoModel;
    im stuck up with insert operation.
    can  u plz explain me in detail.
    thanks,
    ankita

  • Create multiple portal instances with only one database?

    Can someone create multiple portal instances with only one database?
    If so, how is this done, just by running the portal configuration wizard?
    How are most people running with multiple developers working on portal? Do they share a portal instance, or create their own?
    Thank you very much!
    Phillip

    i'm currently using 9ias rel 2(9.0.2) and i have install one infrastructure and two mid tier, hoping that this will create two portal, but it didn't. Can you please tell me how to do create two portal within one server.
    thanks and regards;
    andrew

  • How can I play different videos with only one MediaPlayer?

    I want to play two videos with only one MediaPlayer:
    private static MediaPlayerBuilder mpB;
    private static Media mLogo;
    private static Media mSaludo;
    private static MediaPlayer mpLogo;
    private static MediaView mvLogo;
    private static Group gLogo;
    public void start(final Stage stage) {
    mLogo = MediaBuilder.create().source(myGetResource(VIDEOLOGO_PATH)).build();
    mSaludo = MediaBuilder.create().source(myGetResource(VIDEOSALUDO_PATH)).build();
    mpB = MediaPlayerBuilder.create();
    mpLogo = mpB.media(mLogo).build();
    mvLogo = MediaViewBuilder.create().mediaPlayer(mpLogo).build();
    gLogo.getChildren().add(mvLogo);
    sActual = new Scene(gPozos, WIDTH, HEIGHT, Color.BLACK);
    stage.setScene(sActual);
    stage.show();When I want to play mLogo:
    sActual.setRoot(gLogo);
    mpLogo.play();Then, when I want to play mSaludo I do this:
    mpLogo = mpB.media(mSaludo).build();
    sActual.setRoot(gLogo);
    mpLogo.play();or this:
    mpB.media(mSaludo).applyTo(mpLogo);
    sActual.setRoot(gLogo);
    mpLogo.play();or this:
    mpB.media(mSaludo);
    sActual.setRoot(gLogo);
    mpLogo.play();But is impossible to change the Media. It doesn't work. Sometimes I play mLogo video and sometimes (depends on the code) the video mLogo doesn't start and I see an image of the first keyframe and nothing else. I have no exceptions, no errors, nothing.
    I want to play mLogo and then mSaludo. How can I do this?
    Thanks
    Noelia

    Ok, I understand, if I have 100 videos I have to build 100 MediaPlayers but only one MediaView.
    Here I post my code with only two videos, I included all the asynchronous errors.
    package pruebafx;
    import java.util.logging.FileHandler;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import javafx.application.Application;
    import javafx.event.EventHandler;
    import javafx.scene.Group;
    import javafx.scene.Scene;
    import javafx.scene.media.Media;
    import javafx.scene.media.MediaErrorEvent;
    import javafx.scene.media.MediaPlayer;
    import javafx.scene.media.MediaView;
    import javafx.stage.Stage;
    * @author Solange
    public class PruebaFX extends Application {
        private static final Logger logger = Logger.getLogger("pruebafx.pruebafx");
        private static final String MEDIA_PATH = "/images/";
        private static final String VIDEOLOGO_PATH = MEDIA_PATH + "logo.flv";
        private static final String VIDEOSALUDO_PATH = MEDIA_PATH + "saludo.flv";
        private static Group root;
        private static Scene scene;
        private static MediaPlayer mpLogo;
        private static MediaPlayer mpSaludo;
        private static Media mLogo;
        private static Media mSaludo;
        private static MediaView mediaView;
         * @param args the command line arguments
        public static void main(String[] args) {
            Application.launch(args);
        @Override
        public void start(Stage primaryStage) {
            try {
                FileHandler fh = new FileHandler("DisplayManagerlog-%u-%g.txt", 100000, 100, true);
                // Send logger output to our FileHandler.
                logger.addHandler(fh);
                // Request that every detail gets logged.
                logger.setLevel(Level.ALL);
                // Log a simple INFO message.
                logger.info("Starting PruebaFX");
            } catch (Exception e) {
                System.out.println(e.getMessage());
            primaryStage.setTitle("Change Videos");
            root = new Group();
            mLogo = new Media(myGetResource(VIDEOLOGO_PATH));
            mSaludo = new Media(myGetResource(VIDEOSALUDO_PATH));
            mpLogo = new MediaPlayer(mLogo);
            mpSaludo = new MediaPlayer(mSaludo);
            mediaView = new MediaView(mpLogo);
            mpLogo.setOnEndOfMedia(new Runnable() {
                public void run() {
                    mpLogo.stop();
                    mediaView.setMediaPlayer(mpSaludo);
                    mpSaludo.play();
            mpSaludo.setOnEndOfMedia(new Runnable() {
                public void run() {
                    mpSaludo.stop();
                    mediaView.setMediaPlayer(mpLogo);
                    mpLogo.play();
            mLogo.setOnError(new Runnable() {
                public void run() {
                    logger.severe("Error en Media mLogo");
            mSaludo.setOnError(new Runnable() {
                public void run() {
                    logger.severe("Error en Media mSaludo");
            mpLogo.setOnError(new Runnable() {
                public void run() {
                    logger.severe("Error en MediaPlayer mpLogo");
            mpSaludo.setOnError(new Runnable() {
                public void run() {
                    logger.severe("Error en MediaPlayer mpSaludo");
            mediaView.setOnError(new EventHandler<MediaErrorEvent>() {
                public void handle(MediaErrorEvent t) {
                    logger.severe("Error en MediaView mediaView");
                    logger.severe(t.getMediaError().getMessage());
            root.getChildren().addAll(mediaView);
            scene = new Scene(root, 300, 250);
            primaryStage.setScene(scene);
            primaryStage.show();
            mpLogo.play();
        public String myGetResource(String path) {
            return (this.getClass().getResource(path).toString());
    }My video saludo.flv hangs up.
    Here is the content of the log file:
    <?xml version="1.0" encoding="windows-1252" standalone="no"?>
    <!DOCTYPE log SYSTEM "logger.dtd">
    <log>
    <record>
    <date>2011-12-12T12:03:53</date>
    <millis>1323702233578</millis>
    <sequence>0</sequence>
    <logger>pruebafx.pruebafx</logger>
    <level>INFO</level>
    <class>pruebafx.PruebaFX</class>
    <method>start</method>
    <thread>12</thread>
    *<message>Starting PruebaFX</message>*
    </record>
    <record>
    <date>2011-12-12T12:04:06</date>
    <millis>1323702246109</millis>
    <sequence>1</sequence>
    <logger>pruebafx.pruebafx</logger>
    <level>SEVERE</level>
    <class>pruebafx.PruebaFX$6</class>
    <method>run</method>
    <thread>12</thread>
    *<message>Error en MediaPlayer mpSaludo</message>*
    </record>
    <record>
    <date>2011-12-12T12:04:06</date>
    <millis>1323702246109</millis>
    <sequence>2</sequence>
    <logger>pruebafx.pruebafx</logger>
    <level>SEVERE</level>
    <class>pruebafx.PruebaFX$4</class>
    <method>run</method>
    <thread>12</thread>
    *<message>Error en Media mSaludo</message>*
    </record>
    </log>
    Do you know when will be available the 2.0.2 version???
    I have to finish my application!!!
    Thanks.
    Noelia

  • SQL Server 2012 Undetected Deadlock in a table with only one row

      We have migrated our SQL 2000 Enterprise Database to SQL 2012 Enterprise few days ago.
      This is our main database, so most of the applications access it.
      The day after the migration, when users started to run tasks, the database access started to experiment a total failure.
      That is, all processes in the SQL 2k12 database were in lock with each other. This is a commom case of deadlock, but the Database Engine was unable to detect it.
      After some research, we found that the applications were trying to access a very simple table with only one row. This table has a number that is restarted every day and is used to number all the transactions made against the system.   So, client
    applications start a new transaction, get the current number, increment it by one and commit the transaction.
      The only solution we found was to kill all user processes in SQL Server every time this situation occurs (no more than 5 minutes when all clients are accessing the database).
      No client application was changed in this migration and this process was working very well for the last 10 years.
      The problem is that SQL 2k12 is unable to handle this situation compared to SQL 2k.
      It seems to occurs with other tables too, but as this is an "entry table" the problem occurs with it first.
      I have searched internet and some suggest some workarounds like using table hints to completely lock the table at the begining of the transaction, but it can't be used to other tables.
      Does anyone have heard this to be a problem with SQL 2k12? Is there any fixes to make SQL 2k12 as good as SQL 2k?

    First off re: "Unfortunatelly, this can't be used in production environment as exclusive table lock would serialize the accesses to tables and there will be other tables that will suffer with this problem."
    This is incorrect. 
    Using a table to generate sequence numbers like this is a bad idea exactly because the access must be serialized.  Since you can't switch to a SEQUENCE object, which is the correct solution, the _entire goal_ of this exercise to find a way to properly
    serialize access to this table.  Using exclusive locking will not be necessary for all the tables; just for the single-row table used for generating sequence values with a cursor.
    I converted the sample program to VB.NET:
    Public Class Form1
    Private mbCancel As Boolean = False
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    Dim soConn As ADODB.Connection
    Dim soRst As ADODB.Recordset
    Dim sdData As Date
    Dim slValue As Long
    Dim slDelay As Long
    'create database vbtest
    'go
    ' CREATE TABLE [dbo].[ControlNumTest](
    ' [UltData] [datetime] NOT NULL,
    ' [UltNum] [int] NOT NULL,
    ' CONSTRAINT [PK_CorreioNumTeste] PRIMARY KEY CLUSTERED
    ' [UltData] Asc
    ' )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
    ' ) ON [PRIMARY]
    mbCancel = False
    Do
    ' Configure the Connection object
    soConn = New ADODB.Connection
    With soConn
    .ConnectionString = "Provider=SQLNCLI11;Initial Catalog=vbtest;Data Source=localhost;trusted_connection=yes"
    .IsolationLevel = ADODB.IsolationLevelEnum.adXactCursorStability
    .Mode = ADODB.ConnectModeEnum.adModeReadWrite
    .CursorLocation = ADODB.CursorLocationEnum.adUseServer
    .Open()
    End With
    ' Start a new transaction
    Call soConn.BeginTrans()
    ' Configure the RecordSet object
    soRst = New ADODB.Recordset
    With soRst
    .ActiveConnection = soConn
    .CursorLocation = ADODB.CursorLocationEnum.adUseServer
    .CursorType = ADODB.CursorTypeEnum.adOpenForwardOnly
    .LockType = ADODB.LockTypeEnum.adLockPessimistic
    .Open("SELECT * FROM dbo.ControlNumTest")
    End With
    With soRst
    sdData = .Fields!UltData.Value ' Read the last Date (LOCK INFO 1: See comments bello
    slValue = .Fields!UltNum.Value ' Read the last Number
    If sdData <> Date.Now.Date Then ' Date has changed?
    sdData = Date.Now.Date
    slValue = 1 ' Restart number
    End If
    .Fields!UltData.Value = sdData ' Update data
    .Fields!UltNum.Value = slValue + 1 ' Next number
    End With
    Call soRst.Update()
    Call soRst.Close()
    ' Ends the transaction
    Call soConn.CommitTrans()
    Call soConn.Close()
    soRst = Nothing
    soConn = Nothing
    txtUltNum.Text = slValue + 1 ' Display the last number
    Application.DoEvents()
    slDelay = Int(((Rnd * 250) + 100) / 100) * 100
    System.Threading.Thread.Sleep(slDelay)
    Loop While mbCancel = False
    If mbCancel = True Then
    Call MsgBox("The test was canceled")
    End If
    Exit Sub
    End Sub
    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
    mbCancel = True
    End Sub
    End Class
    And created the table
    CREATE TABLE [dbo].[ControlNumTest](
    [UltData] [datetime] NOT NULL,
    [UltNum] [int] NOT NULL,
    CONSTRAINT [PK_CorreioNumTeste] PRIMARY KEY CLUSTERED
    [UltData] Asc
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = on, FILLFACTOR = 80) ON [PRIMARY]
    ) ON [PRIMARY]
    go insert into ControlNumTest values (cast(getdate()as date),1)
    Then ran 3 copies of the program and generated the deadlock:
    <deadlock>
    <victim-list>
    <victimProcess id="processf27b1498" />
    </victim-list>
    <process-list>
    <process id="processf27b1498" taskpriority="0" logused="0" waitresource="KEY: 35:72057594039042048 (a01df6b954ad)" waittime="1970" ownerId="3181" transactionname="implicit_transaction" lasttranstarted="2014-02-14T15:49:31.263" XDES="0xf04da3a8" lockMode="X" schedulerid="4" kpid="9700" status="suspended" spid="51" sbid="0" ecid="0" priority="0" trancount="2" lastbatchstarted="2014-02-14T15:49:31.267" lastbatchcompleted="2014-02-14T15:49:31.267" lastattention="1900-01-01T00:00:00.267" clientapp="vbt" hostname="DBROWNE2" hostpid="21152" loginname="NORTHAMERICA\dbrowne" isolationlevel="read committed (2)" xactid="3181" currentdb="35" lockTimeout="4294967295" clientoption1="671088672" clientoption2="128058">
    <executionStack>
    <frame procname="adhoc" line="1" stmtstart="80" sqlhandle="0x020000008376181f3ad0ea908fe9d8593f2e3ced9882f5c90000000000000000000000000000000000000000">
    UPDATE [dbo].[ControlNumTest] SET [UltData]=@Param000004,[UltNum]=@Param000005 </frame>
    <frame procname="unknown" line="1" sqlhandle="0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000">
    unknown </frame>
    </executionStack>
    <inputbuf>
    (@Param000004 datetime,@Param000005 int)UPDATE [dbo].[ControlNumTest] SET [UltData]=@Param000004,[UltNum]=@Param000005 </inputbuf>
    </process>
    <process id="processf6ac9498" taskpriority="0" logused="10000" waitresource="KEY: 35:72057594039042048 (a01df6b954ad)" waittime="1971" schedulerid="5" kpid="30516" status="suspended" spid="55" sbid="0" ecid="0" priority="0" trancount="1" lastbatchstarted="2014-02-14T15:49:31.267" lastbatchcompleted="2014-02-14T15:49:31.267" lastattention="1900-01-01T00:00:00.267" clientapp="vbt" hostname="DBROWNE2" hostpid="27852" loginname="NORTHAMERICA\dbrowne" isolationlevel="read committed (2)" xactid="3182" currentdb="35" lockTimeout="4294967295" clientoption1="671156256" clientoption2="128058">
    <executionStack>
    <frame procname="adhoc" line="1" sqlhandle="0x020000003c6309232ab0edbe0a7790a816a09c4c5ac6f43c0000000000000000000000000000000000000000">
    FETCH API_CURSOR0000000000000001 </frame>
    <frame procname="unknown" line="1" sqlhandle="0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000">
    unknown </frame>
    </executionStack>
    <inputbuf>
    FETCH API_CURSOR0000000000000001 </inputbuf>
    </process>
    </process-list>
    <resource-list>
    <keylock hobtid="72057594039042048" dbid="35" objectname="vbtest.dbo.ControlNumTest" indexname="PK_CorreioNumTeste" id="lockff6e6c80" mode="U" associatedObjectId="72057594039042048">
    <owner-list>
    <owner id="processf6ac9498" mode="S" />
    <owner id="processf6ac9498" mode="U" requestType="wait" />
    </owner-list>
    <waiter-list>
    <waiter id="processf27b1498" mode="X" requestType="convert" />
    </waiter-list>
    </keylock>
    <keylock hobtid="72057594039042048" dbid="35" objectname="vbtest.dbo.ControlNumTest" indexname="PK_CorreioNumTeste" id="lockff6e6c80" mode="U" associatedObjectId="72057594039042048">
    <owner-list>
    <owner id="processf27b1498" mode="U" />
    <owner id="processf27b1498" mode="U" />
    <owner id="processf27b1498" mode="X" requestType="convert" />
    </owner-list>
    <waiter-list>
    <waiter id="processf6ac9498" mode="U" requestType="wait" />
    </waiter-list>
    </keylock>
    </resource-list>
    </deadlock>
    It's the S lock that comes from the cursor read that's the villian here.  U locks are compatible with S locks, so one session gets a U lock and another gets an S lock.  But then the session with an S needs a U, and the session with a U needs an
    X.  Deadlock. 
    I'm not sure what kind of locks were taken by this cursor code on SQL 2000, but on SQL 2012, this code is absolutely broken and should deadlock.
    The right way to fix this code is to add (UPDLOCK,SERIALIZABLE) to the cursor
    .Open("SELECT * FROM dbo.ControlNumTest with (updlock,serializable)")
    So each session reads the table with a restrictive lock, and you don't mix S, U and X locks in this transaction.  This resolves the deadlock, but requires a code change.
    I tried several things that didn't require a code, which did not resolve the deadlock;
    1) setting ALLOW_ROW_LOCKS=OFF ALLOW_PAGE_LOCKS=OFF
    2) SERIALIZABLE isolation level
    3) Switching OleDB providers from SQLOLEDB to SQLNCLI11
    Then I replaced the table with a view containing a lock hint:
    CREATE TABLE [dbo].[ControlNumTest_t](
    [UltData] [datetime] NOT NULL,
    [UltNum] [int] NOT NULL,
    CONSTRAINT [PK_CorreioNumTeste] PRIMARY KEY CLUSTERED
    [UltData] Asc
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = on, FILLFACTOR = 80) ON [PRIMARY]
    ) ON [PRIMARY]
    go
    create view ControlNumTest as
    select * from ControlNumTest_t with (tablockx)
    Which, at least in my limited testing, resovlved the deadlock without any client code change.
    David
    David http://blogs.msdn.com/b/dbrowne/

  • How use two templantes with only one job ?

    I have two templantes and want use with only one job.I use with input one xml data file !!
    Is this possible?
    Please Help!!
    Thanks,
    Bruno.

    I probably missed this one earlier or felt that since it referenced an XML data file that I couldn't provide a definitive answer. I'm still not sure I can because we don't use XML for our data files, but use the "field nominated format".<br /><br />An expansion on Tammy's information:<br /><br />1. use a multi-step job with each <br />b task<br />calling a different MDF.<br />With this correction, it assumes that you either have access to set up the tasks/jobs yourself or can convince your Central administrator to do so. What happens is that TASKA is set up to reference FORMA and TASKB is set up to reference FORMB. Then a job is set up that causes both TASKA & TASKB to be ran. This will likely result in two different print files being sent to the printer. That may or may not be desirable, depending on whether your printer is set up to do something special between each print file (insert separator page, offset, whatever). Personally, I don't recommend this as it can quickly cause an unnecessary proliferation of tasks and jobs (we print 100's of differing form combinations with a single job definition).<br /><br />2. I can't really address this as I didn't even know that a single form could cause another to be called. I would expect that unless the "base" form (say it is FORMA) is to always print with the secondary form (FORMB) it is restrictive and has the potential to cause a proliferation of FORMA files for the various combinations that are to be printed. Maybe it is possible to have logic to check the value of a data field to control what forms get called.<br /><br />3. If you pass the XML file through a translation step and then through the transformation agent (maybe it can be done in a single step) this should work. It does add another step to the job as well as requiring learning to use the transformation agent. Depending on the combination of forms to be printed, you might need a different translation definition for each one, or at the very least have a data field that you can check the value of to determine what ^form commands to put in the output file.<br /><br />4. My recommendation is based on assuming an XML data file has the same capabilities as a field nominated file. Within a field nominated file are various print agent commands, including references to data as well as which forms are to be printed (and a whole bunch of other commands). An XML file should have the same features - I just can't say what they might look like. If your current data file has no "form" reference but depends on the job/task definition you might have to stick with option 1. If it has a "form" reference, then you just need to insert additional references for additional forms. Then it is up to the source of your data (or a transformation agent step) to specify which forms are to be printed. For example, in field nominated format, the file might look like:<br /><br />^job XYZ additional parameters<br />^form FORMA.MDF<br />^field FIELD1<br />data<br />^field FIELD2<br />data<br />^form FORMB.MDF<br />^field FIELD1<br />data<br />^field FIELD3<br />data<br /><br />or it might look like the way our files look:<br /><br />^job XYZ additional parameters<br />^global FIELD1<br />data<br />^global FIELD2<br />data<br />^global FIELD3<br />data<br />^form FORMA.MDF<br />^form FORMB.MDF<br /><br />As you can see in the first example, there is a reference to the form followed by all fields that go on it followed by another form reference with the fields that go on it. This particular method, using all "^field" commands for defining the data requires that data duplicated between the forms be duplicated. (Or, the use of some ^global commands like the following.)<br /><br />In the second example, all data is defined first using the "^global" command followed by all of the form references. This allows for the data to be defined only once. If there is something unique regarding a particular form the field can be ^global at the beginning or it can be ^field <br />b after<br />the ^form reference (similar to the first example).<br /><br />As previously mentioned, the XML file should have the same capability but in XML notation, something like the following (forgive me as it has been years since I took the XML class and don't use it in my daily work so the actual format could be wrong, not to mention the actual labels):<br /><br /><job name=XYZ,option=aaaa,option=bbbbbbb><br />  <form name=FORMA.MDF><br />    <field name=FIELD1, value=xxxxxxxxxxx></field><br />    <field name=FIELD2, value="xxxxxxxxxxxxx"></field><br />  </form><br />  <form name=FORMA.MDF><br />  etcetera<br /></job><br /><br />or maybe:<br /><br /><job name=XYZ,option=aaaa,option=bbbbbbb><br />  <global name=FIELD1,value=xxxxxxxxxxxx></global><br />  <global name=FIELD2,value="xxxxxxxxxxxxx"></global><br />  etcetera<br />  <form name=FORMA.MDF></form><br />  <form name=FORMB.MDF></form><br /></job><br /><br />or even (but I doubt it):<br /><br /><job name=XYZ,option=aaaa,option=bbbbbbb><br />  <globals><br />    name=FIELD1,value=xxxxxxxxxxxxxxxx,<br />    name=FIELD2,value="xxxxxxxxxxxxxxx"<br />  </globals><br />  <forms><br />    name=FORMA.MDF,<br />    name=FORMB.MDF<br />  </forms><br /></job>

  • I got a new pc and I am getting this message: The ipod 'harms ipod' is synced with another itunes library  Do you want to erace this Ipod and synce with this itunes library?  An Ipod can only be synced with only one itunes library at a time.  Erasing and

    The ipod 'harms ipod' is synced with another itunes library.Do you want to erase this ipod and sync with this itunes library?  An ipod can be synced with only one itunes library at a time.  Erasing and syncing replace the contents of this ipod with the contents of this itunes library.
    I don't know what to do?  I should save my library before I replace the contents, but I don't know how to do that! HELP!!

    See this older post from another forum member Zevoneer covering the different methods and software available to assist you with the task of copying content from your iPod back to your PC and into iTunes.
    https://discussions.apple.com/thread/2452022?start=0&tstart=0
    B-rock

  • Why won't my iMessage work with only one contact in my phone all my other iMessages send and they just got an iphone but all their iMessages are sending also. I've tried restarting my phone, deleting messages, contact, restarting network

    Why won't my iMessage work with only one contact in my phone all my other iMessages send and they just got an iphone but all their iMessages are sending also. I've tried restarting my phone, deleting messages, contact, restarting network

    Hello Jesslb23,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/ts2755
    To resolve issues with sending and receiving iMessages, follow these steps first
    Check iMessage system status for current service issues.
    Go to Settings > Messages > Send & Receive and make sure that you have registered iMessage with your phone number or Apple ID and that you have selected iMessage for use. Learn more about troubleshooting iMessage registration if the phone number or Apple ID isn't available for use.
    Open Safari and navigate to www.apple.com to verify data connectivity. Learn more about troubleshootingcellular data or a Wi-Fi connection if a data connection isn't available.
    iMessage over cellular data might not be available while on a call. Only 3G and faster GSM networks support simultaneous data and voice calls. Learn more about which network your phone supports. Go to Settings > Wi-Fi and turn Wi-Fi on to use iMessage while on a call if your network doesn't support simultaneous data and voice calls.
    Restart your device.
    Tap Settings > General > Reset > Reset Network Settings on your iPhone.
    If you are still unable to send or receive an iMessage, follow these steps
    Make sure that the contact trying to message you isn't blocked in Settings > Messages > Blocked.
    Verify that the contact you are attempting to send a message to is registered with iMessage.
    If the issue occurs with a specific contact or contacts, back up or forward important messages and delete your current messaging threads with the contact. Create a new message to the contact and try again.
    If the issue occurs with a specific contact or contacts, delete and re-create the contact in the Contacts application. Create a new message to the newly created contact and try again.
    Back up and restore your device as new.
    Best of luck,
    Mario

  • Multiple events per date with only one photo each - Unwanted

    I have the eyefi wireless sd card in my camera and it is setup to transmit my photos into iphoto automatically, which it does. However, the problem arises in that iphoto creates multiple events for the same date each containing only one photo. I would prefer that iphoto create individual events per date and have the multiples of that date's photos within. I thought I had the settings configured to do so as I have preferences set for autosplit events one per day but I still see events such as - July 3, 2008 - July 3, 2008 - July 3, 2008 - each with only one photo inside.
    I am wondering if it is something in iphoto's settings or the way in which eyefi transmits the photos into iphoto.
    Any thoughts?

    I do not have a WiFi connection to my camera so can not test but am just guessing
    I can think of two possibilities
    - 1 - if you are taking the photos with the WiFi connected then each time you snap a photo it may be being sent which would be looked at as a new import and therefore create a new event - to stop this I believe you would have to not have a full time WiFi connection to your camera or somehow set the camera to send batched - not each one - iPhoto will take each batch into and follow the rules for making events for that batch even if you camera is sending many batches of One photo
    - 2 - You have the preference for making batches set to one every two hours and there is a long time between photos - I'm guessing that #1 is more likely
    LN

  • Hide unhide rolemenu in web with only one link

    Hi together
    is it possible to hide unhide the role menu in web with only one link by using command urls?
    Regards,
    M. Erbil

    Hi Memo,
    use something like this:
    <!-- BW data source object tags -->
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_PROPERTIES"/>
             <param name="TEMPLATE_ID" value="ROLEMENU"/>
             TEMPLATE PROPERTIES
    </object>
    <HTML>
    <HEAD>
    <TITLE>Rolemenu</TITLE>
          <link href="/sap/bw/Mime/BEx/StyleSheets/BWReports.css" type="text/css" rel="stylesheet"/>
         <script type="text/javascript" >
    /* This function switches the attribute HIDDEN (alternate Tablestyles) for item mytable 
    1. Get actual value for attribute  HIDDEN
    2. Send Commando with new attribute to BW Server  */
            function switch_visibility(mytable) {
             var prop = SAPBWGetItemProp(mytable);
             var visibility='X';
             if (prop != null){
                      for(i=1;i<prop.length;i++){
                                if (prop<i>[0] =="HIDDEN") visibility = prop<i>[1];
                if (visibility =='X')  {
                               visibility=' '
                else
                            visibility = 'X';
                SAPBWOpenURL(SAP_BW_URL_Get() +'&item=' + mytable +'&HIDDEN=' + visibility);            
         -->
         </script>
    </HEAD>
    <BODY>
    <P> <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="ROLEMENU_1"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_MENU"/>
             <param name="WIDTH" value="335"/>
             <param name="GENERATE_CAPTION" value=""/>
             <param name="TARGET" value=""/>
             <param name="HEIGHT" value="285"/>
             <param name="IFRAME" value="X"/>
             <param name="IFRAME_STYLE" value="X"/>
             <param name="HIERARCHY_COLOR" value=""/>
             <param name="DIFF_ICONS" value=""/>
             ITEM:            ROLEMENU_1
    </object> </P><!&mdash;Include a button in HTML with id mybutton1. By clicking on link the function switch_visibility for item ROLEMENU_1 will be executed &agrave;
    <table class="SAPBEXBtnStdBorder" cellspacing="0" cellpadding="0" border="0"><tr><td>
    <table>
    <tr>
       <td class="SAPBEXBtnStd"   id="mybutton1" > <A href="javascript:switch_visibility('ROLEMENU_1');" >show / hide menu</A> 
       </td>
    </tr>
    </table> 
    </td>
    </tr></TABLE><!&mdash;  call function set_button, to set the correct style class for button  mybutton1 &agrave;
    <script type="text/javascript" >
    <!--
          set_button('ROLEMENU_1', 'mybutton1');
    --></SCRIPT>
    </BODY>
    </HTML>
    Regards,
    Adem

  • SQL query to retrieve families with only one generation from a family db

    Hi,
    I need to write an SQL query that would select families with only one generation ((which means a person - or a married couple - with kids) or (a person - or a married couple - with parents but no kids)) from a database containing families. The simplified db structure is:
    person:
    id - int, primary key
    siblings:
    id
    parent_id
    kid_id
    marriage
    id:
    husband_id
    wife_id
    Could anyone please help me? I dont really have any idea how to accomplish that...

    Hi,
    Welcome to the forum!
    Assuming that siblings (despite its name) contains only parent-child relationships, and that the parent_id could be either the mother or the father:
    WITH     got_tree     AS
         SELECT     CONNECT_BY_ROOT  s.parent_id     AS root_id
         ,     LEVEL                     AS lvl
         FROM          siblings     s
         LEFT OUTER JOIN     marriage     m     ON     s.parent_id     IN ( m.husband_id
                                                            , m.wife_id
         START WITH     parent_id     NOT IN     (  SELECT  kid_id
                                               FROM        siblings
         CONNECT BY     s.parent_id     IN ( PRIOR m.husband_id
                                , PRIOR m.wife_id
                                , PRIOR kid_id
    SELECT       root_id
    FROM       got_tree
    GROUP BY  root_id
    HAVING       MAX (lvl)     <= 2
    ;This will get a list of parents who may or may not have children, but who do not have either parents or grandchildren.
    To get their spouses and children (if any) you will have to join this result set to all the other tables. At that point, you can eliminate poeple who do not have ancestors themselves, but are married to people who have more than one generation of ancestors.
    The details of how to do that depend on the details of your tables. If you'd like help, then post a little sample data (CREATE TABLE and INSERT statements for all tables) and the results you want from that data.
    Edited by: Frank Kulash on Oct 14, 2009 4:05 PM
    I'd need sample data in order to test this, of course.

  • I was trying to add an itunes library to my computer, and now my itunes library can not be found. An ipod can be synced with only one iTunes library at a time. How can I find my Itunes library, complete with playlists ?

    I was trying to add an itunes library to my computer, and now my itunes library can not be found. An ipod can be synced with only one iTunes library at a time. How can I find my Itunes library, complete with playlists ?

    I have the same problem too and tried alot of things like time zone , restarting or changing DNS of wifi connection to 8.8.8.8 still nothing happens .. !!
    iPhone 5s, iOS 8.3

Maybe you are looking for

  • In need of a Portal Tech Lead

    We are in need of a Technical Lead for an exciting new opportunity in Southern California. If you are interested or know someone who may be interested and would like more information please contact Dante Vasquez at: 949/448-8701 or via e-mail at [ema

  • Reset hp envy 4500 printer to default factory settings

    The printer indicates that the cartridges are not suitable for this printer. That is strange, because both cartridges are original HP cartridges. I'm looking for a way to reset the printer to the default factory settings, but I can't find a way to do

  • Importing album cover art

    Hello It is a mystery to me why iTunes cannot import some album art and can others, where album covers for items as common as Abbey Road or something by Radiohead, aren't found. How do I import cover art from, say, Amazon? I see one can "copy image"

  • Callback with a USR modem

    Ok I have a USR modem plugged into the fax line as well as a 2811 router. Aux line was configured with: 1. rtr-1(config)#line 65 2. rtr-1(config-line)#modem inout 3. rtr-1(config-line)#speed 115200 4. rtr-1(config-line)#transport input all 5. rtr-1(c

  • Premiere Pro CC 2014.2 8.2.0 (65) Build = CRASH!

    I've never had an issue with Premiere until this update. I'm importing small, 1080p, Cineform AVI's. These dropped into the timeline flawlessly and I didn't even need to pre-render to preview the movie before this update. I installed the update to Pr