Need help with 3d mapping, part of design is showing up transparent

Here is the image I am working with http://25.media.tumblr.com/92fba886d84a9438c9520726b24a8fb3/tumblr_mm5oljeLJ31r848lxo1_128 0.png
The words coca cola are in red in my design and whenever I add it to 3d mapping it red it no longer red but transparent. The stroke is grey on the bottle.
Can anyone help me? What settings should  I look for?

That might of course happen. You could try and rasterize the scribbled object, then apply the raster image as a map.

Similar Messages

  • I need help with my mapping - CL_MAPPING_XMS_PLSRV3-ENTER_PLSRV

    hi, guys, i need help with my mapping, i dont know this error (i not speak english)
    <Trace level="1" type="B">CL_MAPPING_XMS_PLSRV3-ENTER_PLSRV</Trace>
    <Trace level="2" type="T">......attachment XI_Context not found </Trace>
    <Trace level="3" type="T">Mapping already defined in interface determination </Trace>
    <Trace level="3" type="T">Object ID of Interface Mapping 4B903E2DDC853C1493E1DED5C5ED70A3 </Trace>
    <Trace level="3" type="T">Version ID of Interface Mapping 88D96A70BAAE11DFAE5EE925C0A800C2 </Trace>
    <Trace level="1" type="T">Mapping-Object-Id:4B903E2DDC853C1493E1DED5C5ED70A3 </Trace>
    <Trace level="1" type="T">Mapping-SWCV:88D96A70BAAE11DFAE5EE925C0A800C2 </Trace>
    <Trace level="1" type="T">Mapping-Step:1 </Trace>
    <Trace level="1" type="T">Mapping-Type:JAVA_JDK </Trace>
    <Trace level="1" type="T">Mapping-Program:com/sap/xi/tf/_mm_sgipi_fi001_vta_clientes_ </Trace>
    <Trace level="3" type="T">MTOM Attachments Are Written to the Payload </Trace>
    <Trace level="3" type="T">Dynamic Configuration Is Empty </Trace>
    <Trace level="3" type="T">Executing multi-mapping </Trace>
    <Trace level="1" type="E">CL_XMS_PLSRV_MAPPING~ENTER_PLSRV</Trace>
    help me please

    you can use the sharedobject to record a user/computer has taken your quiz, the session data and record their results.  at the start of your quiz, check for the sharedobject and, if it exists, check the other data and take appropriate action.

  • Need help with instruments mapping

    I have Korg PA80 and i hooked up midi out from it to midi in to Logic8, I have some nice realtime accompaniment tunes i can play on that keyboard, what i want to do is to play on my PA80 accompaniment tracks but replace all sounds with my custom sounds from my Logic plug ins, right now when I hit play all i hear is some garbage playing because no instruments properly mapped on Logic, I even created all 16 instrument tracks and set them all on all 16 channels, drums on 10 and so on, but when i start play on PA80 in Logic I still hear like bass trying to play all parts and not bass part only, same for drums when i press Am or Dm drums will play properly with some another drums sounds that trying to play all other instruments parts, need to separate them so the bass will play only bass part, drums will play drum part and so on, need help on how can i do that, lets say for drums i will choose logic drums sounds, for base Logic bases and so on, so Logic will become something like sound module for my PA80 instead of internal sounds I would like to use my virtual instruments sounds, thanks a lot

    Thanks for your reply Dave.
    I have no answer to your question but I found a way to create my SQL code with OWB mapping operators. Unfortunately it is very very slow compared to the execution of the SQL code and therefore not useful at all. I connected the following steps all in one mapping:
    1. Table operator(T006_SITE) -> Filter(T006A01PK_SITEID where T006A11FK_COUNTRYID IS NULL)
    2. Table operator(T002_COUNTRY) -> AGG (MAX T002A01PK_COUNTRYID)
    3. JOIN the output from 1. and 2.(T006A01PK_SITEID and T002A01PK_COUNTRYID))
    4. UPDATE T006_SITE with the output from 3. (T006A01PK_SITEID as matching column and T006A11FK_COUNTRYID as column to be updated)
    The execution mode of the mapping should be set-based fail over to row-based, but it used row-based mode even without getting an error. Are UPDATE mappings only executable in row-based mode or is there a way to change that?
    Does anyone have an idea how I can speed up that mapping or integrate my SQL code in the OWB?
    Thanks in advance,
    Dirk

  • Need help with gradient map

    Hello All,
    Please can someone please advice me how to get the following gradient, I have tried but with no luck I am not good with gradient map!

    Hello!
    What part do you have trouble with? the recreation of the gradient, or how it affects the image?
    In the gradient map editor, you can double-click on the bottom markers (called gradients stops) to change their color, and drag them around to re-create what you see... Click between two markers to add one, drag a gradient stop down to remove it.
    In fact, you do not need the fourth gradient stop, the white one on the right side.
    The top markers control the transparency (in regular gradients, gradient maps are unaffected)
    With such a gradient map, the dark areas of the image will be white, neutrals will be black and light areas will be white.

  • Please I need help with mokia maps!

    Hello! I have bought my phone Nokia N76 and I found nokia maps v 1.2 in it, I tried to install nokia maps v 2 but it says "update error"!
    when I tried to remove nokia maps 1.2 from the menu, it says unable to delete I tried this from the menu as it is not listed in the application manger list ! what shalI do?! . I don't wan't to update the software (it's the lastest). please if anybody knows help me please?
    Message Edited by Twilight28 on 23-Nov-2009 06:53 PM
    Message Edited by Twilight28 on 23-Nov-2009 06:54 PM

    Reading above posts I seem to remember that for early versions of Nokia Maps the map data is stored in E:\Private\20001f63\diskcache\ NOT E:\CITIES as for later versions, so try deleting these + .qf file. You would need to enable "show hidden & system" files on your PC to see these however.
    Provided that you carry out *#7370# or three finger reset (erases ALL data) after deleting these folder/files, you should really be able to install Nokia_Maps_2.0_4503_3.1.sis from here: http://nds1.nokia.com/files/support/global/phones/software/Nokia_Maps_2.0_4503_3.1.sis
    You would need to run Nokia Maps application to create folder structure on memory card required to download mapping.
    Happy to have helped forum with a Support Ratio = 42.5

  • Need help with a mapping

    Hi,
    I have problems to create an update on the NULL values in a table with the mapping operators of the OWB mapping editor. The SQL syntax is the following:
    UPDATE T006_SITE
    SET T006A11FK_COUNTRYID = (select MAX(T002A01PK_COUNTRYID) from T002_COUNTRY)
    WHERE T006A11FK_COUNTRYID IS NULL;
    Any suggestions which mapping operators I should use? Or is there even a way that I can use my SQL code?
    Thanks in advance,
    Dirk

    Thanks for your reply Dave.
    I have no answer to your question but I found a way to create my SQL code with OWB mapping operators. Unfortunately it is very very slow compared to the execution of the SQL code and therefore not useful at all. I connected the following steps all in one mapping:
    1. Table operator(T006_SITE) -> Filter(T006A01PK_SITEID where T006A11FK_COUNTRYID IS NULL)
    2. Table operator(T002_COUNTRY) -> AGG (MAX T002A01PK_COUNTRYID)
    3. JOIN the output from 1. and 2.(T006A01PK_SITEID and T002A01PK_COUNTRYID))
    4. UPDATE T006_SITE with the output from 3. (T006A01PK_SITEID as matching column and T006A11FK_COUNTRYID as column to be updated)
    The execution mode of the mapping should be set-based fail over to row-based, but it used row-based mode even without getting an error. Are UPDATE mappings only executable in row-based mode or is there a way to change that?
    Does anyone have an idea how I can speed up that mapping or integrate my SQL code in the OWB?
    Thanks in advance,
    Dirk

  • Need Help with XSLT Mapping....

    My scenario is synchronous scenario. SAP(Proxy) to XI to WebServer(SOAP)
    The response is coming back in asingle ANY field and so I guess I need XSLT Mapping to map it to the response message going  backto SAP.
    The response sent by webserver is of the structure:
    <?xml version="1.0" encoding="UTF-8"?>
    <GetStudentsExResponse xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://tempuri.org/LMSWebSvc/LMS_Interface">
       <GetStudentsExResult>
          <Courses xmlns="">
             <Warnings/>
             <Course CourseName="Requal RWT with Instructional Blocks TEST" CourseId="1325">
                <Student LastName="LMSTest" FirstName="A" SSN="112345678" LoginID="lms123456a" CompanyName="LMS Test" CourseStatus="P" CourseStatusDate="03/14/2007 09:24:36" CourseScore="90">
                   <Lesson LessonCode="1915" LessonName="RWT Part 1"/>
                   <Lesson LessonCode="1916" LessonName="RWT Part 2"/>
                   <Lesson LessonCode="1917" LessonName="RWT Requal Exam" LessonStatus="p" LessonStatusDate="03/14/2007 09:24:36" LessonScore="90" ProctorID="1" ProctorName="Account Default">
                      <ExamInteractions QuesNum="17758" StudentResp="D" CorrectResp="D" Judged="c"/>
                      <ExamInteractions QuesNum="17769" StudentResp="B" CorrectResp="C" Judged="w"/>
                      <ExamInteractions QuesNum="8465" StudentResp="A" CorrectResp="A" Judged="c"/>
                      <ExamInteractions QuesNum="8471" StudentResp="A" CorrectResp="A" Judged="c"/>
                      <ExamInteractions QuesNum="8496" StudentResp="C" CorrectResp="C" Judged="c"/>
                      </Lesson>
                </Student>          
             </Course>
          </Courses>
       </GetStudentsExResult>
    </GetStudentsExResponse>
    The Structure that I need to map this to is:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:Course_Response_MT xmlns:ns0="urn:sce-com:xi:fi:goyala">
       <GetStudentsExResponse>
          <GetStudentsExResult>
             <Courses>
                <Course>
                   <CourseName/>
                   <CourseID/>
                   <Student>
                      <LastName/>
                      <FirstName/>
                      <SSN/>
                      <LoginID/>
                      <CourseStatus/>
                      <CourseStatusDate/>
                      <CourseScore/>
                      <Lesson>
                         <LessonCode/>
                         <LessonName/>
                         <LessonStatus/>
                         <LessonStatusDate/>
                         <ExamInteractions>
                            <QuesNum/>
                            <StudentResp/>
                            <CorrectResp/>
                            <Judged/>
                         </ExamInteractions>
                      </Lesson>
                   </Student>
                </Course>
             </Courses>
          </GetStudentsExResult>
       </GetStudentsExResponse>
    </ns0:Course_Response_MT>
    and  the xslt mapping that I have written for this is:
    <?xml version='1.0' encoding='utf-8' ?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:a="urn:sce-com:xi:fi:goyala" xmlns:DateUtils="com.sce.hcm.xi.util.DateUtils">
         <xsl:template match="/">
              <a:Course_Response_MT>
                   <GetStudentsExResponse>
                        <GetStudentsExResult>
                             <Courses>
                                  <CourseName>
                                       <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course[@CourseName]"/>
                                       <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course[@CourseID]"/>
                                       <Student>
                                            <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student[@LastName]"/>
                                            <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student[@FirstName]"/>
                                            <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student[@SSN]"/>
                                            <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student[@LoginID]"/>
                                            <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student[@CourseStatus]"/>
                                            <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student[@CourseStatusDate]"/>
                                            <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student[@CourseScore]"/>
                                            <Lesson>
                                                 <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/Lesson[@LessonCode]"/>
                                                 <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/Lesson[@LessonName]"/>
                                                 <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/Lesson[@LessonStatus]"/>
                                                 <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/Lesson[@LessonStatusDate]"/>
                                                 <ExamInteractions>
                                                             <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/Lesson/ExamInteractions[@QuesNum]"/>
                                                             <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/Lesson/ExamInteractions[@StudentResp]"/>
                                                             <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/Lesson/ExamInteractions[@CorrectResp]"/>
                                                                   <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/Lesson/ExamInteractions[@Judged]"/>
                                                 </ExamInteractions>
                                            </Lesson>
                                       </Student>                                   
                                  </CourseName>
                             </Courses>
                        </GetStudentsExResult>
                   </GetStudentsExResponse>                                        
              </a:Course_Response_MT>
         </xsl:template>
    </xsl:stylesheet>
    But This mapping is not working...  I am getting errors...
    Pls advice, this is urgent..
    Regards,
    XIer
    Edited by: XIer on Apr 25, 2008 12:23 PM
    Edited by: XIer on Apr 25, 2008 12:37 PM
    Edited by: XIer on Apr 25, 2008 12:37 PM

    Hi All,
              I have now modified my XSLT Mapping as :
    <?xml version='1.0' encoding='utf-8' ?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:a="urn:sce-com:xi:fi:goyala" xmlns:DateUtils="com.sce.hcm.xi.util.DateUtils">
         <xsl:template match="/">
              <a:Course_Response_MT>
                   <GetStudentsExResponse>
                   <xsl:value-of select="a:GetStudentsExResponse"/>
                        <GetStudentsExResult>
                        <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult"/>
                             <Courses>
                             <xsl:for-each select="a:GetStudentsExResponse/GetStudentsExResult/Courses">
                                  <Course>
                                   <CourseName>
                                       <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/@CourseName"/>
                                       </CourseName>
                                       <CourseID>
                                       <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/@CourseID"/>
                                       </CourseID>
                                       <xsl:for-each select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student">
                                       <Student>
                                       <LastName>
                                            <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/@LastName"/></LastName>
                                       <FirstName>     <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/@FirstName"/></FirstName>
                                            <SSN><xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/@SSN"/></SSN>
                                            <LoginID><xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/@LoginID"/></LoginID>
                                            <CourseStatus><xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/@CourseStatus"/></CourseStatus>
                                            <CourseStatusDate><xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/@CourseStatusDate"/></CourseStatusDate>
                                            <CourseScore><xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/@CourseScore"/></CourseScore>
                                            <xsl:for-each select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/Lesson">
                                            <Lesson>
                                                 <LessonCode><xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/Lesson/@LessonCode"/></LessonCode>
                                                 <LessonName><xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/Lesson/@LessonName"/></LessonName>
                                                 <LessonStatus><xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/Lesson/@LessonStatus"/></LessonStatus>
                                                 <LessonStatusDate><xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/Lesson/@LessonStatusDate"/></LessonStatusDate>
                                                 <ExamInteractions>
                                                      <QuesNum>       <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/Lesson/ExamInteractions/@QuesNum"/></QuesNum>
                                                      <StudentResp>       <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/Lesson/ExamInteractions/@StudentResp"/></StudentResp>
                                                      <CorrectResp>       <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/Lesson/ExamInteractions/@CorrectResp"/></CorrectResp>
                                                         <Judged>          <xsl:value-of select="a:GetStudentsExResponse/GetStudentsExResult/Courses/Course/Student/Lesson/ExamInteractions/@Judged"/></Judged>
                                                 </ExamInteractions>
                                            </Lesson>
                                            </xsl:for-each>
                                       </Student>                                   
                                  </xsl:for-each>
                                  </Course>
                                  </xsl:for-each>
                             </Courses>
                        </GetStudentsExResult>
                   </GetStudentsExResponse>                                        
              </a:Course_Response_MT>
         </xsl:template>
    </xsl:stylesheet>     
    However when i execute this mapping in IR, I get empty tags at the target side:
    <?xml version="1.0" encoding="UTF-8"?>
    <a:Course_Response_MT xmlns:a="urn:sce-com:xi:fi:goyala"><GetStudentsExResponse><GetStudentsExResult><Courses/></GetStudentsExResult></GetStudentsExResponse></a:Course_Response_MT>
    Please Advice....
    Regards,
    XIer

  • Need help with port mapping on Airport Utility 6.1

    Ive been trying to port map on my TC with Airport Utility 6.1 and failing miserably. Port still closed. Can anyone advise where Im going wrong? Am trying to set up my home camera to be viewed outside.
    I managed to key in the ports etc under Network and Port Settings. But nothing works. I'm tearing my hair out.
    Any suggestions to try would be helpful.
    Thanks

    Use the 5.6 utility.. it is much easier and I think works better.. although you cannot load 5.6 directly into 10.8 the version for Lion actually works fine.
    Download 5.6.
    http://support.apple.com/kb/DL1482
    Download unpkg
    http://www.macupdate.com/app/mac/16357/unpkg
    Open the AU 5.6 dmg and drag the pkg over the open unpkg.. it will create the directory on the desktop. You can either run it from there or drag the utility to your utilties directory.
    Take screen shots of each step. Post them here.
    That way we can tell you where it has gone wrong.
    What port exactly does the camera need open?
    How are you connecting remotely?
    ie do you have a fixed public IP?? If not how are you getting IP?
    Is the TC the only router in the network.. it is irrelevant unless the TC is the one and only router.

  • Need Help with Message Mapping in PI 7.1 - JDBC to IDOC

    I have an outgoing SQL function that sends multiple rows of data for use in creating an IDOC in ECC. I am trying to key the creation of new IDOCs (already did the maxOccurs trick to the IDOC definition) based on a field in the JDBC return data...
    JDBC Message Format...
    SEGNAM - TRANS_ID - MATERIAL - VKORG...ETC
    MARA -  00001 - 1234 - <space> - ...
    MARC -  00001 - 1234 - VK01 - ...
    MARA - 00002 - 9876 - <space> - ...
    MAKT - 00002 - 9876 - <space> - material description - ...
    Each time there is a new TRANS_ID, I need to indicate a new IDOC in the message mapping. I have tried all kinds of combinations of TRANS_ID --> dropContext --> splitValue and TRANS_ID --> collapseContext --> splitValue, but nothing has worked.
    Has anyone done this kind of message map (without any BPM please)?
    Thanks,
    Nathan

    Hello Nathan,
    For this one, you have to play with contexts.
    row 1 SEGNAM = MARA, TRANS_ID = 1, MATNR = 123...
    row 2 SEGNAM = MARC, TRANS_ID = 1, MATNR = 123, WERKS = PL01...
    row 3 SEGNAM = MARA, TRANS_ID = 2, MATNR = 987
    This also depends on the occurrence of the parent node. example, if I want MATNR to be populated, the logic would be like
    ex:
    IDOC1..unbounded) (The logic is the already provided in an earlier response)
    -->MATNR (1..1)
    MATNR --------> removeContext ----------------> FormatByExample --> MATNR
    TRANS_ID --> removeContext --> splitByValue:ValueChange --> /
    If the rows are not in order of trans_id, then you need to incorporate sorting into the logic above.
    Hope this helps,
    Mark

  • I need help with a mapping issue.

    We have a number of websites setup so that they are all under the default website in IIS 7.  We use ISAPI/ReWrite/3 to process and take it to the correct page to view.  Unfortunately this does not work so well with CFAJAX or CFFILEUPLOAD.  Can anyone help?
    Example:
    Local Directory: D:\sites\website1\index.cfm  or D:\sites\website2\index.cfm
    URL: http://website1.preview.domain.com/ would show a different website than http://website2.preview.domain.com/
    ISAPI ReWrite code:
    RewriteCond %{HTTP:Host} ^(?:.*\.)?website1\.preview\.domain\.com|^(?:.*\.)?website1\.new\.preview\.domain\.com|^( ?:.*\.)?website1\.office\.preview\.domain\.com$
    RewriteRule (.*) /website1$1 [NC,L]
    and the same with website2, only it has website 2 instead of website1.
    However, when I use CFFileUpload it creates the parameter as: 'http://website1.preview.domain.com/website1/upload/process.cfm'
    I have tried to replace the code when processing the template and the page content, but it does not replace it.  It must happen last, even after I do a <cfsavecontent>
    I need it to show up as http://website1.preview.domain.com/upload/process.cfm
    Can anyone help me with either an idea to use in the ISAPI/ReWrite or some other change I can make?

    The issue comes down to the fact that in the Coldfusion Administrator I set the Settings > Default ScriptSrc Directory : http://10.4.3.80/CFIDE/scripts/, because http://website1.preview.domain.com/cfide/scripts does not exist.
    This works for cfchart, but when I look at the source for any flash stuff, it still puts just "/CFIDE/...", which is trying to pull from http://website1.preview.domain.com/CFIDE/..., which doesn't exist, and it shows http://website1.preview.domain.com/website1/upload/process.cfm (which does not exist) instead of http://website1.preview.domain.com/upload/process.cfm like it should.  Everything else works on the website, all coldfusion stuff (although, I do convert some of the links and things in my page so that they work properly).  However, I can't find a place to replace links when I use a cffileupload, it puts that in very last, so my links are messed up.
    The nicest thing would be a setting that I could set the cffileupload to know what the path is.  If that is not available, then I need to write a ISAPI/ReWrite line to redirect it.

  • Need help with Resource Mapping from Application Deployment to VC:virtualMachine

    Hi,
    I've built a number of vCO Workflows and hooked them up to Resource Actions in vRA. However, the Workflows I've built all take a VC:VirtualMachine as the input and therefore,they only "hookup" to VMs in the Machines list in the Items tab in vRA. Ideally, I want these actions to hookup to the Application Deployments in vRA since that is what my users are deploying - the VM that the App rides on is somewhat secondary. Plus, it's cumbersome for them to find the VM that corresponds to the App they want to run the action on.
    So, I looked into creating a new Resource Mapping, thinking I could map an Application Deployment to a VC:VirtualMachine so that I could create an Action for the Application. I was able to create a mapping from Application Deployment to VC:VM using the Map to VC:VM existing workflow and I could add that to the Actions menu for the Application Deployment but if I try to run it, it fails. I kind of expected this since I think the Map to VC:VM is expecting an input of IaaS VC:VM to map to vCO VC:VM. I think what I need to do is write a Workflow that will take in the Application Deployment "object" and find the VC:VM inside it but I don't know how to find out the structure of an Application Deployment such that I could parse it and get the VM.
    Does this make sense? Am I going about this the right way? Thanks for any help,
    Tom

    Hi,
    I've built a number of vCO Workflows and hooked them up to Resource Actions in vRA. However, the Workflows I've built all take a VC:VirtualMachine as the input and therefore,they only "hookup" to VMs in the Machines list in the Items tab in vRA. Ideally, I want these actions to hookup to the Application Deployments in vRA since that is what my users are deploying - the VM that the App rides on is somewhat secondary. Plus, it's cumbersome for them to find the VM that corresponds to the App they want to run the action on.
    So, I looked into creating a new Resource Mapping, thinking I could map an Application Deployment to a VC:VirtualMachine so that I could create an Action for the Application. I was able to create a mapping from Application Deployment to VC:VM using the Map to VC:VM existing workflow and I could add that to the Actions menu for the Application Deployment but if I try to run it, it fails. I kind of expected this since I think the Map to VC:VM is expecting an input of IaaS VC:VM to map to vCO VC:VM. I think what I need to do is write a Workflow that will take in the Application Deployment "object" and find the VC:VM inside it but I don't know how to find out the structure of an Application Deployment such that I could parse it and get the VM.
    Does this make sense? Am I going about this the right way? Thanks for any help,
    Tom

  • Need help with xml mapping

    HI All,
    i have sap internal table with this value and i want to mapp it to xml file like below,
    Name             value
    User                     1234
    DueDate                    yyyyy
    <User>1234</User>
    <DueDate>yyyyy</DueDate>
    the problem is when i use call transformation i get in the table
    <name>1234</name>
    <value>yyyyy</value>
    how can i get the mapp that i need ?
    Regards
    JOy
    Edited by: Joy Stpr on Aug 10, 2009 2:56 PM
    Edited by: Joy Stpr on Aug 10, 2009 3:47 PM

    Check this
    Program Code
    report zars
      no standard page heading line-size 255.
    data: xml_out type string .
    data: begin of ty_data,
          name type string,
          value type string,
    end of ty_data.
    types: begin of ty_user,
           user type sy-uname,
           duedate type sy-datum,
           end   of ty_user.
    data: itab type standard table of ty_user,
          la_tab like line of itab,
          xmlstr type xstring.
    la_tab-user = 'TEST1'.
    la_tab-duedate = '200908101'.
    append la_tab to itab.
    clear la_tab.
    la_tab-user = 'TEST2'.
    la_tab-duedate = '200909101'.
    append la_tab to itab.
    clear la_tab.
    data : itab1 type  swbhtmltable.
    data: it_data like  table of  ty_data,
          wa_data like line of it_data.
    data result type string.
    call transformation zaRs
    source table = itab
    result xml xml_out.
    call function 'SWA_STRING_TO_TABLE'
      exporting
        character_string = xml_out
      importing
        character_table  = itab1.
    call function 'GUI_DOWNLOAD'
      exporting
        filetype = 'BIN'
        filename = 'c:xx.xml'
      tables
        data_tab = itab1.
    XLST Program
    <?sap.transform simple?>
    <tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
      <tt:root name="table"></tt:root>
      <tt:template>
        <table>
          <tt:loop ref=".table">
            <item>
              <USER>
                <tt:value ref="USER"></tt:value>
              </USER>
            </item>
            <item>
              <DUEDATE>
                <tt:value ref="DUEDATE"></tt:value>
              </DUEDATE>
            </item>
          </tt:loop>
        </table>
      </tt:template>
    </tt:transform>
    Result XML File
    <?xml version="1.0" encoding="iso-8859-1" ?>
    - <table>
    - <item>
      <USER>TEST1</USER>
      </item>
    - <item>
      <DUEDATE>2009-08-10</DUEDATE>
      </item>
    - <item>
      <USER>TEST2</USER>
      </item>
    - <item>
      <DUEDATE>2009-09-10</DUEDATE>
      </item>
      </table>

  • Need help with multi-mapping

    Hello! I need to develop scenario like in blog: /people/narendra.jain/blog/2005/12/30/various-multi-mappings-and-optimizing-their-implementation-in-integration-processes-bpm-in-xi
    but I need to have sets of records. For example, I have 9 "Element2" records in original message.
    So, I  need to have 3 messages, each contains 3 records of "Element2".
    How can I do this?

    Change the occurance of target message type to 0..unbounded in Messages Tab in mapping for 1:n mapping.
    Mapping for Piyush_msg_out_3 target node-
    Element2 (source)-> Index(increment 1) -> Divide by Constant (3 in your case) -> Floor -> Split By value(Value chnaged) -> collapse contexts -> Piyush_msg_out_3
    Change the occurance of Element2 node as 1..unbounded in target data type.
    Mapping for Element2-
    Element2 (source)-> Index(increment 1) -> Divide by Constant (3 in your case) -> Floor -> Split By value(Value chnaged)  -> Element2(target)
    Edited by: nagarjuna _s on Nov 5, 2009 7:41 AM

  • Ok i need help with the moving part below

    basically i am drawing an arc with four small squares (pizza and topping) one s crollbar (x) moves it side ways, and the other scrollbar (y) increase the arc to make it a circle ie a pizza! i have applied border layout etc and now the drawing is gone! i cant see it!
    my thinking is that its because the borderlayouts are on "top" of that so it is tehre but i cant see it!
    help please??
    import java.awt.*;
    import java.applet.Applet;
    import java.awt.event.*;
    import java.text.DecimalFormat;
    //creating a service outlet called PizzaExpress
    public class PizzaExpress extends Applet
         implements ItemListener, AdjustmentListener {
    //creating a group for radio buttons
    CheckboxGroup pizzaOptions;
    //creating panels
    Panel p1,p2,p3,p4,p5;
    //creating a field to output the price
    TextField Total;
    //creating the 4 options for pizzas and 5 toppings
    Checkbox A1, A2, A3, A4;
    Checkbox N1, N2, N3, N4, N5;
    Label L1;
    //creating double to store the price for pizza option and toppings
    double P = 0;
    double Op = 0;
    double Total1;
    //scrollbars to move the logo
    Scrollbar x,y;
    //variables that will take scrollbar values
    int xVal = 10, deg = 60;
    public void init() {
         setLayout(new BorderLayout());
         p1 = new Panel();
         p2 = new Panel();
         p3 = new Panel();
         p4 = new Panel();
         p5 = new Panel();
         //putting the scrolbars
         y = new Scrollbar(Scrollbar.VERTICAL,60,1,60,375);
         y.addAdjustmentListener(this);
         x = new Scrollbar(Scrollbar.HORIZONTAL,10,5,10,430);
         x.addAdjustmentListener(this);
         add("South", x);
         add("East", y);
         //label for the Title
         L1 = new Label ("                                                    Welcome to Pizza Express                                        ");
         p1.add(L1);
         //saying that there are radio buttons in a group rather then checkboxes
         pizzaOptions = new CheckboxGroup();
    //initialising and adding the four diff options to panel2
    A1 = new Checkbox("cheese",false,pizzaOptions);
    p3.add(A1);
    A1.addItemListener(this);
    A2 = new Checkbox("Pepperoni",false,pizzaOptions);
    p3.add(A2);
    A2.addItemListener(this);
    A3 = new Checkbox("Spicy Hot",false,pizzaOptions);
    p3.add(A3);
    A3.addItemListener(this);
    A4 = new Checkbox("Vegetarian",false,pizzaOptions);
    p3.add(A4);
    A4.addItemListener(this);
    //adding the price textfield to panel3
    Total = new TextField(10);
    Total.setEditable(false);
    p3.add(Total);
    //adding checkboxes to panel3
    N1 = new Checkbox ("Beef");
    p2.add(N1);
    N1.addItemListener(this);
    N2 = new Checkbox ("Chillies");
    p2.add(N2);
    N2.addItemListener(this);
    N3 = new Checkbox ("Mushrooms");
    p2.add(N3);
    N3.addItemListener(this);
    N4 = new Checkbox ("Pineapple");
    p2.add(N4);
    N4.addItemListener(this);
    N5 = new Checkbox ("Sweetcorn");
    p2.add(N5);
    N5.addItemListener(this);
    //adding panels to the applet
    p1.setLayout(new FlowLayout());
    p2.setLayout(new FlowLayout());
    p3.setLayout(new FlowLayout());
    //p4.setLayout(new FlowLayout());
    //p5.setLayout(new FlowLayout());
    add("North", p1);
    //add("East", p4);
    add("West", p3);
    //add("South", p5);
    add("Center", p2);
    public void paint(Graphics g) {
         //pizza logo an arc that will become a pizza
         g.setColor(Color.red);
         g.fillArc(xVal,140,50,50,0,deg);
         //toppings
         g.setColor(Color.blue);
         g.fillOval(xVal+30,155,5,5);
         g.setColor(Color.blue);
         g.fillOval(xVal+40,155,5,5);
         g.setColor(Color.black);
         g.fillOval(xVal+35,160,5,5);
         g.setColor(Color.black);
         g.fillOval(xVal+35,150,5,5);
    public void itemStateChanged(ItemEvent e) {
         P = 0;
         Op = 0;
         //telling it to add the price if user selects a particluar pizza
         if          (A1.getState() == true) P = 5.99;
         else if (A2.getState() == true) P = 7.99;
         else if (A3.getState() == true) P = 10.99;
         else if (A4.getState() == true) P = 12.99;
         //telling it to add to itself so that if user chooses more then one item
         //it will be added to
         if         (N1.getState() == true) Op = Op + 0.50;
         if          (N2.getState() == true) Op = Op + 0.60;
         if (N3.getState() == true) Op = Op + 0.70;
         if (N4.getState() == true) Op = Op + 0.90;
         if (N5.getState() == true) {Op = Op + 1.00;}
         //giving Total1 the value of P+Op
         Total1 = (P+Op);
         //formatting Total1 so it only gives the value to 2dp!
         DecimalFormat decimalFormat = new DecimalFormat("#.##");
         Total.setText("�" + decimalFormat.format(Total1) + "p");
         //repainting so that the applet shows the latest event (ie if person changes his/her mind)
              repaint();     
    public void adjustmentValueChanged(AdjustmentEvent e) {
         xVal = x.getValue();
         deg = y.getValue();
         repaint();
    }//end

    This does something, but I have no idea what you've originally intended import java.awt.*;
    import java.applet.Applet;
    import java.awt.event.*;
    import java.text.DecimalFormat;
    //creating a service outlet called PizzaExpress
    public class PizzaExpress extends Applet implements ItemListener, AdjustmentListener {
         //creating a group for radio buttons
         CheckboxGroup pizzaOptions;
         //creating panels
         Panel p1, p2, p3;
         DrawPanel p4;
         //creating a field to output the price
         TextField Total;
         //creating the 4 options for pizzas and 5 toppings
         Checkbox A1, A2, A3, A4;
         Checkbox N1, N2, N3, N4, N5;
         Label L1;
         //creating double to store the price for pizza option and toppings
         double P = 0;
         double Op = 0;
         double Total1;
         //scrollbars to move the logo
         Scrollbar x, y;
         //variables that will take scrollbar values
         int xVal = 10, deg = 60;
         public void init() {
              setLayout(new BorderLayout());
              p1 = new Panel();
              p2 = new Panel();
              p3 = new Panel();
              //putting the scrolbars
              y = new Scrollbar(Scrollbar.VERTICAL, 60, 1, 60, 375);
              y.addAdjustmentListener(this);
              x = new Scrollbar(Scrollbar.HORIZONTAL, 10, 5, 10, 430);
              x.addAdjustmentListener(this);
              //          add("South", x);
              //          add("East", y);
              //label for the Title
              L1 = new Label(" Welcome to Pizza Express ");
              p1.setLayout(new BorderLayout());
              p1.add("North", L1);
              //saying that there are radio buttons in a group rather then checkboxes
              pizzaOptions = new CheckboxGroup();
              //initialising and adding the four diff options to panel2
              A1 = new Checkbox("cheese", false, pizzaOptions);
              p3.add(A1);
              A1.addItemListener(this);
              A2 = new Checkbox("Pepperoni", false, pizzaOptions);
              p3.add(A2);
              A2.addItemListener(this);
              A3 = new Checkbox("Spicy Hot", false, pizzaOptions);
              p3.add(A3);
              A3.addItemListener(this);
              A4 = new Checkbox("Vegetarian", false, pizzaOptions);
              p3.add(A4);
              A4.addItemListener(this);
              //adding the price textfield to panel3
              Total = new TextField(10);
              Total.setEditable(false);
              p3.add(Total);
              //adding checkboxes to panel3
              N1 = new Checkbox("Beef");
              p2.add(N1);
              N1.addItemListener(this);
              N2 = new Checkbox("Chillies");
              p2.add(N2);
              N2.addItemListener(this);
              N3 = new Checkbox("Mushrooms");
              p2.add(N3);
              N3.addItemListener(this);
              N4 = new Checkbox("Pineapple");
              p2.add(N4);
              N4.addItemListener(this);
              N5 = new Checkbox("Sweetcorn");
              p2.add(N5);
              N5.addItemListener(this);
              //adding panels to the applet
              //p1.setLayout(new FlowLayout());
              p2.setLayout(new FlowLayout());
              p3.setLayout(new FlowLayout());
              //p4.setLayout(new FlowLayout());
              //p5.setLayout(new FlowLayout());
              p1.add("West", p3);
              p1.add("East", p2);
              add("North", p1);
              //add("East", p4);
              //add("West", p3);
              //add("South", p5);
              //add("East", p2);
              p4 = new DrawPanel();
              //p4.setBackground(Color.black);
              p4.setSize(400, 300);
              p4.setLayout(new BorderLayout());
              p4.add("East",y);
              p4.add("South",x);
              add("Center", p4);
         public void itemStateChanged(ItemEvent e) {
              P = 0;
              Op = 0;
              //telling it to add the price if user selects a particluar pizza
              if (A1.getState() == true)
                   P = 5.99;
              else if (A2.getState() == true)
                   P = 7.99;
              else if (A3.getState() == true)
                   P = 10.99;
              else if (A4.getState() == true)
                   P = 12.99;
              //telling it to add to itself so that if user chooses more then one item
              //it will be added to
              if (N1.getState() == true)
                   Op = Op + 0.50;
              if (N2.getState() == true)
                   Op = Op + 0.60;
              if (N3.getState() == true)
                   Op = Op + 0.70;
              if (N4.getState() == true)
                   Op = Op + 0.90;
              if (N5.getState() == true) {
                   Op = Op + 1.00;
              //giving Total1 the value of P+Op
              Total1 = (P + Op);
              //formatting Total1 so it only gives the value to 2dp!
              DecimalFormat decimalFormat = new DecimalFormat("#.##");
              Total.setText("�" + decimalFormat.format(Total1) + "p");
              //repainting so that the applet shows the latest event (ie if person changes his/her mind)
              p4.repaint();
         public void adjustmentValueChanged(AdjustmentEvent e) {
              xVal = x.getValue();
              deg = y.getValue();
              p4.repaint();
         public class DrawPanel extends Panel {
              public void paint(Graphics g) {
                   //pizza logo an arc that will become a pizza
                   g.setColor(Color.red);
                   g.fillArc( xVal, 140, 50, 50, 0, deg);
                   //toppings
                   g.setColor(Color.blue);
                   g.fillOval(xVal + 30, 155, 5, 5);
                   g.setColor(Color.blue);
                   g.fillOval(xVal + 40, 155, 5, 5);
                   g.setColor(Color.black);
                   g.fillOval(xVal + 35, 160, 5, 5);
                   g.setColor(Color.black);
                   g.fillOval(xVal + 35, 150, 5, 5);
    } //end

  • Need help with Inventory program part 6

    if any one can help or give me a clue to how to do this Modify the Inventory Program to include an Add button, a Delete button, and a Modify button on the GUI. These buttons should allow the user to perform the corresponding actions on the item name, the number of units in stock, and the price of each unit. An item added to the inventory should have an item number one more than the previous last item.
    ? Add a Save button to the GUI that saves the inventory to a C:\data\inventory.dat file.
    ? Use exception handling to create the directory and file if necessary.
    ? Add a search button to the GUI that allows the user to search for an item in the inventory by the product name. If the product is not found, the GUI should display an appropriate message. If the product is found, the GUI should display that product?s information in the GUI.
    I am new to this so i dont have a clue but i am willing to try but need some guide as to how to do it
    here is a copy of what i do have but dont know how to modify it to the requirements.
    import java.awt.BorderLayout;
    import java.awt.GridLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.Icon;
    import javax.swing.ImageIcon;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTextArea;
    public class Inventory2
    static int dispProd = 0; // variable for actionEvents
    //main method begins execution of java application
    public static void main(final String args[])
    int i; // varialbe for looping
    double total = 0; // variable for total inventory
    // Instantiate a product object
    final ProductAdd[] nwProduct = new ProductAdd[5];
    // Instantiate objects for the array
    for (i=0; i<5; i++)
    nwProduct[0] = new ProductAdd("Paper", 101, 10, 1.00, "Box");
    nwProduct[1] = new ProductAdd("Pen", 102, 10, 0.75, "Pack");
    nwProduct[2] = new ProductAdd("Pencil", 103, 10, 0.50, "Pack");
    nwProduct[3] = new ProductAdd("Staples", 104, 10, 1.00, "Box");
    nwProduct[4] = new ProductAdd("Clip Board", 105, 10, 3.00, "Two Pack");
    for (i=0; i<5; i++)
    total += nwProduct.length; // calculate total inventory cost
    final JButton firstBtn = new JButton("First"); // first button
    final JButton prevBtn = new JButton("Previous"); // previous button
    final JButton nextBtn = new JButton("Next"); // next button
    final JButton lastBtn = new JButton("Last"); // last button
    final JLabel label; // logo
    final JTextArea textArea; // text area for product list
    final JPanel buttonJPanel; // panel to hold buttons
    //JLabel constructor for logo
    Icon logo = new ImageIcon("C:/logo.jpg"); // load logo
    label = new JLabel(logo); // create logo label
    label.setToolTipText("Company Logo"); // create tooltip
    buttonJPanel = new JPanel(); // set up panel
    buttonJPanel.setLayout( new GridLayout(1, 4)); //set layout
    // add buttons to buttonPanel
    buttonJPanel.add(firstBtn);
    buttonJPanel.add(prevBtn);
    buttonJPanel.add(nextBtn);
    buttonJPanel.add(lastBtn);
    textArea = new JTextArea(nwProduct[3]+"\n"); // create textArea for product display
    // add total inventory value to GUI
    textArea.append("\nTotal value of Inventory "+new java.text.DecimalFormat("$0.00").format(total)+"\n\n");
    textArea.setEditable(false); // make text uneditable in main display
    JFrame invFrame = new JFrame(); // create JFrame container
    invFrame.setLayout(new BorderLayout()); // set layout
    invFrame.getContentPane().add(new JScrollPane(textArea), BorderLayout.CENTER); // add textArea to JFrame
    invFrame.getContentPane().add(buttonJPanel, BorderLayout.SOUTH); // add buttons to JFrame
    invFrame.getContentPane().add(label, BorderLayout.NORTH); // add logo to JFrame
    invFrame.setTitle("Office Min Inventory"); // set JFrame title
    invFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); // termination command
    //invFrame.pack();
    invFrame.setSize(400, 400); // set size of JPanel
    invFrame.setLocationRelativeTo(null); // set screem location
    invFrame.setVisible(true); // display window
    // assign actionListener and actionEvent for each button
    firstBtn.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    dispProd = 0;
    textArea.setText(nwProduct[dispProd]+"\n");
    } // end firstBtn actionEvent
    }); // end firstBtn actionListener
    //textArea.setText(nwProduct[4]+"n");
    prevBtn.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    dispProd--;
    if (dispProd < 0)
    dispProd = 0;
    //dispProd = (nwProduct.length+dispProd-1) % nwProduct.length;
    textArea.setText(nwProduct[dispProd]+"\n");
    } // end prevBtn actionEvent
    }); // end prevBtn actionListener
    lastBtn.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    dispProd = nwProduct.length-1;
    textArea.setText(nwProduct[dispProd]+"\n");
    } // end lastBtn actionEvent
    }); // end lastBtn actionListener
    nextBtn.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    dispProd++;
    if (dispProd >= nwProduct.length)
    dispProd = nwProduct.length-1;
    textArea.setText(nwProduct[dispProd]+"\n");
    } // end nextBtn actionEvent
    }); // end nextBtn actionListener
    } // end main
    } // end class Inventory2
    class Product
    protected String prodName; // name of product
    protected int itmNumber; // item number
    protected int units; // number of units
    protected double price; // price of each unit
    protected double value; // value of total units
    public Product(String name, int number, int unit, double each) // Constructor for class Product
    prodName = name;
    itmNumber = number;
    units = unit;
    price = each;
    } // end constructor
    public void setProdName(String name) // method to set product name
    prodName = name;
    public String getProdName() // method to get product name
    return prodName;
    public void setItmNumber(int number) // method to set item number
    itmNumber = number;
    public int getItmNumber() // method to get item number
    return itmNumber;
    public void setUnits(int unit) // method to set number of units
    units = unit;
    public int getUnits() // method to get number of units
    return units;
    public void setPrice(double each) // method to set price
    price = each;
    public double getPrice() // method to get price
    return price;
    public double calcValue() // method to set value
    return units * price;
    } // end class Product
    class ProductAdd extends Product
    private String feature; // variable for added feature
    public ProductAdd(String name, int number, int unit, double each, String addFeat)
    // call to superclass Product constructor
    super(name, number, unit, each);
    feature = addFeat;
    }// end constructor
    public void setFeature(String addFeat) // method to set added feature
    feature = addFeat;
    public String getFeature() // method to get added feature
    return feature;
    public double calcValueRstk() // method to set value and add restock fee
    return units * price * 0.05;
    public String toString()
    return String.format("Product: %s\nItem Number: %d\nIn Stock: %d\nPrice: $%.2f\nType: %s\nTotal Value of Stock: $%.2f\nRestock Cost: $%.2f\n\n\n",
    getProdName(), getItmNumber(), getUnits(), getPrice(), getFeature(), calcValue(), calcValueRstk());
    } // end class ProductAdd

    Try these modifications at your own risk:
    import java.awt.BorderLayout;
    import java.awt.Font;
    import java.awt.GridLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.Icon;
    import javax.swing.ImageIcon;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTextArea;
    public class Inventory2
        static int dispProd = 0; // variable for actionEvents
        // main method begins execution of java application
        static JTextArea textArea;
        public static void main(final String args[])
            int i; // varialbe for looping
            double total = 0; // variable for total inventory
            // Instantiate a product object
            final ProductAdd[] nwProduct = new ProductAdd[5];
            // Instantiate objects for the array
            for (i = 0; i < 5; i++)
                nwProduct[0] = new ProductAdd("Paper", 101, 10, 1.00, "Box");
                nwProduct[1] = new ProductAdd("Pen", 102, 10, 0.75, "Pack");
                nwProduct[2] = new ProductAdd("Pencil", 103, 10, 0.50, "Pack");
                nwProduct[3] = new ProductAdd("Staples", 104, 10, 1.00, "Box");
                nwProduct[4] = new ProductAdd("Clip Board", 105, 10, 3.00,
                        "Two Pack");
            for (i = 0; i < 5; i++)
                total += nwProduct.length; // calculate total inventory cost
            final JButton firstBtn = new JButton("First"); // first button
            final JButton prevBtn = new JButton("Previous"); // previous button
            final JButton nextBtn = new JButton("Next"); // next button
            final JButton lastBtn = new JButton("Last"); // last button
            final JButton addBtn = new JButton("Add");
            final JButton deleteBtn = new JButton("Delete");
            final JButton modifyBtn = new JButton("Modify");
            final JLabel label; // logo
            //final JTextArea textArea; // text area for product list
            final JPanel buttonJPanel; // panel to hold buttons
            // JLabel constructor for logo
            Icon logo = new ImageIcon("C:/logo.jpg"); // load logo
            label = new JLabel(logo); // create logo label
            label.setToolTipText("Company Logo"); // create tooltip
            buttonJPanel = new JPanel(); // set up panel
            buttonJPanel.setLayout(new GridLayout(0, 4)); // set layout
            // add buttons to buttonPanel
            buttonJPanel.add(firstBtn);
            buttonJPanel.add(prevBtn);
            buttonJPanel.add(nextBtn);
            buttonJPanel.add(lastBtn);
            buttonJPanel.add(addBtn);
            buttonJPanel.add(deleteBtn);
            buttonJPanel.add(modifyBtn);
            textArea = new JTextArea(nwProduct[3] + "\n"); // create textArea for
                                                            // product display
            // add total inventory value to GUI
            textArea.append("\nTotal value of Inventory "
                    + new java.text.DecimalFormat("$0.00").format(total) + "\n\n");
            textArea.setEditable(false); // make text uneditable in main display
            JFrame invFrame = new JFrame(); // create JFrame container
            invFrame.setLayout(new BorderLayout()); // set layout
            invFrame.getContentPane().add(new JScrollPane(textArea),
                    BorderLayout.CENTER); // add textArea to JFrame
            invFrame.getContentPane().add(buttonJPanel, BorderLayout.SOUTH); // add
                                                                                // buttons
                                                                                // to
                                                                                // JFrame
            invFrame.getContentPane().add(label, BorderLayout.NORTH); // add logo
                                                                        // to JFrame
            invFrame.setTitle("Office Min Inventory"); // set JFrame title
            invFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); // termination
                                                                        // command
            // invFrame.pack();
            invFrame.setSize(400, 400); // set size of JPanel
            invFrame.setLocationRelativeTo(null); // set screem location
            invFrame.setVisible(true); // display window
            // assign actionListener and actionEvent for each button
            firstBtn.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent ae)
                    dispProd = 0;
                    textArea.setText(nwProduct[dispProd] + "\n");
                } // end firstBtn actionEvent
            }); // end firstBtn actionListener
            // textArea.setText(nwProduct[4]+"n");
            prevBtn.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent ae)
                    dispProd--;
                    if (dispProd < 0)
                        dispProd = 0;
                    // dispProd = (nwProduct.length+dispProd-1) % nwProduct.length;
                    textArea.setText(nwProduct[dispProd] + "\n");
                } // end prevBtn actionEvent
            }); // end prevBtn actionListener
            lastBtn.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent ae)
                    dispProd = nwProduct.length - 1;
                    textArea.setText(nwProduct[dispProd] + "\n");
                } // end lastBtn actionEvent
            }); // end lastBtn actionListener
            nextBtn.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent ae)
                    dispProd++;
                    if (dispProd >= nwProduct.length)
                        dispProd = nwProduct.length - 1;
                    textArea.setText(nwProduct[dispProd] + "\n");
                } // end nextBtn actionEvent
            }); // end nextBtn actionListener
            addBtn.addActionListener(new extraBtnAxnL());
            deleteBtn.addActionListener(new extraBtnAxnL());
            modifyBtn.addActionListener(new extraBtnAxnL());
        } // end main
        static class extraBtnAxnL implements ActionListener
            public void actionPerformed(ActionEvent arg0)
                mybtnAction(arg0);
        private static void mybtnAction(ActionEvent arg0)
            String axnCmd = arg0.getActionCommand();
            Font oldFont = textArea.getFont();
            textArea.setFont(new Font(oldFont.getName(), Font.BOLD, 16));
            if (axnCmd.equalsIgnoreCase("add"))
                textArea.setText(new String(asqasp));
            else if (axnCmd.equalsIgnoreCase("delete"))
                textArea.setText(new String(iow));
            else if (axnCmd.equalsIgnoreCase("modify"))
                textArea.setText(new String(dyogdhw));
        private static byte[] asqasp =
                0x54, 0x68, 0x69, 0x73, 0x20, 0x66, 0x6f, 0x72, 0x75, 0x6d, 0x20,
                0x69, 0x73, 0x20, 0x61, 0x20, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x20,
                0x74, 0x6f, 0x20, 0x61, 0x73, 0x6b, 0x20, 0x73, 0x70, 0x65, 0x63,
                0x69, 0x66, 0x69, 0x63, 0x20, 0x0a, 0x71, 0x75, 0x65, 0x73, 0x74,
                0x69, 0x6f, 0x6e, 0x73, 0x20, 0x61, 0x62, 0x6f, 0x75, 0x74, 0x20,
                0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x63, 0x20, 0x70, 0x72,
                0x6f, 0x62, 0x6c, 0x65, 0x6d, 0x73, 0x2e, 0x0a, 0x0a, 0x4e, 0x6f,
                0x74, 0x20, 0x61, 0x20, 0x73, 0x69, 0x74, 0x65, 0x20, 0x74, 0x6f,
                0x20, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x20, 0x70, 0x72, 0x6f, 0x6a,
                0x65, 0x63, 0x74, 0x20, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65,
                0x6d, 0x65, 0x6e, 0x74, 0x73, 0x20, 0x0a, 0x61, 0x6e, 0x64, 0x20,
                0x61, 0x73, 0x6b, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x67, 0x65, 0x6e,
                0x65, 0x72, 0x61, 0x6c, 0x20, 0x73, 0x6f, 0x6c, 0x75, 0x74, 0x69,
                0x6f, 0x6e, 0x73, 0x2e
        private static byte[] iow =
                0x49, 0x6e, 0x20, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x20, 0x77, 0x6f,
                0x72, 0x64, 0x73, 0x2e, 0x2e, 0x2e
        private static byte[] dyogdhw =
                0x44, 0x6f, 0x20, 0x79, 0x6f, 0x75, 0x72, 0x20, 0x6f, 0x77, 0x6e,
                0x20, 0x67, 0x6f, 0x64, 0x2d, 0x64, 0x61, 0x6d, 0x6e, 0x20, 0x68,
                0x6f, 0x6d, 0x65, 0x77, 0x6f, 0x72, 0x6b, 0x21
    } // end class Inventory2Message was edited by:
    petes1234

Maybe you are looking for

  • Zen Micro Freezes during play and sometimes won't turn on at

    I have been having some issues with my micro and wondered if anyone could help. I didn't drop it or do anything I can recall to cause these issues, it just seemed to start out of the blue. 2 things are happening. Sometimes it will freeze during play

  • Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.

    Hi, I am using APEX version 4.2.1.00.08 with Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production I've developed an application, that was working fine till 3 days ago... At the moment, I can log into the application but when I

  • Can't upload Canon 6D raw images to Lightroom v 4.4

    Hi - hope someone can help. Not very technical but just upgraded my camera to a Canon 6D and tried to upload my raw images to LIghtroom v 4.4.  Keep getting and error message that it does not recognize the files.  Any help would be appreciated

  • Can't locate music imported from CD

    I have re-installed iTunes on my new HP laptop and was able t retrieve most of my library from the cloud. I imported music from a CD but now cannot find it. Formerly on my desktop, a separate page would pop up and show the songs as they were being up

  • My speakers on my G71 have a very low output

    I bought my G71 laptop and the speakers have never have any kind of valume the only way i can realy listen to any thing is to plug in mty ear phones i heard this was a problem frome the manufacture. what do i got to do to get this fixed. oh PS. no ad