Code example for virtual list view control

I'm writing a client (C++) application to access an LDAP directory (that supports virtual lists), and I'm trying to make use of the virtual list view control to "page" my results. However, I'm having trouble getting the code to work correctly. Can anyone provide a C++ code example?
Thanks in advance.

I think I've found my problem with writing this code.
Unless I'm mistaken, the Netscape SDK for C appears to be incomplete. After an LDAP search operation, I believe there should be a way to parse the virtual list response control for a context id. Then, I would return this context id to the directory server in subsequent Virtual List View controls (which I'd send via LDAP search calls). However, the concept of context id in VLV search controls doesn't appear to exist in the Netscape SDK for C.

Similar Messages

  • Format for certain columns in list view control

    I have a list view control and I would like to format the alignment for certain columns. I heard that the only way you can do this is by formatting the cells in excel. I tried this with no success. Can someone please give me step by step instructions on how to achieve this. I am currently allowing Xcelsius to handle my formatting for money. Is it possible to have Xcelsius handle the money formatting and have excel handle the alignment  formatting. I am open to whatever works at this point. Also I am using Xcelsius 2008 (Build Number 12,2,1,66).
    Much Thx

    Hi,
       In list view control you can format the entire row only, not a certain column.
       Go to property>Appearance>Text Tab>select Header>Format selected text->select the format.
      For width change: Property> Layout Tab>check custom column width the click the icon and enter width in pixel.
    Regards,
    Senthil K

  • AMSerchControl and Virtual List View

    Hi, the "identity server developer's guide" states that the class com.iplanet.am.sdk.AMSearchControl can be used to customized search behoviour with "time limit and virtual list view".
    How can use virtual list view ? The javadoc doesn't contains any methods to do virtual list view.
    Thanx!

    The class is described here: http://docs.sun.com/source/817-7651/com/iplanet/am/sdk/AMSearchControl.html.
    You are right, there is nothing there to control VLV searches. That's a bug in the documentation. There is some code in Access Manager that does do VLV searches, but it isn't exposed through this interface.

  • I need code example for server act as client and vice versa

    Hi all,
    I want code example for performing both server and clients using RMI. I mean Server will act as client and client will act as server. So a single program will act as both client and server .
    Please give example, it will helpful to complete my project. I am struggling in this stage. Its like peer to peer action.
    Thanks & Regards
    R.Ragupathi

    1. The tutorial shows you how to do cleint/server.
    2. Search on the topic "callback" to see how cleint and server roles can be reversed.

  • Code example for ZXAFAU02

    i need a code example for user exit. EXIT_SAPLAFAR_002.

    *data: con_afameth_za like t090-afamet value 'ZA',
         con_afameth_zb like t090-afamet value 'ZB',
         con_afameth_zc like t090-afamet value 'ZC',
         con_afameth_zd like t090-afamet value 'ZD',
    DATA: CON_AFAMETH_ZA(2) VALUE 'ZA',
          CON_AFAMETH_ZB(2) VALUE 'ZB',
          CON_AFAMETH_ZC(2) VALUE 'ZC',
          CON_AFAMETH_ZD(2) VALUE 'ZD',
          L_AFABTR TYPE F.
    E_AKTIV = 'X'.
    E_AFABTR = 0.
    DATA: STRDATE(10) TYPE C ,
          START_PERIOD TYPE I .
    DATA: SUMDEPRE_PERIOD TYPE I ,
          BALDEPRE_PERIOD TYPE I .
    DATA: FYPLANDEPOD LIKE ANLC-NAFAP ,
          TRUEPLANDEPOD LIKE ANLC-NAFAP ,
          NETBOOKVALUE LIKE ANLC-KANSW ,
          APCVALUE LIKE ANLC-KANSW ,
          ACCMDEPR LIKE ANLC-KNAFA ,
          DEPMONTH LIKE ANLC-PSTBEG .
    TABLES: ANLC ,
            ANLA ,
            ANLB .
    DATA: FIRSTYEAR(4) TYPE C ,
          CURRENTYEAR(4) TYPE C .
    DATA: ACQYEAR(4) TYPE C ,
          ACQMONTH LIKE ANLA-ZUPER .
    CURRENTYEAR = SY-DATUM+0(4) .
    LOOP AT T_ANLC WHERE AFABE = I_AFABE .
    **Deprecation amont is : apc * n / (n+1) / all period .
    **At first phase of changeover .
    CLEAR: STRDATE , START_PERIOD , CURRENTYEAR ,
           FYPLANDEPOD , TRUEPLANDEPOD , NETBOOKVALUE .
    CLEAR: ANLC , APCVALUE .
         STRDATE = I_ANLB-AFABG .
         START_PERIOD = STRDATE+4(2) .
         FIRSTYEAR = STRDATE+0(4) .
         CURRENTYEAR = SY-DATUM+0(4) .
         SELECT SINGLE * FROM ANLC WHERE BUKRS = T_ANLC-BUKRS
                               AND ANLN1 = T_ANLC-ANLN1
                               AND ANLN2 = T_ANLC-ANLN2 .
         IF SY-SUBRC = 0 .
            APCVALUE =  ANLC-KANSW + ANLC-ANSWL .
            ACCMDEPR =  ANLC-KNAFA + ANLC-NAFAG .
            IF FIRSTYEAR = CURRENTYEAR .
               DEPMONTH =  ANLC-PSTEND - ANLC-PSTBEG .
            ELSE .
               DEPMONTH = ANLC-PSTEND - ANLC-PSTBEG + 1 .
            ENDIF.
         ENDIF .
        IF APCVALUE GT 0 .
         FYPLANDEPOD = ( APCVALUE - I_ANLB-SCHRW ) /
                     ( I_ANLB-NDJAR * 12 + I_ANLB-NDPER  ) * DEPMONTH .
           E_AFABTR = FYPLANDEPOD .
        ENDIF.
       EXIT.
    ENDLOOP.

  • C# Code Example for Configuring SQL 2005 Reporting Services?

    I have found the MSDN articles describing the classes, public methods, etc. for configuring SQL Server 2005 Reporting Services via WMI. I need to initially configure them and just do this:
    - Report Server Virtual Directory
    - Windows Service Identity
    - Web Service Identity
    - Database Setup
    - Email Settings
    - Execution Account
    Is there a C# code example that already exists putting together all of this? I didn't want to reinvent the wheel if I didn't need to.
    -Ed

    Jin,
    Thanks so much! This is great! Your work is awesome!
    I have a couple of issues that came up...
    1) CreateVirtualDirectory.vbs creates the virtual directory for the Report Server just fine. Now how do I distinguish a script to create the virtual directory for the Report Manager?
    2) I decided to go ahead and use what you did for scripting CreateApplicationPool (using http://msdn.microsoft.com/en-us/library/ms155349(SQL.90).aspx). I found the syntax is wrong here when I kept getting an error, so I put PowerShell on the server and pulled the following info:
    Name       : CreateApplicationPool
    MemberType : Method
    Definition : System.Management.ManagementBaseObject CreateApplicationPool(System.String Name, System.Boolean UseBuiltIn
                 Account, System.String Account, System.String Password)
    However, I'd like to use "NT Authority\NetworkService" or "Network Service" as the account (which is an option for the Builtin accounts when I us RSConfigTool.exe). This is the syntax I used:
    objInParam.Properties_.Item(
    "Name") = "ReportServer"
    objInParam.Properties_.Item("UseBuiltInAccount") = true
    objInParam.Properties_.Item("Account") = "NT Authority\NetworkService"
    objInParam.Properties_.Item("Password") = ""
    But I always get an error with a negative number for the HRESULT.
    Any ideas?-Ed

  • Need code example for dynamicly changing UI Propertey

    Hello,
    Can someone show me a simple code example that does the following:
    A view which contains a button and a label.
    Each press on the button changes the color (or other visible property) of the label.
    But note: Don't bind the property to the Context for that, I want to do it through the doModifyView method.

    hi Roy Cohen,
    I think u r not looking for the visibility property they have mentioned.
    I think u r looking for a procedure to change the way the element looks..is it..
    The problem is if u want any change to be visible when the button is pressed u can only change the length or the width.There is no option to change the semantic color or whatever.
    To change the size u can try this code
    IWDInputField in = (IWDInputField)view.getElement("<element name>");
    in.setWidth(some value which is set when the button is pressed);
    Is this wat u r looking for?
    Jus mention it if there is something  else.
    Regards
    Bharathwaj

  • Custom layout for product list view

    Hi all,
    Can I create a template .tpl that is assigned only to either the product detail or list view?......or has any created a workaround for this below?
    I want to display a list of products in a particular category, with a sub-menu down the left hand side of the page, but the detail view of the individual product to be across the full page width. I have several categories each with it's own sub-menu ( for the side).
    I currently have a few templates, containing the various side menus, formatted to display as I need, but of course, this layout gets assigned also to the detail view, which is what I don't want.
    Would be great to see other ideas.
    Thanks in advance. DC

    Thanks Liam,
    Do you have any info on when this might be happening? Hoping to have this site completed in 2 weeks. Best workaround option atm is to have separate pages ( with their custom side menus) with individually tagged products displayed. The detail view for the product can then have the full width view. - Bit of a long winded way around, but I don't see any other option if this is the desired result.

  • Are there any good code examples for displaying preview images in the storefront?

    I can gather other info using folio.xxx, but can not find any good examples to use for preview images.  Tried folio.getPreviewImage() with no success.  Oh, I should mention it is version 2.  Plenty of examples for version 1.
    Perhaps if I get a little more specific.
    I am calling up the folios via:
           adobeDPS.libraryService.folioMap.addedSignal.add(function(folios) {
                for (var i = 0; i < folios.length; i++) {
                    addFolio(folios[i]);
            }, this);
    This eventually works into a function where I am gathering and displaying folio data:
         var productId = folio.productId;
        var html  = "<div id='" + productId + "'>";
            html +=     "<a href='#'><img class='shadow' width='120' src='' border=0 /></a>";
            html +=     "<br /><span class='bold'>" + folio.title + "</span>";
            html += "</div>";
        this.$el = $(html);
    folio.title works fine to pull up the title, but I can no longer use folio.getPreviewURL in v2.  What code should I be using to set the src to the preview image?
    Thanks

    Have you looked at the default implementations of the library?
    In FolioItemView's render function, there is a function(follow the nested functions!):
    setTimeout(function(){ scope.loadPreviewImage() }, 100);
    It references this function (this doesn't copy well):
    loadPreviewImage: function() {
    if (this.el.parentElement) {
    var transaction = this.folio.getPreviewImage(135, 180, true);
    transaction.completedSignal.addOnce(this.getPreviewImageHandler, this);
    Going deeper, into the getPreviewImageHandler function is where you see the url value..
    if (transaction.state == adobeDPS.transactionManager.transactionStates.FINISHED && transaction.previewImageURL != null) {
                                  this.$el.find(".folio-thumb").attr("src", transaction.previewImageURL);
    Within the example is also code for supplying a preview when the Adobe API is not available:
    (Within the render function)
    var json = this.model.toJSON();
    $folioThumb.attr("src", json.libraryPreviewUrl);
    If you're making any changes to where the preview is displayed, you can just swap out the class ".folio-thumb" to whatever the class (or id) is of the element you're wanting to render the preview in.

  • Examples for RAS/BOE/Viewer SDK for Business Objects XI 3.1 (12.0)

    Hi, I am a newbie in Business Objects.
    I am trying to find some examples on how to view reports on separate Application server (JBoss) and retrieve reports from Business Objects server. Us I understood from forums/guides I need to use Viewer SDK or (BOE/RAS SDK).
    However I cannot find any examples for above mentioned SDKs to start from something.
    OIne of the places I came across is here: http://devlibrary.businessobjects.com/businessobjectsxi/en/en/Viewers_SDK/default.htm indeed it is only for v11, as well as others places I came across.
    Can anyone guide me with this?
    Thank you!

    Hello.
    Java samples can be found at the following location:
    http://wiki.sdn.sap.com/wiki/display/BOBJ/BusinessObjectsSDKSampleApplications
    Specifically, Business Objects Enterprise (including the Viewers SDK) samples can be found at the following location:
    http://wiki.sdn.sap.com/wiki/display/BOBJ/JavaBusinessObjectsEnterpriseSDKSamples
    RAS SDK samples can be found at the following location:
    http://wiki.sdn.sap.com/wiki/display/BOBJ/JavaRASSDK+Samples
    Hope this helps.
    Regards.
    - Robert

  • Need code example for LDAP update

    Hello,
    I know how to preform an LDAP search using the package javax.naming.directory.DirContext.
    Can someone show me how do I do an update to a certain record at the LDAP ?
    Can this update be with the search already (such as in SQL) or should I search the relevant item first and than update it? In any case, a code example will be very helpful here...

    Roy
    Personally I would use the UME APIs to update the user instead of connecting to the LDAP directly. There are many reason for this
    1) The UME will work if you decide to change your user store
    2) Connection pooling is already taken care of
    3) Its using standard product functionality instead
    I hope this helps (and sways) your decision
    Darrell

  • Is there any code example for "Web Survey"?

    Hi buddies,
    In the standard SRM Web Survey scenario, the experts submit questionnaire online. But our custmer want it offline.
    So we use offline Adobe Forms, the problem is after we get the data by uploading the offline PDF, how we put the data into the standard Web Survey. Is there any function moudle , BAPI, class for this purpose?  Is there any code example?
    Thanks!
    Hao

    I have tried to write some report using pch logical database and successed.
    在报表自身中,从 GET OBJEC 点,作为规定,数据库驱动程序将文件 PLOG 中的选定的选择恢复为规定的并检查权限。
    指令 TABLES 中结构声明是前提。若除了结构 OBJEC,还定义结构 GDSTR,则将结构评估的参数添加到标准选择屏幕。这可以通过评估路径进行结构评估。
    REPORT  ZPHC_TEST.
    TABLES : objec.
    infotypes: 1000.
    INITIALIZATION.
    START-OF-SELECTION.
    get objec.
    WRITE : p1000-objid.
    end-of-SELECTION.

  • Code example for "chain locking" ?

    Guys, could anyone give a code example of chain locking with reasoning why we could need this technique?
    "Chain locking" mentioned here .
    Thanks.

    I suggest you search for examples using google, the examples should make it clear why you would use it.

  • How to change 'Number of items to display' for a list view programmactially?

    in CSOM would be perfect.

    I figured it out. var context = web.Context;
    var list = web.Lists.GetByTitle(listTitle);
    var view = list.Views.GetByTitle(viewTitle);
    view.RowLimit = rowLimit;
    view.Update();
    context.ExecuteQuery();

  • Code Example for Scaling Images

    I have pictures captured from the iPhone Camera which I would like to scale:
    1. to Thumbnail Size
    2. to Medium size 200 x 200 pixels.
    Can anyone help me with a code example to do this?

    Let me answer my own Question:
    see
    http://discussions.apple.com/message.jspa?messageID=7276709#7276709

Maybe you are looking for

  • ORA-01034: ORACLE not available ORA-27101: shared memory realm does not exi

    Hi all, suddenly our oracle 10g database stopped working. When we tried export the database following was the output C:\Documents and Settings\Administrator>EXP PMIS/PMIS FILE=C:\PMIS.DMP Export: Release 10.2.0.1.0 - Production on Wed Mar 25 16:15:08

  • HT1430 what is the default passcode for an iphone4s?

    what is the default passcode for an iphone4s. Mine has been restored to factory settings and my old pass code doesnt work

  • How normally Supplier VAT (input tax) handled in Accounting point of view?

    Dear Experts, We have a scenario for one of our Group companies to handle Tax entries. The mateials imported have to be charged with VAT 10% and to be paid to Government not to vendors. Is it possible to handle it thru tax procedure? Thru PO pricing

  • [CS3 MAC] XCode preprocessing

    I am working with more plugins which have the same preprocessor definitions. I can set it in project windows in preprocessing tab in Preprocessor Macros for each project but I have a quite lot of those macros so it would be nice to have them just in

  • XRPCC Server Fails to Generate

    Hi, I have new java web service developer pack and tried to run the "Hello" program.I am getting exception compile-server: [echo] Compiling the server-side source code.... [javac] Compiling 2 source files to D:\jwsdp-1_0\docs\tutorial\examples\jaxr p