Add image resource to the ".r" file

Hi,
I'd like to embed small (16x16 pix) image resources (ex. png, jpeg) into the ".r" file. How can I do this?

You can use the 'read' command. See "Building and Managing Programs in MPW" for a complete reference to Rez:
http://developer.apple.com/tools/mpw-tools/books.html#Building

Similar Messages

  • How to add new fields to the DME file in F110

    Hi,
    We have a requirement add new fields to the file that is used in  F110.
    .I did go in to DMEE transaction but I hae no idea how to add new fileds to the existing file.
    Can anybody please help me in resolving the issue.
    Thanks
    Venkat
    Edited by: Venkat R on Jun 8, 2009 8:45 AM

    Hi,
    There is no function module for that, We have created our own function module and attached to that field.
    Refer the below code. This will fetch the document number.
    DATA: lwa_item   TYPE dmee_paym_if_type,
            l_fpayp   TYPE fpayp,
            l_fpayhx TYPE fpayhx,
            first_flag TYPE c,
            lv_lifnr   TYPE lifnr,
            voucher_id TYPE string,
            voucher TYPE string,
            invoice_id TYPE belnr_d,
            voucher_len1 TYPE i,
            voucher_len TYPE i.
      TYPES:
      BEGIN OF lt_regup,
            xblnr TYPE xblnr1,
            belnr TYPE belnr_d,
      END OF lt_regup.
      DATA: lt_regup TYPE STANDARD TABLE OF regup,
            lv_regup TYPE regup.
    Hope this helps.
    Raja.A
    Edited by: Raja.A on Feb 16, 2011 7:17 PM

  • Add new line in the Flat file based on the field value

    Hi,
    Following is my Flat File -
    Customer   X      Y
    1001          1       2
    1002          0       1
    Based on the X and Y value I need to add new lines in the Flat file. If X>0 then add a new line with repeating row and Y>0 add again a new line with repeating row. If X or Y=0 then no need to add any repeating new line. 
    So, here for the above example I need output as-
    Customer    X    Y
    1001          1      2
    1001         1       2
    1001         1       2
    1002          0       1
    1002          0        1
    Suggest how we can achieve this?
    Regards,
    Tridib Konwar 

    Hi Tridib,
        I tried your scenario and You will have to use the custom xslt to get the expected result.
        Please find bellow the xslt code which you can use in your map.
    <?xml version="1.0" encoding="utf-16" ?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:var="http://schemas.microsoft.com/BizTalk/2003/var" exclude-result-prefixes="msxsl var" version="1.0" xmlns:ns0="http://PracticeAtul.XYFlatFileSchema">
    <xsl:output omit-xml-declaration="yes" method="xml" version="1.0" />
    <xsl:template match="/">
    <xsl:apply-templates select="/ns0:XYComp" />
    </xsl:template>
    <xsl:template match="/ns0:XYComp">
    <ns0:XYComp>
    <XYComp_Child1>
    <XYComp_Child1_Child1>
    <xsl:value-of select="XYComp_Child1/XYComp_Child1_Child1/text()" />
    </XYComp_Child1_Child1>
    <XYComp_Child1_Child2>
    <xsl:value-of select="XYComp_Child1/XYComp_Child1_Child2/text()" />
    </XYComp_Child1_Child2>
    <XYComp_Child1_Child3>
    <xsl:value-of select="XYComp_Child1/XYComp_Child1_Child3/text()" />
    </XYComp_Child1_Child3>
    <xsl:value-of select="XYComp_Child1/text()" />
    </XYComp_Child1>
    <xsl:for-each select="XYComp_Child2">
    <XYComp_Child2>
    <XYComp_Child2_Child1>
    <xsl:value-of select="XYComp_Child2_Child1/text()" />
    </XYComp_Child2_Child1>
    <XYComp_Child2_Child2>
    <xsl:value-of select="XYComp_Child2_Child2/text()" />
    </XYComp_Child2_Child2>
    <XYComp_Child2_Child3>
    <xsl:value-of select="XYComp_Child2_Child3/text()" />
    </XYComp_Child2_Child3>
    </XYComp_Child2>
    <xsl:if test="XYComp_Child2_Child2/text()!=0">
    <XYComp_Child2>
    <XYComp_Child2_Child1>
    <xsl:value-of select="XYComp_Child2_Child1/text()" />
    </XYComp_Child2_Child1>
    <XYComp_Child2_Child2>
    <xsl:value-of select="XYComp_Child2_Child2/text()" />
    </XYComp_Child2_Child2>
    <XYComp_Child2_Child3>
    <xsl:value-of select="XYComp_Child2_Child3/text()" />
    </XYComp_Child2_Child3>
    </XYComp_Child2>
    </xsl:if>
    <xsl:if test="XYComp_Child2_Child3/text()!=0">
    <XYComp_Child2>
    <XYComp_Child2_Child1>
    <xsl:value-of select="XYComp_Child2_Child1/text()" />
    </XYComp_Child2_Child1>
    <XYComp_Child2_Child2>
    <xsl:value-of select="XYComp_Child2_Child2/text()" />
    </XYComp_Child2_Child2>
    <XYComp_Child2_Child3>
    <xsl:value-of select="XYComp_Child2_Child3/text()" />
    </XYComp_Child2_Child3>
    </XYComp_Child2>
    </xsl:if>
    </xsl:for-each>
    </ns0:XYComp>
    </xsl:template>
    </xsl:stylesheet>
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful.
    Atul Toke

  • How do we add trap-recipients to the acl file?

    How do we add trap-recipients to the acl file?
    Any examples.

    Here's some documentation I am working on for my place of work - hope this helps:
    There are two Sun-provided configuration files of note that must be maintained and provided to the SNMP agent program as command line arguments when it runs. They are:
    X.acl (subagent access control file, where X is your agent name)
    X.reg (subagent registration file, where X is your agent name)
    Note: For more information on either of these files, read the Solstice Enterprise Agents User Guide found on the Sun website, but don't expect too much.
    The reg file specifies the subagent name and OID tree it is responsible for, among other things.
    The acl file contains a list of communities that will be sent traps. This file will need to be periodically updated with the IP addresses of any entity that wants to receive traps from the X subagent. The file looks in part like this:
    acl = {
    communities = public, private
    access = read-write
    managers = dv, localhost
    trap = {                                                             
    trap-community = SNMP-trap
    hosts = dv, localhost
    enterprise="Xenterprise"
    trap-num = 1-5
    Where "dv" and "localhost" are configured in the /etc/hosts file as IP addresses to send traps to and "Xenterprise" is an enterprise that must be registered EXACTLY as is shown in the /etc/snmp/conf/enterprises.oid file. (Note: Some of the enterprises in this file have spaces within their name. This WILL NOT WORK. So if for some reason, an enterprise you were going to use is "MY Enterprise" you must changes this file because your MIB will not compile with an enterprise with spaces in the TRAP-TYPE declaration.
    So, to add a new community, add an argument to the "managers" and "hosts" line in the .acl file and ensure that this reference has its IP address listed in the /etc/hosts file.
    Furthermore, in /etc/snmp/conf/snmpdx.acl a comparable entry needs to be added as well. The snmpdx executable is the master agent that the subagent communicates with. It also has an entry in its .acl file as follows:
    trap = {                                                            
    trap-community = SNMP-trap
    hosts = dv, localhost
    enterprise="Xenterprise"
    trap-num = 1-5

  • WPC: unable to add different resources with the same name into a WPC page

    Hi,
    I got a WPC problem when adding different KM resources with the same name into a WPC page.  Only one KM resource is able to be added in WPC.
    For example:
    There two "article.html" with different content and RID:
    1. /company_a/article.html
    2. /company_b/article.html
    when adding these two html pages into a WPC page, only one page will be shown.
    This means that a WPC page is not able to contain resources with same file names.  I think the problem might lie on the resource-linking mechanism of WPC. WPC will add a resource link in the page folder, when a new resource is drag&dropped into WPC.
    Anyone has some good ideas to solve my problem? Thanks a lot.
    Regards
    Lei NING
    Edited by: Lei NING on Apr 15, 2008 4:16 PM

    As this is not possible and double entries cause this problem, why not just pu both napes in the contact details on the same number. IE John Smith & Peter Jones all in the first name, by doing this if you search your contacts either by searching for john, peter, smith or jones the number will show up and if either calls the number will show John Smith & Peter Jones, it may not be perfect but will work. As the phone only recognises a number if two seperate entries of the number exist with different names it cannot possibly know who is calling ?
    If I have helped at all, a click on the White Star is always appreciated :
    you can also help others by marking 'accept as solution' 

  • How to add search tab in the .chm file

    Hi All,
    All these days, I was using RH -5 to create the .chm file. Today, I moved onto RH -9. The chm file had the Search option enabled automatically in RH-5. But in RH-9, Glossary option alone is available and I am not able to add Search tab adjacent to the Index tab. Please refer to the screenshot for more clarification.
    Please help me to solve this as the client would expect Search tab for sure.
    Regards,
    Lata

    Hi Lata
    What you are showing in your image is a mismatch. The tab says Glossary but the contents of the tab show Search.
    I think in this case I would suggest attempting to define a new window with the attributes you need. Then configure that window as the default for the layout you are using.
    You define the window by:
    1. Ensure Microsoft HTML Help is the default layout.
    2. Click View > Pods > Project Set-up and you should see the windows there.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Is there a way to have iPhoto add location information to the original file

    Is there a way to have iPhoto add manually assigned location information to the original file? After adding location information to about 20,000 of my 35,000 picture library, I generated a new library because of problems with faces. That fixed the faces problem but I was quite disappointed to see that the locations were absent. From what I can see, you can only do this by exporting the files (file - edit) and having the option checked to include the location information. Of course, if you select to have the original files exported (as opposed to creating 35,000 new jpegs), you do not have the option to include location information. Even if you did have that option, it would be a silly way to do it. Am I missing something?

    No exporting is the only way - I believe that HoudahGeo - http://www.houdah.com/houdahGeo/ - will add them to the originals in iPhoto - check it out
    LN

  • Add header line to the text file in receiver file adapter

    Hello Experts,
    I have to add a new line to the text file generated at the receiver end.
    My structure is
    Record
       Item......0-unbounded
             field1
             field2
             field3
    I have defined below parameters in receiver FCC.
    RecordSet Structure : Record,Item
    Item.fieldSeparator : ;
    Record.fieldSeparator : nl
    Record.endSeparator : '0x0D''0x0A' ( this is to get a carriage return at the end of the file)
    Item.addHeaderLine : 1
    With the above configuration, i am getting the desired output with NO header line.
    Please help.
    Thanks,
    Swetha.

    Hi, it looks like that the headerline "specification is only permitted if exactly one structure is defined." Please check [SAP help under Define Parameters for Recordset Structures|http://help.sap.com/saphelp_nw73/helpdata/en/44/686e687f2a6d12e10000000a1553f6/frameset.htm].
    One solution would be to generate the header fields in the message payload. Generate an additional first line containing the header names, e.g.
    <Item>
    <field1>Header1
    <field2>Header2
    <field3>Header3

  • How do I load property files and images stored in the jar file?

    Hi
    So, if I have a structure like this:
    /com.myfirm.myproject.SomeClass
    /images/
    /properties/
    And I pack this structure into a jar file, how do I then access the images under "/images/" and the property files under "/properties/"? A link to a good tutorial on this would be perfect, or a description/hint/howto :)

    Im having problems even loading direcly from the directory..? I have this structure:
    src (source dir)
    classes (classes dir)
    lang/textRb_en_US.properties (the file I want to load)
    Then I have this code:
    Locale currentLocale = new Locale("en", "US");
    ResourceBundle textRb = ResourceBundle.getBundle("/lang/textRb", currentLocale);But it gives me a "java.util.MissingResourceException: Can't find bundle for base name /lang/textRb, locale en_US". I start my application from within Eclipse, and I have tried to move "lang/textRb_en_US.properties" into the classes dir, but same error.
    Im confused as to there Java looks for ressources, and I need this to work no matter where I put my classes/jar. Could you help me out here?

  • I want to add image name with the extension to db after upload, Can any body help?

    Hello there,
    Earlier in the week I created PHP photo/image upload form so clients will be able to upload to my site, it worked very well uploading image to designated directory to the C:/path/ but there is more that I would like to do with the form, and that is to write the image name with the extension, “Joplateau.jpg” for example in the database after upload. I wanted to use hiddenField but it's not working for me, may be i am not doing it right. If any one has an idea how to do this please let me know, and thanks in advance.
    Thanks in a lot.
    Joplateau.

    Server-side coding questions are best answered in the Application Developers forum:
    http://forums.adobe.com/community/dreamweaver/dreamweaver_development?view=discussions
    Nancy O.

  • I want to add image name with the extension to db after upload in PHP, Can any body help?

    Hello People!
    Earlier in the week I created PHP photo/image upload form so clients will be able to upload to my site, it worked very well uploading image to designated directory to the C:/path/ but there is more that I would like to do with the form, and that is to write the image name with the extension, “Joplateau.jpg” for example in the database after upload. I wanted to use hiddenField but it's not working for me, may be i am not doing it right. If any one has an idea how to do this please let me know, and thanks in advance.
    Thanks a lot.
    Joplateau

    Server-side coding questions are best answered in the Application Developers forum:
    http://forums.adobe.com/community/dreamweaver/dreamweaver_development?view=discussions
    Nancy O.

  • Add serial number in the report file name when using batch process model

        I would like to append a string containing the current UUT serial number to the base name of the report file. For example, uut_report.html becomes uut_report[SN000001].html. This setting is not available if I use NI BatchModel.seq as my process model.
    Thanks!
    Jacky

    duplicate post
    Ask your question only once.

  • How do I add new data to the same file in a State Machine?

    Hello,
    I have a State Machine, with a State where 3 samples of data are collected in a For Loop. I would like to save this data in a file and keep adding new data to the same file each time I get to this state. The problem I'm running into is that each time I reach this State, my old data in the Excel file gets replaced with the new data instead of being continuously added in the same file.
    Ive tried Shift Registers but I may not be using them correctly since my file keeps displaying only 3 new data points.
    Any ideas will be appreciated!
    Thank you, so much.
    -Peter

    Where should I place these shift registers? Where should I place my File I/O VIs? Is it possible to use the Write to Spreadsheet File VI in this situation?
    Ive attached a very simple example of the problem. Thank you.
    Attachments:
    StandardStateMachine 2.vi ‏16 KB

  • Install RMS 13.1 How to add data boundaries  in the ddl  files for UK?

    Hello Retail Gurus,
    I have installed RMS 13.1 without running the partition.ksh script while installing the Retail Database for RMS and it created some sample data too, I have seen the Install Guide and especially looked at the Partitioning Steps in the Guide , Can anyone give a hint ,how the data boundaries are modified in the ddl files for UK?. Since I am a DBA i am little confused , from where to get these data? as the installation guide mentions that the RMS_partition_defintion.xls has to modified and used for a production installation combined with partition_attributes.cfg for a production installation.
    Thanks in Advance
    -- Vivek

    Hi Vivek,
    Let's see...
    UK means united kingdom of great brittain? I think there are no UK specific DDL statements related to RMS.
    If you look at the installer (unpack the zips from edelivery.oracle.com for e.g. RMS 13.1), checkout the folders
    V16908-01\rms_13.1_install\rms13dbschema\rms\dbschema\dbscripts_rms\examples\part
    V16908-01\rms_13.1_install\rms13dbschema\rms\dbschema\dbscripts_rms\ddl\part
    This contains a ksh script that is driven by a config scripts and some lists of specific partitions in folder data_def.
    This partition.ksh script can recreate some table's DDL from non-partitioned to partitioned.
    The mentioned XLS file can also be found in this folder and helps in setting the number of partitions and doing one dimensional or e.g. multi-dimensional (e.g. range/hash).
    The whole process is explained in quite some detail in the last chapter of the merchandise implementation guide, merch-131-impg.pdf.
    When your system already containts data, this should be saved and re-placed.
    Please note that the indexes on partitioned tables may need partitioning too, at least some reflection on this is required and afaik the RMS installer tries to cater for this too.
    Best regards,
    Erik Ykema
    Edited by: ErikYkema on Oct 29, 2010 8:05 AM

  • How to add descriptor Customizer in the mapping file

    I am using TopLink 11g. Is it possbile to specify descriptor customizer in the mapping file? It seems it cannot be done in the TopLink workbench and the example shows it is able to be done using JPA annotation in the JAVA code. We like to use the mapping file because it is more flexible and without messing up with the JAVA code.
    Thanks a lot!
    Ming-Wen

    Are you using JPA or the native API?
    For JPA you can set a DescriptorCustomizer through the annotation, or through the persistence.xml property "eclipselink.descriptor.customizer.<entity>".
    For the Mapping Workbench and the native API you can set a amendment method in the Mapping Workbench to call a static method that customizes the descriptor.
    James : http://www.eclipselink.org

Maybe you are looking for