Running with packages...  Well running period...

Alright, normally I use my schools Visual Cafe, that is great. But I'm at home for now.
I have everything to run my scripts, but how do I?
Alright, say I create a folder. I put my 3 .java files into it. 2 are part of a package and the one imports them 2. Get it so far?
Well what would I have to name them packages (like... package lala.umm.what) if it is in a folder. What about calling javax.swing. Will I be able to just import it like normal and it'll find javax.swing?
More questions may arise so this might/might not be a hot topic for a while. :-\
Thank you so much!
-Matt

Oh and List and EmptyListException compile, but have a
couple errors... Aren't my biggest problem right now.I hope you mean logic errors (they don't work exactly as you want), not compilation errors.
I put my 3rd Java file in my C:\ and my other 2 files in the same directory.Do you mean you left the other 2 in c:\windows\desktop\project ? Cos that's where they should be.
If it's still giving you errors about JButton, even after you import javax.swing.*; then it's a classpath problem.
But make sure you are import exactly that:
import javax.swing.*;
Are ALL your other imports failing too (you've only mentioned javax.swing classes)?
Try compiling like so:
javac -classpath %classpath%;c:\jdk1.4.1_01\lib c:\ThirdClass.java
(of course replacing jdk1.4.1_01 with your java directory, changes depending on version)
I think that's how it goes, anyway. You shouldn't need to play with the classpath though. What os? XP?

Similar Messages

  • Does the amount of gigabits for an ipod touch have to do with how well it runs?

    does the amount of gigabits, for an ipod touch, have to do with how well it runs?

    Only when you have very little storage available, like less than 1/2 GB or so.

  • How to schedule ETL jobs to run periodically after BI Apps is up and runnin

    Hi,
    How do you schedule ETL jobs to run periodically after BI Apps is install and configured? Is there document out there that explains how the ETL scheduling is setup?
    Thanks

    Using DAC we can schedule the ETL to run periodically. In DAC Execute -> Scheduler you can set the date and time for the ETL which need to be scheduled. You can get detail information in guide 'Oracle® Business Intelligence Data Warehouse Administration Console User’s Guide'

  • CLOCOC which menu to schedule the job to run periodic

    Hello all:
    IN closing cockpit template CLOCOC/ CLOCL which menu to schedule the task to run periodically for ex. 1st of every month.
    Best Regards,
    Manthana

    Using transaction CLOCOC select your template/task list and enter change mode.  Then using the menu again select template/task list > Create Task Lists (not 'create task list').  Here you'll be able to create D-Daily, N-Periodically at Month End as per Fiscal Year Variant, T-Periodically Every Two Weeks, U-Periodically Every n Days or W-Periodically per Week.  For a monthly Template/Task list you would select 'N' choose the Fiscal Year Variant and click on the Save button, this will generate 'Task Lists' for the upcoming periods.  Go to the menu Template/Task List > Other Template/Task List and expand the Template to view all of the Task Lists that have been created.  Hope this helps!
    Edited by: Joseph Cronkright on Jan 5, 2010 10:25 PM

  • Jsp name clashes with package of same name (WL5.1)

              I have the following directory structure, well not really, but anyway...
              foo.jsp
              foo/bar.jsp
              The compilation of foo.jsp will fail stating that "jsp_servlet/_foo clashes with
              package of same name".
              The problem is that you can't have a jsp and directory of the same name. Actually,
              to be specific, you can't only if that directory contains another jsp, which in
              my case it does.
              What can I do so that weblogic will allow me to have a directory and jsp with
              the same name?
              thanks,
              -Steve
              

              Well, adding a prefix like dir to get dir_foo only works if you
              don't have a class called dir_foo, right?
              I'm sure you can come up with other mechanims for munging names
              and I'm also sure that I can come up with examples where they
              don't work.
              Mike
              "steve" <[email protected]> wrote:
              >
              >I'd like to say no, but unfortunately that's not really an
              >option. It should be possible to drop in a jsp file
              >under my document root anywhere that I might have an html file.
              >
              >I agree java limits you from having a class and package of the
              >same name. But weblogic constructs the package names, so it can ensure
              >a conflict
              >does not happen.
              >
              >For instance, the "packagePrefix" JSPServlet initialization
              >argument that defaults to "jsp_servlet" avoids package
              >conflicts. Similarly, I'm suggesting a "directoryPrefix"
              >argument that would avoid the conflict that I'm running up
              >against.
              >
              >Given the same boring example:
              >foo.jsp
              >foo/bar.jsp
              >
              >and using a directoryPrefix of "_dir" it would be mapped to
              >
              >jsp_servlet/_foo.class
              >jsp_servlet/_dir_foo/bar.class
              >
              >Any thoughts?
              >
              >"Mike Reiche" <[email protected]> wrote:
              >>
              >>I believe that is a limitation of Java, not Weblogic.
              >>
              >>Just say no.
              >>
              >>Mike
              >>
              >>"Steve" <[email protected]> wrote:
              >>>
              >>>I have the following directory structure, well not really, but anyway...
              >>>foo.jsp
              >>>foo/bar.jsp
              >>>
              >>>The compilation of foo.jsp will fail stating that "jsp_servlet/_foo
              >>clashes
              >>>with
              >>>package of same name".
              >>>
              >>>The problem is that you can't have a jsp and directory of the same
              >name.
              >>>Actually,
              >>>to be specific, you can't only if that directory contains another jsp,
              >>>which in
              >>>my case it does.
              >>>
              >>>What can I do so that weblogic will allow me to have a directory and
              >>>jsp with
              >>>the same name?
              >>>
              >>>thanks,
              >>>-Steve
              >>
              >
              

  • Issue with Packaged Jars added to project from resource Palette

    Hello!
    I am using Jdeveloper 11.1.2.2.
    I started this post thinking there was an issue having to do with packaging jars that refer to other libraries (see post Are Libraries Required?
    Now I realize it is a different issue (although that other post is relevant).
    Issue: I create a package -- a template in this case.
    I deploy it in my file system and then load it into the resource palette as a file system connection.
    I create a new application. From the resource palette, I add the jar to the view controller project, and am able to use the template in jsf files. No problem. Runs fine.
    then I load the application into subversion or I move the whole application to another directory on my computer.
    When I open the moved application (or do a checkout from subversion), I open the jsf that contains a reference to the jar, the design view is completely blank. Going to the source, I see my original code, but there are red signals in the upper-right signifying an error.
    If I run the application without fixing it, I get an error saying the template cant be found, Also, when I deployed to a standalone weblogic server, I get the same error (see the post above for this error).
    I open the project properties. The ADF Library is in the "Libraries and Classpath" and pressing edit, I can see the correct reference to the path of the jar.
    To make the application work, I have to remove the ADF Library (or at least the reference when pressing edit) and then from the resource palette, add it again to the project.
    IS THIS NORMAL? Am I doing something wrong with the initial packaging of the jar? Should I change some setting somewhere?
    How am I supposed to deploy to weblogic?
    The other posting shows an error output if I try to run the application before fixing the jar reference. I got the same darn error when deploying to weblogic.
    Would appreciate any help!
    Stuart
    Edited by: Stuart Fleming on Nov 18, 2012 4:45 AM

    Timo,
    thank you for your reply. I actually created a youtube video on this, available here: http://youtu.be/ERyLngq9hlI
    Since the video might be a little tedious to view, Here are the details. You can jump to the exciting parts of the video, if you want:
    Here is what I did:
    1. I cleaned out my system directory and the temp directory on my computer.
    2. Opened the application containing my template. Deleted the existing jar file.
    3. Started taking video....
    4. (From 40 seconds into the video) Created the jar file again.
    5. (2:55 minuts into video) Closed template applcation and Created new fusion application.
    6. (4 minutes into the video) Created model
    7. (4:15 minutes into video) in view controller added template, created a jsf page.
    8. (5 minutes into the video) Created Security and users.
    9. (6:30 minutes into the video) Created a task flow, with jsff in it, with a form on the jsff. Assigned Security to objects.
    *10. (7 minutes into the video). Ran JSF successfully.*
    11. (7:40 minutes into the video). Closed application. Copied the entire application into two directories.
    12. (8 minutes into video) Opened the first copied video. You can see that the jsf page is not accessing the template. Reviewed the View Controller project Libraries and classpath. Removed the library, re-added the jar from the resource palette. Worked fine.
    13. (9:30 minutes into video). Opened the 2nd copy of the file I intend for subversion. Showed the jsf page and the error it displays when open (same as in first copied application).
    Load application into subversion.
    14. (10 minutes into video). Check out application
    15. (10:15 minutes into video). Open JSF file. The reference to the template jar file is reading properly.
    16. (11 minutes into video). Load the original working copy into subversion.
    17. (11:30 minutes into video). Check out from subverion, but the check out failed.
    18. (12 minutes into video). Check out, and look at the jsf.  The page shows fine.
    Timo, I think this might be reported as a bug. You ought to be able to move files around on your computer. Also, the first time I checked the application out from subversion, the jsf page did not read the template.
    ALSO, when I tried to deploy the application (that contained the reference to the template jar file to weblogic), I got the same error when I ran the jsf
    first lines of that error:
    Error 500--Internal Server Error
    java.io.FileNotFoundException: /WEB-INF/ssfTemplate/SSFTemplate.jsf Not Found in ExternalContext as a Resource
    at com.sun.faces.facelets.impl.DefaultFaceletFactory.resolveURL(DefaultFaceletFactory.java:224)
    Thank you for your time and commitment!
    Stuart
    Edited by: Stuart Fleming on Nov 18, 2012 10:13 AM

  • Problem when working with package???Please, help me!!!

    I got 3 .java files from one Java tutorial as follow:
    Server.java (in package mygame.server)
    Utilities.java (in package mygame.shared)
    Client.java (in package mygame.client)
    All the above files are placed in "E:\Java Programmes\source"
    After compiling, i got correspponding .class files:
    Server.class (placed in "E:\Java Programmes\class\mygame\server")
    Utilities.class (placed in "E:\Java Programmes\class\mygam\shared")
    Clients.class (placed in "E:\Java Programmes\class\mygame\client")
    But when i run Server.class which contains main method, i got error as follow:
    E:\Java Programmes>java class\mygame\server\Server
    Exception in thread "main" java.lang.NoClassDefFoundError: class\mygame\server\S
    erver (wrong name: mygame/server/Server)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    That was very puzzled for me. I cannot find out what wrong with my files. Please., any boby, help me!!! I always got this problem when working with package and managing files. Thanls a lot.

    java -cp "E:\Java Programmes\class" mygame.server.Server

  • Help! With Packages...I'm new & frustrated!

    In the following directory structure, I have 2 classes, a DBHandler class that hits a database and a GetData class uses the DBHandler class to get specific data. I want to put both of these into a WebSiteClasses package. When I try to package both of them to the WebSiteClasses package, the DBHandler class compiles just fine. But when I try to compile the GetData class (that uses the DBHandler class) I get an error stating the following:
    "cannot resolve symbol
    symbol : class DBHandler".
    My code for the two java files is below this directory structure. I'm rather new at this and any help would be greatly appreciated
    &#8230;
    - tomcat
    - bin
    - classes
            - WebSiteClasses
                    DBHandler.class
                    DBHandler.java
                    GetData.class
                    GetData.java
    - common
    - conf
    - lib
    - logs
    - server
    - temp
    - work
    =====================================================
    JAVA Files ------>>>>
    DBHandler.java:
    package WebSiteClasses;
    import java.sql.*;
    public class DBHandler{
         public ResultSet getData(String sql){
                   Connection cn = null;
                   Statement st = null;
                   ResultSet rs = null;
                   try{
                             Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                             String url = "jdbc:odbc:FileToFile";
                             String user = "";
                             String pwd = "";
                             cn = DriverManager.getConnection(url,user,pwd);
                             st = cn.createStatement();
                             rs = st.executeQuery(sql);
                        }catch(ClassNotFoundException e){
                             e.printStackTrace();
                        }catch(SQLException e){
                             e.printStackTrace();
                        return rs;
    GetData.java:
    package WebSiteClasses;
    import java.sql.*;
    import java.io.*;
    import java.util.ArrayList;
    public class GetData{
         DBHandler db = new DBHandler();
         String[] monthList;
         public GetData() throws Exception{
              getTrans();
         public ArrayList getTrans() throws Exception{
              ResultSet rs = db.getData("select distinct Transaction from tblTransactReport");
              ArrayList list = new ArrayList();
              try{
                   while (rs.next()){
                        String Transaction = rs.getString("Transaction");
                        list.add(Transaction);
              }catch (SQLException e){e.printStackTrace();}
              return list;

    "...Everywhere I've read about packages, in books or on line tutorials, merely states the obvious...create a folder and then name that folder in a package statement in the JAVA program..."
    Not so obvious, apparently.
    I don't know about a comprehensive reference - explaining CLASSPATH shouldn't take a 1,000 page book.
    I think it's important to understand the connection between the package names, the directory structure, the fully-resolved class name, and the way that javac.exe and java.exe go looking for classes. Maybe you need to look past the obvious and think about this for a while longer.
    If you have a class X with package a.b.c, do you understand what the directory structure must look like? Where should the X.class file be? If you're using a command shell, what directory should you navigate to in order to compile X.java, and where should X.class end up when you're finished? When you try to run your new X.class, how do you invoke it in java.exe?
    If you can answer all those, you're in better shape.
    How To Set The CLASSPATH

  • 3000 J 115 with the well-documented "MS Remove Tool" Malware

    I have a 3000 J 115 with the well-documented "MS Remove Tool" Malware attack, which just hit as I was beginning to do taxes on this thing!  Microsoft recovery routines (the REAL MS Remove Tool, and MS Defender) will not run--the virus won't allow it.  I have instructions from spyware-experts.com to go into Safe Mode and (I guess), the system registry to remove the virus.  However, I can't get F8 to work and get me into Safe Mode. It just ignores it and boots up.  The condition of the desktop is very bad--slow to do anything, can get online but it takes forever, can't open up files (with the idea of doing a backup).  I have had this thing for 3 years and do not recall ever creating a factory-setting backup disk which could be used to restore the system.  The manual (online) has nothing that I can find on getting into Safe Mode.  Now what do I do?
    Moderator note; subject edited

    Hi Dave,
    My security will not allow me to go to spyware-experts.com to review the instructions that you received. That is probably because of its WOT rating: http://www.mywot.com/en/scorecard/spyware-experts.com
    You will need to stop the malware from running before you can fix anything. It might be a good idea to give this removal guide a try:
    http://www.bleepingcomputer.com/virus-removal/remove-ms-removal-tool
    Bleeping Computer is a respected site with a good rating. If you are unable to proceed on your own, they have trained experts available who will work with you one-on-one to remove the malware. Instructions for doing that are included in the guide. They may have a wait of a few days, so if you prefer to post on another forum for one-on-one help sooner, the forums listed on the side of the page here use trained volunteer analysts: http://hjt-data.trendmicro.com/hjt/analyzethis/index.php
    ** Note: If you have installed AVG, malware scanners may not run if you need help from a forum that uses specialized tools. .
    Please let us know if we can be of further help.
    ThinkPad: T530 / X1 Gen 2 / Helix - Yoga: Tablet 2 Pro (Win) / Yoga 3 Pro
    If you find a post helpful and it answers your question, please click the "Accept As Solution" button.
    Lenovo Advocate ~ I am not employed by Lenovo or Microsoft. I am a volunteer.
    Microsoft MVP - Consumer Security
    SpywareHammer

  • Help with packages and classpath

    Heya,
    first off, i use textpad to compile my java, i don't do it via the command line.
    my problem is faily simple, i think. i've got a main class and i'd like it to import a custom class from a subdir.
    Main class is in
    C:\Documents and Settings\David\Desktop\java\test_gen.java
    I would like it to import
    C:\Documents and Settings\David\Desktop\java\obj_data\objects.java
    I understand that I have to declare objects.java to be a part of a package, so i head the code with: package obj_data; as i understand it, the directory in which the package to be imported resides in will be named the same as the package.
    When i import my package into test_gen.java, i import obj_data as follows:
    import obj_data.*;
    this should import objects.class and any other classes in the same directory. also import obj_data.objects.*; could be used.
    Anyway, thats my understanding of how you set up the class and package; i also understand that when the java file compiles the compiler looks at the directoy(s) indicated in the class path for the classes to import. that in mind i tried to add:
    C:\Documents and Settings\David\Desktop\java\obj_data\
    to my classpath. i did this via dos, javac -classpath "C:\Documents and Settings\David\Desktop\java\obj_data\"
    i got no error messages, so i assume it worked. however when i try to compile the main java (test_gen) i get-
    package packages does not exist
    import packages.*;
    ^
    1 error
    Tool completed with exit code 1
    can anyone give me some help please?

    This is a minimal explanation of packages.
    Assume that your programs are part of a package named myapp, which is specified by this first line in each source file:
    package myapp;
    Also assume that directory (C:\java\work\) is listed in the CLASSPATH list of directories.
    Also assume that all your source files reside in this directory structure: C:\java\work\myapp\
    Then a statement to compile your source file named aProgram.java is:
    C:\java\work\>javac myapp\aProgram.java
    Explanation:
    Compiling
    A class is in a package if there is a package statement at the top of the class.
    The source file needs to be in a subdirectory structure. The subdirectory structure must match the package statement. The top subdirectory must be in the classpath directory.
    So, you generate a directory structure C:\java\work\myapp\ which is the [classpath directory + the package subdirectory structure], and place aProgram.java in it.
    Then from the classpath directory (C:\java\work\) use the command: javac myapp\aProgram.java
    Running
    Compiling creates a file, aProgram.class in the myapp directory.
    (The following is where people tend to get lost.)
    The correct name now, as far as java is concerned, is the combination of package name and class name: myapp.aProgram (note I omit the .class) If you don't use this name, java will complain that it can't find the class.
    To run a class that's NOT part of a package, you use the command: java SomeFile (assuming that SomeFile.class is in a directory that's listed in the classpath)
    To run a class that IS part of a package, you use the command java myapp.aProgram (Note that this is analogous to the command for a class not in a package, you just use the fully qualified name)

  • My probably 10 year old MaycBook died. It won't start. When I press the power button, it gets power, but it only lights up and a scratching noise starts like something is spinning. A file folder with a question mark periodically flashes... Help!!!

    My probably 10 year old MaycBook died. It won't start. When I press the power button, it gets power, but it only lights up and a scratching noise starts like something is spinning. A file folder with a question mark periodically flashes... Help!!!

    You don't have a Macbook if you are running OS 9 and it's 10 years old. The first Macbook is an Intel Mac that came out in 2006 running 10.4.x. You most likely have a Powerbook. Try posting in the Powerbook forum.
    A flashing question mark appears when you start your Mac

  • Guess I do need a little help with packages after all...

    Tried figuring in this out for the past 3 hours, various searches, scenarios etc...b4 posting....
    Okay, well....just like many aspects of this language, think I've got it down, and a
    new situation comes up where I can't implement it....in this case my own packages.
    (which is frustrating, but good because teaches troubleshooting, ingranes
    things into my peanut)
    Have done it before through tutorials...but now am having an issue...here we go:
    These are very small files..... 3 classes/one main
    http://www.cadenhead.org/book/24java/chapter10.shtml
    (see bottom for direct links)
    What I did first was put them in c:\java\2\modems
    compiled them all, everthing works great.
    #2
    I deleted the class files, and put all of the source into: c:\java\2\
    #3
    I edited the first 3 files to have the very first line ot each say:
    package com.modempack;
    No other edits, just this simple copy/paste at the top of each of those files
    #4
    For the file TestModems.java the only edit made was to put the following line at the top of the file:
    import com.modempack;
    #5 Compiled the first 3 files with the command "javac -d . FILENAME.java"
    they compile fine(you have to compile Modem.java 1st)
    #6 Try to compile the TestModems.java file with the same style or even just "javac Testmodems.java" and get the following error:
    C:\java\2>javac TestModems.java
    TestModems.java:1: package com does not exist
    import com.modempack;
    ^
    TestModems.java:5: cannot access CableModem
    bad class file: .\CableModem.java
    file does not contain class CableModem
    Please remove or make sure it appears in the correct subdirectory of the classpa
    th.
    CableModem roadRunner = new CableModem();
    ^
    2 errors
    It says package "com" does not exist" ...but it's created automatically when compiling the 1st 3 files....am at a lost.........could only think classpath issue somehow.....
    CableModem.java
    http://www.cadenhead.org/book/24java/source/chapter10/CableModem.java
    DslModem.java
    http://www.cadenhead.org/book/24java/source/chapter10/DslModem.java
    Modem.java
    http://www.cadenhead.org/book/24java/source/chapter10/Modem.java
    TestModems.java(the main app)
    http://www.cadenhead.org/book/24java/source/chapter10/TestModems.java

    Thank you for your response once again
    (assigned u the dukies from last thread)
    Argggghhhh!!!!! / Yippie Kayay!!!!!!!!!!!!!!
    Man oh man... HUGE headache....(wanting to studying the stuff from last post you helped on...having troubles with freaking packages SUCKS:) :) :)
    (but...will am learning, so that's good)
    Sooo....
    I put the actual ".java" files in the same directories, but that did not make a difference....
    So what I did was use the fully qualified /explicit name for each class.
    IE:
    import com.modempack;Gives the original 2 errors....that the above package does NOT exist??? wtf
    import com.modempack.*;Gives a single bad class erro
    Using either of the above and the following command:
    javac -classpath TestModems.javagives "no source files found"
    Using either of the above and the following command:
    javac -classpath c:\java\2\com\modems TestModems.javaYielded 5 errors of cannot resolve symbol
    Using: *****************************
    import com.modempack.Modem;
    import com.modempack.CableModem;
    import com.modempack.DslModem;and adding public in fron of the int[/code" variable....WORKS
    It is my understanding that
    import javax.swing.*;
    does NOT import everything with the swing library, so when thinking
    along those lines, this makes 100% sense....I just thought that with packages
    you could provide one, and everything else in the package is imported, ie: if you have a package with 500 classes in it, you wouldn't want 500 import lines....something seems like something
    must be wrong with the class files or something/classpath still or else this would work somehow???
    Well...going to go mess around somemore, just an update.
    Thank you again                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Report for all RAP advertisements with Package size.

    Hi,
    I have received a requirement to get the information about all the advertisements published in RAP along with package details like (Package Name/version/ and Package size).
    I have two different working reports, merging these two reports would suffice my requirements.
    Please help to merge below two reports.
    1.  
    SELECT DISTINCT p.PackageID, p.Name,p.Version, p.SourceVersion, 'Source Size (MB)' = n.SourceSize/1024
     FROM v_Package p
     LEFT JOIN
     v_PackageStatusRootSummarizer n
     ON
     p.PackageID = n.PackageID
    order by Name
    2.
    SELECT v_Advertisement.AdvertisementName,
    v_Advertisement.Comment, 
    v_Package.Name AS C062,
    ProgramName,
    v_Advertisement.SourceSite,
    CASE WHEN AssignedScheduleEnabled != 0 or
                                          (AdvertFlags & 0x720) != 0
    THEN '*'
    ELSE ''
    END AS C063,
    v_Collection.Name as C064, 
    CASE IncludeSubCollection
    WHEN 1 THEN '*'
    WHEN 0 THEN ''
    END AS C065,
    AdvertisementID
    FROM v_Advertisement 
    INNER JOIN v_Package ON v_Advertisement.PackageID = v_Package.PackageID
    INNER JOIN v_Collection ON v_Advertisement.CollectionID = v_Collection.CollectionID
    ORDER BY v_Advertisement.AdvertisementName
    The Lightning Khan

    SELECT
    p
    .PackageID,
    p.Name,p.Version,
    p.SourceVersion,
    'Source Size (MB)'
    = n.SourceSize/1024,
    v_Advertisement
    .AdvertisementName,
    v_Advertisement
    .Comment,
    p
    .Name
    AS C062,
    ProgramName
    v_Advertisement
    .SourceSite,
    CASE
    WHEN AssignedScheduleEnabled
    != 0
    or
    (AdvertFlags
    & 0x720)
    != 0
    THEN
    ELSE
    END
    AS C063, 
    v_Collection
    .Name
    as C064,
    CASE
    IncludeSubCollection
    WHEN
    1 THEN
    WHEN
    0 THEN
    END
    AS C065,
    AdvertisementID
    FROM v_Advertisement
    INNER
    JOIN v_Package p
    ON v_Advertisement.PackageID
    = p.PackageID
    INNER
    JOIN v_Collection
    ON v_Advertisement.CollectionID
    = v_Collection.CollectionID
    LEFT
    JOIN  v_PackageStatusRootSummarizer n 
    ON  p.PackageID
    = n.PackageID
    ORDER
    BY v_Advertisement.AdvertisementName
    John Marcum | Microsoft MVP - Enterprise Client Management
    My blog: System Center Admin | Twitter:
    @SCCM_Marcum | Linkedin:
    John Marcum

  • How to compare a Date data with Current Year and Period Member on FIX

    Hi experts,
    I have a Project dim that each member is a Project (P01, P02...)
    and Account dim that stores information of the each Project (Name, Start date, Finished Date...)
    Finished Date member is in Date data type
    So how can write a IF condition below in order to compare Project Finished Date with Current Year and Period members on FIX
    FIX (@Descendants(Projects), Descendants(All Year), Descendants("Year Total")...)
    IF (@CURRMBR(Period)->@CURRMBR(Year) < Project->FinishedDate)
    Do something...
    Else
    Do something
    Please help me on this. Sorry for my bad grammar. Please ask if there is anything unclear
    Many thanks,
    Huy Van.
    Edited by: Huy Van on Jan 29, 2013 1:14 AM
    Edited by: Huy Van on Jan 29, 2013 2:24 AM
    Edited by: Huy Van on Jan 29, 2013 2:25 AM
    Edited by: Huy Van on Jan 29, 2013 6:04 PM

    Here is what I have done. Post for whom may concern later
    VAR FM; /* Finished Month of Project*/
    VAR FY; /* Finished Year of Project */
    VAR CM; /* Capture Current Month on FIX statments */
    VAR CY; /* Capture Current Year on FIX statments*/
    FIX ( @RELATIVE( "Year", 0), @RELATIVE( "Period", 0), @IDescendants( "Base Projects")....)
    FY = @ROUND( "TGHT"->"NA Contract"->"FY06"->"NA Period" / 10000, 0);
    FM = @MOD( @ROUND( "TGHT"->"NA Contract"->"FY06"->"NA Period" / 100, 0), 100);
    /* For FY13 return 13... */
    CY = @JgetDoubleFromString( @CONCATENATE( "20", @SUBSTRING( @NAME( @CURRMBRRANGE( Year, Lev, 0, 0, 0)), 2)));
    /* Set CM value based on currrent Period On FIX statement */
    IF ( @ISMBR( "Jan"))
    CM = 1;
    ELSEIF ( @ISMBR( "Feb"))
    CM = 2;
    ELSEIF ( @ISMBR( "Dec"))
    CM = 12;
    ENDIF
    IF ( CY < FY OR ( CY == FY AND CM < FM))
    Do something...
    ELSE
    Do something...
    ENDIF
    ENDFIX
    Edited by: Huy Van on Feb 19, 2013 11:10 PM
    Edited by: Huy Van on Feb 20, 2013 7:46 PM

  • The backlight of keyboard doesn't work in win7, with a well setup bootcamp drivers

    The backlight of keyboard doesn't work in win7, with a well setup bootcamp drivers

    Forum and support for Boot Camp:
    http://www.apple.com/support/bootcamp

  • Calling with package "Unlimited world 1 month" got...

    Hello there,
    I called with package "Unlimited world 1 month" into the land-line in Germany got interrupted regularly. How can I solve this problem?
    Thank you in advance.
    Spring

    Hello there,
    I called with package "Unlimited world 1 month" into the land-line in Germany got interrupted regularly. How can I solve this problem?
    Thank you in advance.
    Spring

Maybe you are looking for

  • Updated to Mountain Lion and now I get a Green Flicker

    Help Please... I updated to Mountain Lion and ever since then when I export media from Final Cut X I am getting random green flashes in my video clips. I shoot with a DSLR (60D), full 1920x1080 HD, H.264 codec. I have never had this problem before. 

  • Problem while creating metadata files

    I created metadata files to add styles to Photoshop Elements 8 (in Windows 7) and included them in the C:\Program Data\Adobe\Photoshop Elements\8.0\Photo Creations\layer styles folder.  The first several worked great and successfully showed up in the

  • Different Class for Different Release Group

    Dear All, I want to use different release class for a new group i am creating for Purchase Order Release. But it is not allowing me to save the same as the explanation given the overall release should not be there in one of the group created, but i a

  • 10.2.0.4 database upgrade

    DB:10.2.0.4 OS:Linux I have a 2 node RAC 10.2.0.4 database and i am planning to upgrade it to 10.2.0.5 using dbua utility. For upgrading do i need to shuut down one instace and initiate the dbua from the node where one instance is running or it is no

  • Use of Style sheet

    Hello Everybody 1. Can anyone please let me know what advantage i am going to get by using in OBIP reports and how to use it. 2. How to use the style sheet in my report. 3. I tried to access the default style sheet of Oracle available in the tool. Bu