Use(getItemsRequest)cannot response the full list of library

I want to get the items' total count of library. But some library can count the full list, some library just only count one record. I have no idea what is the problem. Here is the coding.
WebReference.getItemsRequest req = new WebReference.getItemsRequest();
WebReference.getItemsResponse resp;
req.container = ((LibItem)listLibraries.SelectedItem).ID;
libname = ((LibItem)listLibraries.SelectedItem).Name;
domain = ((LibItem)listLibraries.SelectedItem).Domain;
postOffice = ((LibItem)listLibraries.SelectedItem).PostOffice;
resp = ws.getItemsRequest(req);
if (0 == resp.status.code)
if (null != resp.items)
listBoxFiles.Items.Clear();
foreach (WebReference.Document itemobj in resp.items)
FileItem tmpinfo = new FileItem();
tmpinfo.Name = itemobj.name;
tmpinfo.ID = itemobj.id;
tmpinfo.Version = itemobj.version;
tmpinfo.Lib_DisplayName = itemobj.library.displayName;
tmpinfo.Lib_email = itemobj.library.email;
tmpinfo.Subject = itemobj.subject;
tmpinfo.Author_DisplayName = itemobj.author.displayName;
tmpinfo.Author_email = itemobj.author.email;
tmpinfo.Created = itemobj.created;
tmpinfo.currentVersion = itemobj.currentVersion;
tmpinfo.documentNumber = itemobj.documentNumber;
tmpinfo.documentTypeName = itemobj.documentTypeName;
tmpinfo.officialVersion = itemobj.officialVersion;
tmpinfo.RetrievedDate = itemobj.modified;
listBoxFiles.Items.Add(tmpinfo);
count++;
LogMessage("GetLibItems success" + " count=" + count);
Anyone would be help me to solve this problem?
Thank you

Preston,
Thank you for taking the time to respond. I have tried the cursor calls. But it still not work.
I have seen some of thread about cursor. I haven't use positionCursorRequest and position element of readCursorRequest.
It still return null to me. The following is my coding.
Jimmy
WebReference.createCursorRequest createCursorReq = new WebReference.createCursorRequest();
WebReference.createCursorResponse createCursorResp;
WebReference.readCursorRequest readCursorReq = new WebReference.readCursorRequest();
WebReference.readCursorResponse readCursorResp;
WebReference.destroyCursorRequest destroyCursorReq = new WebReference.destroyCursorRequest();
WebReference.destroyCursorResponse destroyCursorResp;
WebReference.getItemsRequest getItemsReq = new WebReference.getItemsRequest();
WebReference.getItemsResponse getItemsResp;
createCursorReq.container = ((LibItem)listLibraries.SelectedItem).ID;
createCursorResp = ws.createCursorRequest(createCursorReq);
if (createCursorResp.status.code == 0 || createCursorResp.cursorSpecified == true)
readCursorReq.container = ((LibItem)listLibraries.SelectedItem).ID;
readCursorReq.cursor = createCursorResp.cursor;
readCursorReq.forward = true;
readCursorResp = ws.readCursorRequest(readCursorReq);
if ((readCursorResp.status.code == 0)/*&& (readCursorResp.items.item != null)*/)
if (readCursorResp.items != null)
int itemListCount = readCursorResp.items.count;
long itemLength = readCursorResp.items.item.LongLength;
ws.Timeout = 10000000;
LogMessage("GetLibItems success" + " count=" + itemListCount);
LogMessage("Items Length" + " count=" + itemListCount);
btnBrowse.Enabled = true;
else
LogMessage("Read Cursor Items null.");
btnBrowse.Enabled = true;
else
LogMessage("Read Cursor failed.");
btnBrowse.Enabled = true;
if (createCursorResp.cursorSpecified == true)
destroyCursorReq.cursor = createCursorResp.cursor;
destroyCursorResp = ws.destroyCursorRequest(destroyCursorReq);
if (destroyCursorResp.status.code != 0)
LogMessage("Destroy Cursor failed.");
btnBrowse.Enabled = true;
else
LogMessage("Create Cursor failed.");
btnBrowse.Enabled = true;
The result was returned LogMessage("Read Cursor Items null.");

Similar Messages

  • Mail landscape view in ipad, cannot suppress the column listing

    I want to use landscape view To read email...but I cannot suppress the column listing my messages. In portrait that column is missing so I can see whole message.
    What do I do?

    There is nothing that you can do. That is a feature of landscape viewing of mail.
    Glor

  • I cannot disable the full keyboard  navigation

    Hello I have quite a problem.
    As it says above, I cannot disable the full keyboard navigation option, whenever I try to, it re-activates itself in the preferences, even if I just change tabs and return within the preferences.
    Furthermore, the keys seem to activate oddly, as I do not know of any shortcuts bound to the S key (JUST the s key), which commonly causes Itunes to skip forward a track in whatever playlist I am playing.
    I have tried changing the other preferences, and I can change them with no difficulties, it is just the Keyboard navigation that is giving me problems.
    Any help would be appreciated.
    Thank you in advance.

    On second thought... The help article cor-el linked mentions that Firefox may prompt you every time if the file is sent with the disposition:attachment header, i.e., forced save. You can bypass that problem (change disposition:attachment to disposition:inline) using the Inline Disposition extension. It has been around for a while, but I haven't tried it myself: [https://addons.mozilla.org/en-US/firefox/addon/inlinedisposition/]. Maybe that's what you need for Gmail.

  • I cannot see the Source List in iTunes. How do I get it back? Thanks!

    I cannot see the Source List in iTunes. How do I get it back? I am trying to eject my ipod classic, and there is no option to do so, because I cannot see the ipod, let alone the source list in itunes. I'm also unable to restore my ipod, and I get a message saying it is corrupt,and now I can't even eject it! What do I do?!? Thanks!

    Hello twangchick,
    Thank you for contributing to the Apple Support Communities.
    You can use the steps in this article to view the device list in iTunes and eject your iPod. The steps are slightly different for the different version of iTunes:
    Locate and view your connected iPhone, iPad or iPod touch in iTunes - Apple Support
    I know it can be frustrating to have a device that isn't working as it should, and this link may also help with restoring your iPod classic:
    Restoring iPod to factory settings - Apple Support
    If your iPod can't be restored normally, try placing it into Disk Mode. See the instructions under "iPod devices with a Click Wheel" in this article:
    Putting iPod into Disk Mode - Apple Support
    Sincerely,
    Jeremy

  • While back i purchased some music videos , i see them on my purchases but i cannot see the full videos why??? only like 30seconds

    Hello, while back I purchased some music videos , I see them on my purchases but I cannot see the full videos why??? only like 30seconds.

    You have just experienced what Apple and ITunes is
    designed to do. Prevent you from sharing purchased
    music from ITunes. That's the way it is suppose to
    work. Now, do your purchased songs play using ITunes.
    Play them, see if you get any warning. Next reload
    the songs again on your IPOD. Before disconnecting,
    locate the songs on your IPOD using ITunes and
    attempt to play them. Do they play. If they do you
    can properly disconnect your IPOD.
    Yes, they do play in iTunes. (And just in case you don't know, I am on my home computer where I originally set up my iPod.) When I hook up my iPod to my computer the songs are there on my ipod, while veiwing it on iTunes, and they play, they just won't play on my iPod. And no, I don;t get an authorization window that pops up when I play the song/video, they play automatically

  • Where does NI hide the full list of bug fixes? and why is it hidden from users?

    So I get an enticing email begging me to try the august 2009 release of LabVIEW. Ok. I'm twitching with anticipation. I'd like to know if several specific bugs are fixed in a new release of a specific module, however. Otherwise I'd prefer to install it some other time when I'm not busy writing dlls to compensate for the bugs that I hope are now fixed. I've been clicking in circles on the NI website trying to find complete information regarding changes and as is entirely far too typical of NI, I only have access to an anemic, watered down version of what should be proper documentation.
    "LabVIEW Readme—Use this file to learn
    important last-minute information about LabVIEW, including installation
    and upgrade issues, compatibility issues, a partial list of bugs fixed
    in the current version of LabVIEW... bla bla bla"
    Where is the full list of bug fixes? I don't care if it isn't spellchecked or if it's sloppy; I just want the information. The readme you provide for the specific module I'm interested in is ridiculously small. I know darned well you must have changed more than what is listed. So what secret vault do I have to burgle to find the full list of bug fixes? Am I just missing an obvious hyperlink?
    - mushroomed
    Message Edited by Root Canal on 08-11-2009 11:29 AM
    global variables make robots angry

    Root Canal wrote:
    Where is the full list of bug fixes? ...
    They are locked-up in the Ivory Tower.
    I have been a LabVIEW Champion for about four years and even after signing NDA's I still can't see the full list.
    Seruously, the full list includes probably millions of bugs that NI finds internally before you and I ever see it.
    The best way to handle your situation is to track the CAR's for your bugs. You can call NI support with the CAR number and they can tell you if the bug was fixed and in which version you will find the fix.
    If it has not been fixed you can contact you rlocal NI rep and ask them to look into it for you. They may be able to tell you in which release the fix is scheduled and bump up the priority of the fix if you make a good arguement.
    Just trying to help,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • I'm watching NFL gamepass on Windows Google Chrome. The picture used to give me the full picture but

    I'm watching NFL gamepass on Windows Google Chrome. The site used to give me the full picture but now gives me only a partial picture on both small and full screen modes and I cannot get the full game. Dont know what I changed and I dont see any settings that allow me to do anything. Please help

    And that site uses Shockwave Player, not Flash Player?

  • How can I use aperture after receiving the full adobe suite? It won't allow me to use it.

    How can I use aperture after receiving the full adobe suite? It won't allow me to use it. I receive a dialogue box which states previews are not allowed in  aperture and the application is shut down.

    Aperture is Apples version of Lightroom. This has nothing to do with Adobe. Ask on a Apple forum. You won't find many people here using this program.
    Mylenium

  • How to enable the full list of developer options on A806?

    How to enable the full list of developer options
    Moderator note:Moved from http://forums.lenovo.com/t5/Lenovo-Android-based-Tablets/No-Animation-speed-options/td-p/1359241
    Edited & created a new thread.

    -Go to menu, settings,
    -about phone
    -scroll to the bottom and find "build number"
    -tap it 7 times (upon completion, it will say that you're a developer)
    -the menu is now near the bottom of the main settings menu (just above about phone)

  • I cant see the full list in apple tv.i see only setting

    i cant see the full list in apple tv.i see only setting

    Have you unpowered it for a minute or so and restarted?

  • Where can I get the full list of features and details of v28

    Where can I get the full list of features and details of v28, I searched alot but could not find the official list of features.

    try this:
    http://helpx.adobe.com/digital-publishing-suite/help/whats-new-release.html

  • I cannot view the full page when i open my book, how can this be fixed?

    I downloaded some ebooks and i have them as e-pub files. However when i try to open them, i cannot view the full pages. There is also no zooming options for me to be able to do that.

    This forum is for eMac computers which were built between 2002 and 2005. What do you have?
    Choose your forum from this page.
    https://discussions.apple.com/index.jspa?

  • Not able to update any apps from new apple id.. Old id im not using anymore., cannot access the old one

    Not able to update any apps from new apple id.. Old id im not using anymore., cannot access the old one.. But during update time asking for same old password of old apple id

    If you change your Apple ID, all the apps you purchased with the previous ID will no longer updatable for you and this problem will continue. You see your old Apple ID because you are likely still using some of the apps purchased on that ID.

  • What does this mean? ... System extension cannot be used ... The system extension "/System/Library/Extensions/IOFireWireWDHID.kext" was installed improperly and cannot be used. Please try reinstalling it, or contact the product's vendor for an update.

    I get this message often when updating things. I have told Small Dog Computer where I buy my stuff, and they didn't have an answer. Thanks in advance.
    What does this mean? ... System extension cannot be used ... The system extension "/System/Library/Extensions/IOFireWireWDHID.kext" was installed improperly and cannot be used. Please try reinstalling it, or contact the product's vendor for an update.

    Interesting ... thank you! Actually I had that external drive, Western Digital, a while back on my second last? or third last? laptop ... the external drive died with a slew of pictures I had carefully uploaded to it  :-(
    I won't worry about it anymore  :-)
    sorry you got only 5 points, can't figure how to give you 10 points.

  • HT201301 I haas this app b4 resetting my phone. I retrieved the app but I cannot get the full pro version again. I need to know how to get the full pro version back sobi can get started re downloading my playlist please

    I downloaded a music download app. I had to reset my phone  I retrieved the app but cannot retrieve the full version I had already purchased. The pro version. How do I get the pro version back? I've tried everything

    Downloading past purchases from the App Store, iBookstore, and iTunes Store

Maybe you are looking for