SPMetal generate code: EntityList Item not EntityList Currency in data context class?

I create and deploy custom list by visual studio 2010. I have 3 file: Instance, element and schema. Then I used SPMetal to generate code.
[Microsoft.SharePoint.Linq.ListAttribute(Name="Currency")]
public Microsoft.SharePoint.Linq.EntityList<Item> Currency
 get {
 return this.GetList<Item>("Currency");
If I create custom list(Currency) by sharepoint, SPMetal will generate code below. What should I edit in my xml file(instance, element, schema) so that SPMetal gen to:
[Microsoft.SharePoint.Linq.ListAttribute(Name="Currency")]
public Microsoft.SharePoint.Linq.EntityList<Currency> Currency
 get {
 return this.GetList<Currency>("Currency");

Hi,
Tested in VS 2012.
You should change Schema.xml.
Name="ListFieldsContentType"
to
 Name="$Resources:core,Item;"  Group="$Resources:core,List_Content_Types;" Description="$Resources:core,ItemCTDesc;" Version="1"
Remove sections:
ContentTypeRef
and finally add <Folder TargetName="Item"/> in ContentType section.
Before:
<ContentTypes>
<ContentType ID="0x0100cd1d8f732d3947f0b1bada45cb76c152" Name="ListFieldsContentType">
<FieldRefs>
<FieldRef ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Name="Title" />
<FieldRef ID="{0a87b432-0638-4428-9df9-fd68ba6f8efb}" Name="Name" />
</FieldRefs>
</ContentType>
<ContentTypeRef ID="0x01">
<Folder TargetName="Item" />
</ContentTypeRef>
<ContentTypeRef ID="0x0120" />
</ContentTypes>
After:
<ContentTypes>
<ContentType ID="0x0100cd1d8f732d3947f0b1bada45cb76c152" Name="$Resources:core,Item;" Group="$Resources:core,List_Content_Types;" Description="$Resources:core,ItemCTDesc;" Version="1">
<FieldRefs>
<FieldRef ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Name="Title" />
<FieldRef ID="{0a87b432-0638-4428-9df9-fd68ba6f8efb}" Name="Name" />
</FieldRefs>
<Folder TargetName="Item"/>
</ContentType>
</ContentTypes>
Regards
Adam

Similar Messages

  • Generating code for item

    Hi
    My client's item master data is not ready.Item description and other parameters reqd in system are available but item code is not ready.He wants that system should itself decide code. his item is vehicle.so acc to him he will give parameters of vehicle and system by any formula basis decide the item code.
    Is this service available in SAP B1?
    Thanks

    Put your data in an excel file and generate item code by using a formula.
    Cell A1 "1000"
    Formula; =a1+1
    Copy down as required
    Save a Tab Delimited
    Update with DTW

  • Report generated through BIP Server not in sync with data updated in DB

    Hi,
    We have an issue where the BIP report show up the old value instead of the latest updated & commited value done from Application(ADF) on the same session or transaction.
    Does BIP have any caching mechanism implemented internally for a user context?
    Detailed Explanation :
    After verifying several scenarios, following are the scenarios which reproduced the cache issue in our application:
    Case -1:
    1) Logged in as user "User1".
    2) Navigated to page where we can update data and we have option to print/generate the report.
    3) Now made some updates in the page and saved it.
    4) Now generate the report, report is generated with the updated information.
    5) Now close the report generated and update the page with some other modifications and save it.
    6) Now generate the report, but the report doesn't have the updated info.
    Case-2:
    1) Logged in as user "User2".
    2) Navigated to page where we can update data and we have option to print/generate the report.
    3) Generate the print profile report, you see the changes made above with "User1" login.
    4) Now close the report generated and update the page with some more modifications and save it.
    5) Now generate the report, but the report doesn't have the updated info.
    Seems like, the request sent to BIP server is being cached at BIP server with its response considering the key with following format:
    <Login User-id> + <Request Parameters> .
    We are thinking this way because, in both Case-1 and Case-2, if we are modifying the request parameters values (fields to be shown in the generated report) uniquely for each new request,
    then we are seeing the changes updated in DB are present in the report generated.
    Can someone give inputs, how to overcome this issue?
    Thanks,
    Kiran Kumar

    if you are using the cold backup to create the standby database, Check that have you followed the following steps or not.
    1. remove
    all the datafiles and controlfiles from the standby database.
    2. Create a new standby controlfile of the production for standby using the following cmd
    'alter database create standby controlfile as 'Location';'
    3. move the new controlfile to standby database server location as specified in initialization parameter file.
    4. Restore all the datafiles to its appropriate loaction which was taken through cold backup.
    5. startup nomount
    6. alter database mount standby database;
    7. recover standby database.
    scp the archive log sequence that is asked by the database, from production.
    You can try this steps.

  • Clientgen fails -not finding built-in data type class

    Hi,
    I have deployed a web service on WL81, which returns a complex object. I have
    provided the java-class representation and the serializer for it, and i am able
    to deploy and test the web service fine using the WL console.
    I am now trying to create the stubs using clientgen, and it fails saying that
    it cannot find by complex object. I have even put the class in a jar file and
    in the classpath but it just doesnt find it. Does anyone know what im doing wrong
    Any help is appreciated. Thanks! Leena.
    Here are the error messages :
    build:
    [clientgen] Generating client jar for http://localhost:7001/Project1/Project1Services?WSDL
    [clientgen] C:\WINNT\Profiles\leena\Local Settings\Temp\Project1Client.jar-184891975\blackpearl\client\project1\MyServicePort.java:15:
    cannot resolve symbol
    [clientgen] symbol : class MyObject
    [clientgen] location: interface test.project1.MyServicePort
    [clientgen] public MyObject getXXX(java.lang.String Myname)
    This msg is spit out for every reference in the MyServicePort.java and MyServicePort_Stub.java
    that i assume it generates before it fails.
    Here is the build.xml:
    <project name="MywebServicesExample" default="build">
    <target name="build" >
    <clientgen wsdl="http://localhost:7001/Project1/Project1Services?WSDL"
    packageName="test.project1"
    clientJar="Project1Client.jar" />
    </target>
    </project>

    Not sure why you are getting this error,
    but my guess is that this may be due to
    some classpath issues.
    Make sure that you are using the ant that
    is shipped with WLS and your classpath
    contains weblogic.jar and webservices.jar.
    Also you can try out this simple clientgen
    example:
    http://www.manojc.com/?sample28
    Regards,
    -manoj
    http://manojc.com
    "Leena" <[email protected]> wrote in message
    news:[email protected]..
    >
    Hi,
    I have deployed a web service on WL81, which returns a complex object.I have
    provided the java-class representation and the serializer for it, and i amable
    to deploy and test the web service fine using the WL console.
    I am now trying to create a Java client to invoke this service. Tocreate
    the stubs im using clientgen, and it fails saying that it cannot find mycomplex
    object. I have put the complex object class in a jar file and in theclasspath
    but it just doesnt find it. Does anyone know what im doing wrong ?
    Any help is appreciated. Thanks! Leena.
    Here are the error messages :
    build:
    [clientgen] Generating client jar forhttp://localhost:7001/Project1/Project1Services?WSDL
    [clientgen] C:\WINNT\Profiles\leena\LocalSettings\Temp\Project1Client.jar-184891975\test\project1\MyServicePort.java:
    15:
    cannot resolve symbol
    [clientgen] symbol : class MyObject [clientgen] location: interfacetest.project1.MyServicePort
    [clientgen] public MyObject getXXX(java.lang.String Myname)
    This msg is spit out for every reference in the MyServicePort.java andMyServicePort_Stub.java
    that i assume it generates before it fails.
    Here is the build.xml:
    <project name="MywebServicesExample" default="build"> <target name="build"
    <clientgen wsdl="http://localhost:7001/Project1/Project1Services?WSDL"
    packageName="test.project1"
    clientJar="Project1Client.jar" />
    </target>
    </project>

  • I am trying to use generate code in signal express to import into labview.

    I get this error when i try to generate code in signal express to export to labview . I have tries the error suggestions but I am still having problems. any help would be appreciated
    The version of LabVIEW you are generating code into does not contain all the necessary SignalExpress support files. Make sure you launch the version of LabVIEW with SignalExpress support installed before generating code from SignalExpress. If you want to generate code into more than one version of LabVIEW, uninstall SignalExpress and all versions of LabVIEW except the earliest.  Install SignalExpress, then install any other versions of LabVIEW.  Copy the files from the vi.lib\express\SignalExpress directory of the earliest installed version of LabVIEW into the same sub-directory location of any other version of LabVIEW in which you want to include support for code generation.

    Typically, this problem is repaired by following the directions on the error message. Since it was not, can you please give us more information so we can start determining the cause?
    What version or versions of LabVIEW do you have installed? What version or versions of SignalExpress do you have installed? Could you post a file with a listing of the files in <vi.lib>\express\SignalExpress for the version of LabVIEW you are trying to use. You can either post a screenshot (in PNG or GIF format) of the directory dialog or use the command prompt to generate a list to a file (preferred). To generate a list with the command prompt, do the following:
    Launch the command prompt from the start menu — Start»Programs»Accessories»Command Prompt
    Navigate to the drive you have LabVIEW installed on ( usually C: ) — C:
    Change directory to the appropriate LabVIEW directory — cd "\Program Files\National Instruments\LabVIEW 8.2\vi.lib\express\SignalExpress". Change the LabVIEW version to the one you actually are using. Do a directory listing and redirect the output to a file — dir > filename.txt. You can use any full path for the filename.txt. If you specify a simple name, it will end up in the current directory.
    Please post your project. Verify that you are using the version of LabVIEW you think you are by launching it before you start code generation.
    Thanks for your patience.
    Message Edited by DFGray on 08-28-2008 08:23 AM
    Message Edited by DFGray on 08-28-2008 08:24 AM
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • Push Mail item-not-found

    As of today I managed to work out a totally new error with push notifications. In my mail-log the following appears:
    Jan 19 15:01:57 mymachine push_notify[83]: error:
    +<iq id='10009' to='[email protected]/push_notify' type='error' from='pubsub.osxserver.example.com' xmlns='jabber:client'>+
    +<error type='cancel' code='404'>+
    +<item-not-found xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>+
    </error>
    +<pubsub xmlns='http://jabber.org/protocol/pubsub'>+
    +<publish node='/Public/IMAP/osxserver.example.com/portnum/Mailbox/F73DE618-64BA-4967-B51 C-7A989E672914'>+
    <item>
    +<plistfrag xmlns='plist-apple'/>+
    </item>
    </publish>
    </pubsub>
    </iq>
    So my machine tells me that an item was not found, but which one? It looks like I'm just a tiny step behind push....
    BTW I read a lot about DNS. Do I really need to enter pubsub.osxserver.example.com into my DNS? Right now only osxserver.example.com is entered. DNS is completely managed by the same machine.
    Regards,
    Thomas

    That should work okay, I would suggest you enable tracing and post a Trace of one of your requests and responses. That should better tell what's happening
    Cheers
    Glen

  • Tax code not appearing in Header data of MIRO

    Dear All,
    I have one query and it is as follows.
    I created one Input tax code A3 in transaction FTXP.
    When I went to transaction MIRO this tax code A3 is not appearing in header data of MIRO.
    Can you pls tell is there any other settings to be done to fullfill the above requirment.
    Thanks in advance
    Babu

    Hi
    Create  a tax code in FTXP
    Then assigen tax code to company code
    Maintain condition records FV11
    Try it out
    Regards,
    Raman

  • Miro line item not generated

    Dear All,
    I have facing one issue at the time posting in MIRO.
    I post one of migo doc in date 03/01/2010 , the entry is:( with same material )
    Post key   description  amt                               curr.( USD)
    89              Stk.RM -IMP                                     32100.00
    96              PL.VND.RM.IMP GR/IR                     32100.00
    40              Purchase RM-IMP                            32100.00
    50              Purchase offset.                             32100.00
    And Miro Posting on date 23/03/2010
    Post key   description  amt                               curr.( USD)
    31           xyz Vendor                                    32100.00
    86           PL.VND.RM.IMP GR/IR                    32100.oo
    89           Stk.RM -IMP                                    -
    40           Purchase RM-IMP                          -
    50           Purchase offset.                           -
    But when I post for another po in migo on date 03/01/2010
    Post key   description  amt                               curr.( USD)
    89              Stk.RM -IMP                                     76800.00
    96              PL.VND.RM.IMP GR/IR                     76800.00
    40              Purchase RM-IMP                            76800.00
    50              Purchase offset.                             76800.00
    and miro posting on date 19/02/2010
    Post key   description  amt                               curr.( USD)
    32            yz Vendor                                       76800.00
    86           PL.VND.RM.IMP GR/IR                      76800.00
    89           Stk.RM -IMP                                      Line item not generated
    40           Purchase RM-IMP                             Line item not generated
    50           Purchase offset.                              Line item not generated
    Can any one tell why line item not generated for miro posting .
    Regards
    Milind

    Hi,
    The extra line items will be generated when there are any exchange rate diffrences are there then only shows.
    Other wise it wont show those extra line items
    Please check group currency , global currency etc. for  your extra line items

  • TDS line item not generated at the time of down payment vide F-48

    Dear Friends,
    Uptill 2008 the system i.e. SAP ECC5 was properly generating tds line items at the time of making down payment.From Feb I,2009 suddenly noticed that no tds line items are generated at the time of  making down payment to vendors.Inspite of my hard efforts I am unable to crack this problem.
    Any suggestions/solutions is highly solicited.
    Best Regards
    Monoj
    Edited by: MONOJ SARKER on May 4, 2009 5:57 PM

    Hi Friends,
    Tax type along with tax codes  for invioce posting and only tax type for payment postings are updated in the vendor master.At the time of advance payment when the screen pops up for updating tax code at that point tax code for payment postings are updated.
    For your in formation I would like to say uptill 2008 there was no problem in withholding tax.The problem started in early 2009.The configuration which existed during 2008 remains unchanged.Its not clear why I am unable to generate TDS line item during advance payment .
    Regards
    Monoj

  • TDS line item not generated during down payment.

    Hi,
    TDS line item not generated during down payment to vendors. Advanced tax codes have been properly assigned to vendors.
    Kindly help.
    Thanks in advance...
    Regards,
    Sriram.

    Hi Sriram,
    1.First tell me when you are doing the advance payment tds codes are giving popup or not?
    2.Did you check the setting in below path
    Assign with holding tax types to company codes:
    SPRO>FI>FI GLOBAL>WTX>EWTX>Company code>assign with holding tax to company code.
    Regards
    Surya

  • Error message "Tax code V1 does not appear in any G/L account item"

    Hi,
    I am getting the error message FF753- Tax code V1 does not appear in any G/L account item when I post a subsequent credit via miro.
    It does not give the error with invoice or credit memo for the sames GL accounts.
    History:
    PO created
    Goods receipt
    Invoice posted and blocked as value greater than PO
    Subsequent credit put on to correct the values in price query - error appears
    I know if I go to FS02 and make the GL code * tax relevant it will remove the error but we dont want tax to go to this account as its a main inventory GL code. 
    Can anyone advise why it would appear on the subsequent credit but not on invoices or credits.
    Also is there something I can set up to remove this issue apart from making the GL code tax relevant - it must not need it if the other postings work ok.
    Thanks

    Doesnt matter that it works for credits and invoices with blank tax you still need to put * in GL code for subsequent credit etc postings

  • Tax code ZT does not appear in any G/L account item

    Hi Gurus
    Iam facing a proble while releasing the billing document to accounting. Following error is coming up
    'Tax code ZT does not appear in any G/L account item'.
    FTXP setting for the tax code appears find as it is tagged to the correct GL account, but somehow the posting is not happeing.
    Can you please help me out with this as Iam stuck and the testing has stopped.
    Thanks
    Ruchi

    Hello,
    please check the note 400766:
    a) Consistency checks                                                 
    In FI, the system checks whether there is a revenue line for each  tax line. In the reverse case, for each revenue line containing a certain tax indicator there must be a tax line with this indicator.                           
    If the first requirement is not met, the system issues error FF753. In many cases, you can solve the problem with Note 112609 
    by adjusting the level number in the pricing procedure in such a way that the system copies the tax indicators correctly into the 
    revenue lines.                                                   
    If the two tax conditions refer to one revenue condition, the requirement cannot be met if the taxes have different tax indicators. In this case, you must use the tax trigger condition in accordance with note 26646.    
    Best regards,
    Ivano.

  • Tax code P0 does not appear in any G/L line item

    Hi,
    I am using BAPI_ACC_DOCUMENT_POST to upload the AP/AR Journals. I have a scenario wherein for AP document type 'KA' both the line items are of vendor . One line item though has a special G/L indicator and a tax code to it.
    When i execute the program I am geting an error that "Tax code P0 does not appear in any G/L line item".
    Here in my case I do not have any G/L line items but both are vendor line items and one line item has a special G/L indicator.
    Could anyone help me in solving it.
    Thanks in advance.

    Hi,
    Check the long text of the message FF - 753 in SE93.
    It describes the cause of this error and the required customising and solution.
    Kindly check with your functional consultant for some inputs.
    He might be able to help you identify the error.
    Regards,
    Ankur Parab

  • LabVIEW could not generate code for the shared variable.You must open the VI in the project that contains the library where the shared variable resides

    HI
    When I put a network shared variable with fifo RT activated on my diagram, the arrow is broken.and I' ve got this message:
    ""LabVIEW could not generate code for the shared variable.You must open the VI in the project that contains the library where the shared variable resides""
    If I uncheck FIFO RT option for this variable the arrow isn't broken anymore.
    I 've no idea how to correct this weird error?
    Autodeploy is on, and I've check copy / delete in diagram in tool/options\diagram
    regards,
    james

    Hello,
    I don't reproduce this error.
    Could you send your VI?
    Regards
    VéroniqueD
    NI France

  • Deleting parallel currency not base currency in company code

    Hi Guys,
    I want to delete parallel currency not base currency in company code. We defined the new currency ZWP and our base currency is ZWD. I am able to delete through SPRO but in CO its saying we cannot change currency code again. Is there a way to go around the problem?
    Best regards,
    Stitch

    Dear:
              Check out currency assigned to the co code in OBY6.
             Regards

Maybe you are looking for

  • Safari 6.1.6 keeps crashing

    Hi, I have early 2011 Macbook Pro(10.7.5). My Safari only keeps on crashing. Below is the report for the same. My chrome do not crash like that. Why Safari is so vulnerable? Please help. Process:         WebProcess [3703] Path:            /System/Lib

  • Connect to two wireless networks simultaneously

    Here's the scenario: I would like to have my airport express connect to my stereo and I'd like to have my mac connect to that via air tunes while at the same time connecting to a time capsule or other wireless router for internet use and have them bo

  • Open Documents in transaction CV04N

    Dear Experts During opening Documents in DMS in transaction CV04N occured this message: The file C:\DOCUME1\dir\LOCALS1\Temp\file.t cannot be created. At the beginning of work with open Documents everything is ok, but after open few documents occured

  • How to lock a row by using 'for update'?

    how to lock a row by using 'for update'?

  • Oracle text (basic question about availability)

    Dear sirs, I want to confirm what I think to be true: Oracle text is standard/builit in component of Oracle 11g (enterprise edition). Anybody who is licensed to use Oracle 11g (enterprise edition) should be licensed to use Oracle text and have access