Grouping - beginner's question

I'm a complete beginner at SQL, and generally use it in the Discoverer admin application (so some functions aren't available)
What I need to do is return 4 values from a table. The first value is the case number. The second is (a varchar field) is the description of a particular task carried out and the third is the date it was carried out. The fourth is a task id that uniquely identifies that task in the database.
Each case has multiple tasks associated with it, and I only want to return the last one (the one with the latest date). I can find the date and case number by:
select case_id, max(actioned_date)
from tablename
group by case_id
This gives me the case number, and the date on which the final task was actioned.
however, I want to include the description and the task id, but still only group it by the case id, which I can't do in the above example, but if I include the other fields then the one result per case falls apart.
Any advice appreciated.
Thanks

You can do it either with subquery:
select *
from tablename
where (case_id,action_date) in (
select case_id, max(actioned_date)
from tablename
group by case_id)or eliminate subquery using first/last aggregate functions
select
min(task_id) keep (dense_rank first order by actioned_date desc),
min(description) keep (dense_rank first order by actioned_date desc),
case_id, max(actioned_date)
from tablename
group by case_idSurely, there are some other ways, but i would say, these two are more common.
Best regards
Maxim

Similar Messages

  • Beginner font questions

    These are some beginner font questions if someone has the time/patience.
    I've never paid much attention to fonts over the years, never installed
    any other than those that might have come with applications. Early on,
    15 years ago or so, I settled on Palatino and I've stayed with it for
    most docs (Word 5.1a and now Word vX) and often for other apps (Safari,
    Now).
    I just upgraded to Tiger (10.4.4) and I use Word vX.
    Questions:
    1. I gather from looking at Font Book that when I'm using Palatino in
    Tiger that OS X is getting it from my OS 9 System folder for Classic.
    It does not look like Palatino is in any other locations including MS
    Office vX. Does that make sense?
    2. I always thought that Palatino was a very basic, always available
    font. Not so?
    3. If I decide to stop using Classic, and I'm close to that time, can I
    transfer those fonts to OS X? If so, to which location is best.
    4. And are the same fonts used for printing and screen? In other words
    back in pre OS X days I thought some fonts came in screen versions and
    print versions but my memory is hazy on that. Not only that.
    Thank you for any education or links for info.
    Powerbook G4 Ti   Mac OS X (10.4.4)  

    1. I gather from looking at Font Book that when I'm
    using Palatino in
    Tiger that OS X is getting it from my OS 9 System
    folder for Classic.
    It does not look like Palatino is in any other
    locations including MS
    Office vX. Does that make sense?
    That's correct.
    2. I always thought that Palatino was a very basic,
    always available
    font. Not so?
    It seems to be out of favor.
    3. If I decide to stop using Classic, and I'm close
    to that time, can I
    transfer those fonts to OS X? If so, to which
    location is best.
    Yes, you can just put it in Users/username/Library/Fonts (or Library/Fonts for all users).

  • Beginner's Questions

    As a really new beginner for BEx, I would like to ask you guys some basic questions.
    1) I have a problem with designing a query to serve our requirement.
    Fiscal Year       Accounting Num.        Amount          AVG(Amount)         
    2006                10001                         100                250
    2006                10002                         200                250
    2006                10003                         300                250
    2006                10004                         400                250
                           Total(AVG)                  250
    2006                10005                         300                350
    2006                10006                         400                350
                           Total(AVG)                  350
    What I want is the forth column, which is equal to the average value of amount in the third column. For example, in group 1 (Accounting Number 10001 - 10004), the average of 100 - 400 is 250. In the forth column, I want to get 250.How can I do this?
    2) How can I load a hierarchy from a text file in BI 7.0. I just see the option to maintain the hierarchy in BI, but I can't find the way to load the hierarchy from a text file.

    Hi,
    1.Create a formula or CKF which is equal to Amount. name it  AVG(Amount).
      right click AVG(Amount) in the query definition.select properties.select calculate  single value as 'Average of all values<>0'.
    i thnk this shld work!
    Regards
    Dhanya.

  • OID First Time Full Reconciliation - group/role reconciliation question

    My client has some roles/groups created in OID. The initial set of users lies over there. I have to bring the initial load of users into OIM. The existing set of users is around 5000. But some users belong to different groups/roles. Now if I want to do a first time reconciliation to bring all these initial set of user profiles and accounts into OIM; where do I need to specify the groups/roles in OID resource object?
    I went through the OID connector guide. But in there, in the section "3.1 Performing First-Time Reconciliation", it doesn't mention anywhere to create any multivalued attribute/child form or anything. What are the steps that are needed to be taken? If I just reconcile the group/role lookup values, will it populate those values within the user process form? If so, which fields will co-relate with that?
    Thanks,
    - oidm.

    Thanks Raj. But I think I am a bit lost over here.
    So you mean to say I don't need to run the scheduled tasks which are related to populating the groups/roles lookups for first time full reconciliation? And also you mean to say that we only need these lookups at the time of provisioning user profiles to target system?
    I have to create identities within OIM from OID so I have to run the 'OID User Trusted Recon Task' and not 'OID User Target Recon Task'.
    Basically, my question is how will the roles/groups be depicted in the user account when I will do a trusted source reconciliation? If so, which fields in process form will hold those values? Do I need to run the lookup reconciliation tasks for the same or not?
    Thanks,
    - oidm.

  • Beginner SSL questions

    I am still very much a beginner and this is my first time trying to set SSL up. I am experiencing some issues and I am not really sure what to do. I hope this is the right forum to post this.
    When I go to https://xxxx.xxxxx.net/myContext my login index.jsp page displays however
    1.) In IE it's not showing the page as secured(no lock).
    2.) When I log in using valid credentials the url becomes http://xxxx.xxxxx.net:443/myContext/myServlet
    and the page I expect to display doesnt. It only displays this:
    3.) None of my stylesheets are being used.
    When I go to http://xxxx.xxxxx.net/myContext my login index.jsp page displays perfectly and I am able to log in and do see the expected page.
    Apparently I missed a step somewhere or just the obvious but how do I get my index.jsp to use SSL. Any help would really be appreciated. Thanks in advance
    Crystal
    SERVER.XML
    <Connector port="80"
    maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
    enableLookups="false" redirectPort="443" acceptCount="100"
    debug="0" connectionTimeout="20000"
    disableUploadTimeout="true" />
    <Connector port="443"
    maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
    enableLookups="true" disableUploadTimeout="true"
    acceptCount="100" debug="0" scheme="https" secure="true"
    clientAuth="false" sslProtocol="TLS"
    keystoreFile=".IRRS_keystore" keystorePass="thepassword"/>
    STDOUT.LOG
    May 4, 2007 11:20:38 AM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-80
    May 4, 2007 11:20:39 AM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-443
    May 4, 2007 11:20:39 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 1031 ms
    May 4, 2007 11:20:39 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    May 4, 2007 11:20:39 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.0
    May 4, 2007 11:20:39 AM org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    May 4, 2007 11:20:40 AM org.apache.catalina.core.ApplicationContext log
    May 4, 2007 11:20:40 AM org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-80
    May 4, 2007 11:20:40 AM org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-443
    May 4, 2007 11:20:40 AM org.apache.jk.common.ChannelSocket init
    INFO: JK2: ajp13 listening on /0.0.0.0:8009
    May 4, 2007 11:20:40 AM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/15  config=D:\Tomcat5\conf\jk2.properties
    May 4, 2007 11:20:40 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 1313 ms

    Are you intentionally leaving a connector for port 80 open? If you don't need anything to be non-ssl enabled then you should comment out the port 80 connector and just have a connector for port 443. You should then be able to access any of your stuff via https://whatever/whathaveyou...
    [edit]
    this is an obvious question but you didn't mention it so just in case - you did create a self signed server certificate and import that into the keystore right? (or use a commercial certificate and import that and the CA chain into your trust store)
    Message was edited by:
    cjmose

  • Strange Matrix group by date question

    I have the following data:
    name
    date
    value
    bob
    1/1/2015
    5
    jane
    1/1/2015
    7
    jim
    1/1/2015
    9
    bob
    1/2/2015
    2
    jane
    1/2/2015
    5
    jim
    1/2/2015
    5
    bob
    1/2/2015
    4
    I am using a matrix with a group by date to produce the following:
    1/1/2015
    1/2/2015
    bob
    5
    4
    jane
    7
    5
    jim
    9
    5
    As you can see it only selected one value for bob on 1/2.
    Is is possible to show all of the values while still grouping by date?
    I would  prefer something like 
    1/1/2015
    1/2/2015
    1/2/2015
    bob
    5
    2
    4
    jane
    7
    5
    jim
    9
    5

    Hi ,
    I have created sample report based on your question. Steps are listed below:-
    Sample query is modified to get one more Column rowid as shown in below SQL query:-
    select *,row_number() over(partition by name,date order by date )rowid from
    SELECT 'bob' name, '1/1/2015' date ,5 value
    UNION
    SELECT 'jane' , '1/1/2015' , 7
    UNION
    SELECT 'jim' , '1/1/2015' , 9
    UNION
    SELECT 'bob' , '1/2/2015' , 2
    UNION
    SELECT 'jane' , '1/2/2015' , 5
    UNION
    SELECT 'jim' , '1/2/2015' , 5
    UNION
    SELECT 'bob' , '1/2/2015' , 4
    )T
    Now Create the matrix report rows --> Name
    Columns---> Date
    Detail---> Value
    After creation of matrix, just go to the Group Properties of Column group and add as shown below
    After this setting , run the report, it will give result as shown below:-
    RDL Code for reference:-
    <?xml version="1.0" encoding="utf-8"?>
    <Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
    <Body>
    <ReportItems>
    <Tablix Name="matrix1">
    <TablixCorner>
    <TablixCornerRows>
    <TablixCornerRow>
    <TablixCornerCell>
    <CellContents>
    <Textbox Name="textbox3">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value />
    <Style>
    <FontFamily>Tahoma</FontFamily>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox3</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixCornerCell>
    </TablixCornerRow>
    </TablixCornerRows>
    </TablixCorner>
    <TablixBody>
    <TablixColumns>
    <TablixColumn>
    <Width>1in</Width>
    </TablixColumn>
    </TablixColumns>
    <TablixRows>
    <TablixRow>
    <Height>0.21in</Height>
    <TablixCells>
    <TablixCell>
    <CellContents>
    <Textbox Name="textbox2">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Sum(Fields!value.Value)</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox2</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    <DataElementOutput>Output</DataElementOutput>
    </TablixCell>
    </TablixCells>
    </TablixRow>
    </TablixRows>
    </TablixBody>
    <TablixColumnHierarchy>
    <TablixMembers>
    <TablixMember>
    <Group Name="matrix1_date">
    <GroupExpressions>
    <GroupExpression>=Fields!date.Value</GroupExpression>
    <GroupExpression>=Fields!rowid.Value</GroupExpression>
    </GroupExpressions>
    </Group>
    <SortExpressions>
    <SortExpression>
    <Value>=Fields!date.Value</Value>
    </SortExpression>
    </SortExpressions>
    <TablixHeader>
    <Size>0.21in</Size>
    <CellContents>
    <Textbox Name="date">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!date.Value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>date</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>#6e9eca</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    <DataElementOutput>Output</DataElementOutput>
    <KeepTogether>true</KeepTogether>
    </TablixMember>
    </TablixMembers>
    </TablixColumnHierarchy>
    <TablixRowHierarchy>
    <TablixMembers>
    <TablixMember>
    <Group Name="matrix1_name">
    <GroupExpressions>
    <GroupExpression>=Fields!name.Value</GroupExpression>
    </GroupExpressions>
    </Group>
    <SortExpressions>
    <SortExpression>
    <Value>=Fields!name.Value</Value>
    </SortExpression>
    </SortExpressions>
    <TablixHeader>
    <Size>1in</Size>
    <CellContents>
    <Textbox Name="name">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Fields!name.Value</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontWeight>Bold</FontWeight>
    <Color>White</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>name</rd:DefaultName>
    <Style>
    <Border>
    <Color>LightGrey</Color>
    <Style>Solid</Style>
    </Border>
    <BackgroundColor>#6e9eca</BackgroundColor>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </CellContents>
    </TablixHeader>
    <DataElementOutput>Output</DataElementOutput>
    <KeepTogether>true</KeepTogether>
    </TablixMember>
    </TablixMembers>
    </TablixRowHierarchy>
    <RepeatColumnHeaders>true</RepeatColumnHeaders>
    <RepeatRowHeaders>true</RepeatRowHeaders>
    <DataSetName>DataSet1</DataSetName>
    <Top>0.37in</Top>
    <Height>0.42in</Height>
    <Width>2in</Width>
    <Style />
    </Tablix>
    <Textbox Name="textbox1">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>Strange Matrix Group by Date</Value>
    <Style>
    <FontFamily>Tahoma</FontFamily>
    <FontSize>14pt</FontSize>
    <FontWeight>Bold</FontWeight>
    <Color>SteelBlue</Color>
    </Style>
    </TextRun>
    </TextRuns>
    <Style>
    <TextAlign>Center</TextAlign>
    </Style>
    </Paragraph>
    </Paragraphs>
    <rd:DefaultName>textbox1</rd:DefaultName>
    <Height>0.37in</Height>
    <Width>5in</Width>
    <ZIndex>1</ZIndex>
    <Style>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </ReportItems>
    <Height>1.04in</Height>
    <Style />
    </Body>
    <Width>5in</Width>
    <Page>
    <LeftMargin>1in</LeftMargin>
    <RightMargin>1in</RightMargin>
    <TopMargin>1in</TopMargin>
    <BottomMargin>1in</BottomMargin>
    <Style />
    </Page>
    <AutoRefresh>0</AutoRefresh>
    <DataSources>
    <DataSource Name="DataSource1">
    <DataSourceReference>DataSource1</DataSourceReference>
    <rd:SecurityType>None</rd:SecurityType>
    <rd:DataSourceID>b2ebe046-5f1b-45c9-82e7-5baa7ed2460a</rd:DataSourceID>
    </DataSource>
    </DataSources>
    <DataSets>
    <DataSet Name="DataSet1">
    <Query>
    <DataSourceName>DataSource1</DataSourceName>
    <CommandText> select *,row_number() over(partition by name,date order by date )rowid from
    SELECT 'bob' name, '1/1/2015' date ,5 value
    UNION
    SELECT 'jane' , '1/1/2015' , 7
    UNION
    SELECT 'jim' , '1/1/2015' , 9
    UNION
    SELECT 'bob' , '1/2/2015' , 2
    UNION
    SELECT 'jane' , '1/2/2015' , 5
    UNION
    SELECT 'jim' , '1/2/2015' , 5
    UNION
    SELECT 'bob' , '1/2/2015' , 4
    )T</CommandText>
    <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
    </Query>
    <Fields>
    <Field Name="name">
    <DataField>name</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="date">
    <DataField>date</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    <Field Name="value">
    <DataField>value</DataField>
    <rd:TypeName>System.Int32</rd:TypeName>
    </Field>
    <Field Name="rowid">
    <DataField>rowid</DataField>
    <rd:TypeName>System.Int64</rd:TypeName>
    </Field>
    </Fields>
    </DataSet>
    </DataSets>
    <Language>en-US</Language>
    <ConsumeContainerWhitespace>true</ConsumeContainerWhitespace>
    <rd:ReportUnitType>Inch</rd:ReportUnitType>
    <rd:ReportID>dfd8f7e8-fcc1-4636-991e-d86824825c30</rd:ReportID>
    </Report>
    Thanks
    Prasad
    Mark this as Answer if it helps you to proceed on further.

  • ASR - IPSEC, GRE, channel group, and MTU Questions

    I have an ASR1004 and am trying to load-balance a 1.5G data rate over two 1-Gig ports using IPSEC ports, but I have a few questions.
    1. Can GRE support a 9K mtu
    2. Can you run IPSEC on a channel-group
    3. Can the ASR load-balance per- S&D on a channel-group?
    I currently have two separate tunnels, one on each outbound gig link with OSPF running. However, I can't get a 7000 mtu w/ the DF bit set through to the distant end. I am guessing this is because of the GRE interface.
    So is it possible to run IPSEC on a channel-group and have this load balance per S&D? I need to use the BW of both ports.
    Thanks for the help!

    The ASR1004 router we can only send packets with a maximum MTU size of 1438 Bytes over the encrypted tunnel.

  • Beginner: some questions

    Hello all,
    I am just a beginner for EJB, and writing a simple example of EJB. Some questions confuse me.
    1.     about server
    I just use JDK1.3.1 and JSDKEE1.3, is it all right? Do I need another things, for instance, weblogic ( what is this?)?
    2.     about deployment
    I wrote some code( CMP) include: home interface, remote interface, implement class, and primary key. Now , deploy it? Use ��C:\j2sdkee1.3\bin\deploytool�� command, is it?
    I thought every EJB need a XML deployment descriptor, my question is: I write this by myself or use deploytool?
    3.     about datebase
    I notice some example use Cloudscape, is this database? Whether can I use another database, for instance, MS Access? If I can, how to access it in CMP, and what is the ��Database JNDI Name��( if I use MS Access) when I deploy using deploytool?
    4.     about direction
    if I finish coding, then compile, and deploy, now, is it OK? I mean, I should move some file to special direction? (I remember the .class file is placed in special direction when I use servlets. )(suppose: I work in C:\mybean. Every file in it)
    5.     I use JDK1.3.1 and JSDKEE1.3 to write a simple example, do I need anything else in order to achieve EJB?
    Thanks

    1. No you do not need anything other than J2SE 1.3.1 and J2EE SDK 1.3 J2EE SDK 1.3 includes a reference implementation that you can use to do pretty much everything that is J2EE platform standard.
    Products such as WebLogic, WebSphere are comercial implementations of J2EE platform specifications. And you would use them for commercial/production quality applications.
    See http://java.sun.com/j2ee/faq.html Especially the questions about using reference implementation.
    2. You as a developer write the deployment descriptor and the deployment engineer customizes it if required at deployment time.
    3. You can use JDBC-ODB driver to work with Microsoft Access databse.
    See http://java.sun.com/j2se/1.3/docs/guide/jdbc/getstart/bridge.doc.html#996747
    4. No. The files go to the right place at deploy time.
    5. No. If you have J2SE 1.3.1 and J2EE SDK 1.3, you arealready on your way to achieving EJBs.

  • Group aset depreciation question

    Hello everyone
    I have a question in the depreciation for a group asset.
    That is my question:
    I have create a group asset with some component assets.
    After that,  i have found  all the calculation of depreciation are made in the group asset(what is normal for me), but with the useful life of the group asset for all the components(10 years for exemple).
    In the component cards, i have put some different useful lives(5 and 10 years).
    So is it normal  that FI AA make this kind of depreciation with the useful life of the group asset?
    Thanks a lot.
    Youqiao

    Youquiao,
    The depreciation group works when you have a similars assets. If you have some different at this group, the SAP look for a item not from a group, then "normally" when you run the depreciation (AFAB) the SAP return with a error at this item, if the SAP not return, its look from a item and post a depreciatin individually.
    Regards
    Bruno Araujo

  • Group Calls (Hosting Questions)

    Hey folks. I had a few questions regarding Skype's Group Call feature, if someone wouldn't mind answering them. Is the Group Call hosted on my computer/network/server or is it hosted on the Skype servers? The other question is how many people can be hosted within a single Group Call? Thanks!

    The audio part of a group call is hosted by the person who initiated the group call. The video part is hosted by a Skype server.
    In the case of an audio-only group call the max number of participants is 25. For video group calls the number is 10.

  • Beginner's question:  Using Time Machine with a WD External Drive

    Hello folks,
    Could someone help me with some basic questions?
    I have a MacBook with Mac OSX 10.5.5. It has Time Machine but I've never used it before. I've just obtained a Western Digital External Hard Drive which is Mac compatible but, I'm told, may not be formatted for Mac.
    1. If that's the case, how do I format it for Mac so that I can use it with my MacBook? Or can I just plug-and-play?
    2. Once ready to use, I'd like to use the external drive for two purposes: (a) to create back-up images of my entire computer using Time Machine, and (b) as a second drive where I can just drag-and-drop selected files when needed (e.g. so that I can put photos in a photo folder on my external instead of on my MacBook hard drive). Will my MacBook let me do this, or will using Time Machine effectively reserve the entire external hard drive for Time Machine and not allow my to drag-and-drop files?
    Thanks! And Happy New Year!

    Question 1:
    1. Launch Disk Utility (in your Applications/Utility folder.
    2. Click the "erase" tab
    3. Select your entire WD disk on the sidebar (the uppermost icon).
    4. Format: "Mac OS Extended (Journaled)"
    5. Name the Disk
    6. Click on "erase"
    Question 2:
    What is the size of your drive? If it is large enough you can partition it but Time Machine backup will "grow". So if it's important to you to save all backups you'll want to give it the whole disk. If not, you can partition the disk at the same time you format it.
    Follow the steps here. It will accomplish both Q1 & Q2.
    -mj
    Message was edited by: macjack

  • Beginner's question about naming helper classes

    Hello,
    I am building a pretty basic multi-tier application. I want to reduce a much as possible the dependencies between the web tier and the ejb tier. Ideally I would like for the web tier to construct a request object (of class MyRequest) and send it to the ejb tier that would then return a results object (of class MyResults).
    These would therefore be the only two classes that BOTH the ejb and web tier would be aware of. All other classes would either belong to the web tier OR the ejb tier.
    My question relates to the naming of these two classes. I would like to have different package names for the two classes as follows:
    -web-tier request object will be of type com.mycompany.web.MyRequest
    -ejb-tier request object will be of type com.mycompany.ejb.MyRequest
    -web-tier results object will be of type com.mycompany.web.MyResults
    -ejb-tier results object will be of type com.mycompany.ejb.MyResults
    I am getting errors with that. Is there a way around it?
    Thanks in advance,
    Julien Martin.

    Hello PinkyDead and thanks for your answer,
    I got the errors on another project and can't remember which. Class Cast Exceptions perhaps. I had to change the package names so that they matched in the web tier and the ejb tier. (which is what I don't like).
    As far as the new project is concerned I am trying to design the application as well as possible and your comments are therefore useful. Better getting the design right before starting coding.
    Can you or anyone tell me what architecture would be better that the one I proposed?? Don't you agree that at least some classes have to be shared by the web tier and the ejb tier? How can it be otherwise?
    Thanks in advance,
    Julien.

  • Designer beginner's question: How to populate form with XML web service output?

    sorry, here is yet another Adobe Designer beginners question: <br /><br />My form uses a webservice data connection which returns <br />an xml-string like this: <br /><br /><?xml version="1.0" encoding="utf-16"?> <br /><CurrentWeather> <br />  <Location>Sion, Switzerland (LSGS) 46-13N 007-20E 481M</Location> <br />  <Time>Apr 26, 2007 - 09:50 AM EDT / 2007.04.26 1350 UTC</Time> <br />  <Wind> from the WSW (240 degrees) at 15 MPH (13 KT):0</Wind> <br />  <Visibility> greater than 7 mile(s):0</Visibility> <br />  <SkyConditions> partly cloudy</SkyConditions> <br />  <Temperature> 80 F (27 C)</Temperature> <br />  <DewPoint> 46 F (8 C) </DewPoint> <br />  <RelativeHumidity> 30%</RelativeHumidity> <br />  <Pressure> 29.88 in. Hg (1012 hPa)</Pressure> <br />  <Status>Success</Status> <br /></CurrentWeather> <br /><br />What is the simplest and recommended way to extract the <br />element fields to my form? <br /><br />Thank you very much an kind regards, <br />Hans Grund

    The question is still unanswered!
    Let me give some details and break up the problem
    in more specific questions:
    - In Designer 8.1 I click new data binding --> wsdl -->
    http://www.webservicex.net/globalweather.asmx?wsdl
    A message box comes up and says "cannot load wsdl file"
    ==> 1. Question:
    Why maybe refuses Designer to load the http-wsdl,
    although this option is explicitly allowed?
    - When I save the wsdl to a file, Designer loads it
    without any problems. The web service uses two input parameters
    (CountryName and CityName) and returns an xml-string GetWeatherResult)
    like the one in my first posting. I drag these fields from the binding view to my form, and it runs ok!
    - THE PROBLEM IS, THAT I NEET TO EXTRACT THE ELEMENT FIELDS
    FROM THE RESULT XML-STRING!
    ==> 2. Question:
    How to extract xml element fields from wsdl output into a form?
    - I tried with eclipse and XmlSpy to build a modified wsdl file
    with structured output definition, so that the specific element fields
    show up in the data binding view and are usable to my form,
    and the modified wsdl maps consistently to the web service result string.
    So far without success: In the PDF -preview or Reader-
    when the wsdl-binding is executed and the web service output
    should show up in the result fields, just nothing happens.
    ==> 3. Question:
    Can this strategy to provide a "modified wsdl" possibly succeed,
    and how?
    ==> 4. Question:
    Is is possible -and how?- to check whether an xml string
    is valid as web service output against the wsdl-definition?
    ==> 5. Question:
    How to debug a web service connection with Designer?
    - Finally I tried to find a way to load the result xml-string
    into a local var in the script editor and parse it, much like:
    var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
    xmlDoc.load(DataSet.MyForm.GetWeatherResult.rawValue);
    ==> 6. Question:
    Is it possible -and how?- to use a framework like dotnet?
    How to utilize SAX or DOM in Designer?
    Many thanks and appreciations for your help!!

  • Submitting a PDF form via HTTP Post: Beginner's Questions

    Hi,
    I am completely new to PDF forms, so I have been finding the documentation and options overwhelming.
    I am hoping to get pointed to the documentation/tutorials/examples I really need.
    I would like to build a "proof of concept" for my boss.  I would like to include a screen in our Java ( JSP & Spring ) webapp where either a PDF form is embedded or is accessed via a link.
    I have
    Adobe Acrobat Distiller X standard license
    Adobe Acrobat X Standard
    Microsoft Office 2010
    I made a small, 3 field Microsoft Word form.  I then converted it via DIstiller into a PDF form.
    I then found this document about how to submit a PDF form to a server side component:
    http://acrobatusers.com/tutorials/form-submit-e-mail-demystified
    My big problem with this document it doesn't have an example nor an example showing what is going on in a full HTML page.   As I result I have some questions:
    Can I see such an example somewhere?
    Does the call to the javascript function doc.SubmitForm(urlToMyServerSideComponent) go in a script tag on the HTML page like other javascripts?
    Can I execute that submit function from an HTML button or do I need to put a "submit" button on the PDF form?
    Do I need Adobe LiveCycle in order to create a PDF form with a "submit" button?  Free versions?
    Can I send via HTTP POST ?
    Do I need Adobe LiveCycle to crate a PDF form with a digital signature?
    Is there a document/tutorial that fits where I am starting off from? ( Please no books, I am tyring to show my boss that this is something that can be done, in a reasonable amount of time, not time to get and go through a book ).
    Thanks in advance for any tips that get me pointed in the right direction
    Steve

    To answer some of your specific questions:
    2, 3. The submit form button needs to be on the PDF. You can either configure a Submit Form action or use the submitForm JavaScript method.
    4, 6: No to both questions. You can create the form in Acrobat. Such forms are knows as Acroforms, as opposed to XFA forms that are created with LiveCycle Designer. Acroforms have wider support.
    5: Yes, that's the method that's used when submitting to a web server. You have your choice of formats. The "HTML Form" option causes the form data to be submitted in the same format as an HTML form, so the same type of server-side code can be used to process the data. As Dave's tutorial shows, the server should return an FDF as the response, however, as opposed to HTML content.
    It's a mistake to try to embed the PDF in a web page. So much depends on the user's browser, PDF viewer, and how both are configured. PDF forms can be submitted directly from Adobe Reader/Acrobat, so it's not necessary for them to be viewed in a browser. Note that Adobe Reader for iOS/Android don't yet support submitting to a web server (apart from FormsCentral), but that's is supposedly being worked on.
    Since you mentioned digital signatures, be aware that for Reader users to be able to sign, the document has to be Reader-enabled, either with Acrobat Pro or LiveCycle Reader Extensions (which is not the same as LiveCycle Designer). Digital signatures in PDF forms are not yet supported on mobile devices. Also, you will want to submit the entire PDF, as opposed to just the form data, when submitting a digitally signed form.

  • Beginner's question: how to call JSP

    Hi,
    Is the following a right way to call a JSP?
    GET /app/im/iClient.jsp?user=[email protected]&pass=welcome HTTP/1.1
    Host: st5.abc.com
    I am trying to manually send a HTTP request. I am sure the directory is right, but no response. Should I use "POST" instead of "GET"?
    Thank you!

    I dont believe that... If you're trying to get a response InputStream, or the response formatted as some object, for a request to an HTTP server, and you are just now writing Socket connection stuff, then you can just replace that with URLConnection and let it do the work given a URL.
    Otherwise, you should already have a class which uses Sockets internally to get what you want, and you shouldn't be asking us this question because it should take a URL and make the connection and give you what you want...
    I don't see any other possible "stage" at which you could be at that you need to a) use Sockets over URLConnections, b) need to know the details of HTTP, and c) can't change one or the other.

Maybe you are looking for

  • Embedding font problems (when exporting from InDesign to PDF)

    A message alert is shown, when opening a pdf - after exporting from InDesign: Cannont exctract the embedded Font Frutiger. We have uninstalled the frutiger font and installed an open type. But the font is not embedded anyhow..? Can anyone help? Thank

  • Material Master Field Change

    Hi Experts I have a Field in MRP2 View MARC -> Field LGPRO (Issue Storage Location). I am using MRP2 view, only for this field. 1) Is it possible I can move this Field to Plant/Storage location view ?? 2) How to restrict this setting only for particu

  • Unresricted use stock in MIRO

    Hi experts, I have query in MIRO, I want to know how i Can get exact value of unresricted use stock (LMENGE01). actually my requirement is LmMENGE01(unrestricted use stok) = LOSMENGE (Inspection lot quantity) - (LMENGE02 + LMENGE03 + LMENGE04 + LMENG

  • JTable - dynamic update exception

    Hi, My application displays a JTable based on an extended TableModel. The TableModel observes an external source for changes, and updates the internal table data representation accordingly after which it calls SwingUtilities.invokeLater( new Runnable

  • Error in url link

    Hi all, i have created a program which shows a link. it was working fine but now it is not working . it doesnot show the link, plz suggest me. DATA: html_control TYPE REF TO cl_gui_html_viewer,       my_container TYPE REF TO cl_gui_custom_container,