Liquid Sharing - Poplets List done, but correct syntax for specific poplet?

Hi...I'm just starting to build a site using Liquid and it would be great to see code snippets for how others are solving particular problems. Hopefully the community is up for sharing.
I've worked out how to create a list of poplet images:
<ul>
{% for poplet in poplets %}
<li><img src="{{poplet.path}}?Action=thumbnail&amp;Width=1200" alt="{{custom4}} {{name}}"/></li>
{%endfor%}
</ul>
But can't figure out how to get a list/array of specific poplets (so the product list shows poplet 1, then poplet 2 on hover). I'm seeing hints at Liquid for Designers · Shopify/liquid Wiki · GitHub but don't know whether the Shopify Liquid is exactly the same as BC Liquid, either way I can't figure it.
If anyone can share, it would be much appreciated.
Thanks
Paul

Hi Mihai,
Thanks for taking the time to propose a workaround. I've followed your code, but it's not working for me...I don't know if that's my code, or a BC rendering issue.
The overall shop layout is now:
<div class="container catalogue-description">{tag_description}</div>
<div class="container">
{module_data resource="catalogs" version="v3" subresource="products" resourceId="{{this.globals.get.CatalogueID}}" template="/custom-templates/product-list.tpl"}
</div>
And the custom product-list.tpl is as below:
{% for item in items %}
{{item.product | json}} 
<div class="four columns box center product-list">
<a class="product-list-image" href="{tag_itemurl_nolink}">
{% assign ppl = poplets | map: 'path' | join: ", " | split: ","%}
<img src="{{ppl[0]}}?Action=thumbnail&amp;Width=600&amp;Height=900&amp;algorithm=fill_proporti onal" alt="{{custom4}} {{name}}"/>
<img src="{{ppl[1]}}?Action=thumbnail&amp;Width=600&amp;Height=900&amp;algorithm=fill_proporti onal" alt="{{custom4}} {{name}}"/>
</a>
<h4>{{custom4}}</h4>
<h3>{{item.product.name}}</h3>
<p>€{{item.product.salePrice}}</p>
</div>
{% endfor %}
But it's not rendering, or looping. Have tried with {{item.product}} and {{item.product | json}}, plus removing all the liquid image code, but still not working for me.  - Women | Shop Sass and Bide, SILENT Damir Doma, McQ Alexander McQueen, MM6 Maison Martin Margiela | Denim, Dresses, Shoes…
It would be great if Liam can get poplets exposed to the product list view...opens up lots of options for e-commerce layouts. But meanwhile would appreciate any pointers to get the workaround rendering.
Thanks again.
Paul

Similar Messages

  • The correct syntax for a recursive chmod command in Terminal

    I need to set recursive permissions on an external HDD to '777' or 'all read&write'.
    I have tried all of the following commands in Terminal:
    sudo chmod 777 -r /Volumes/...
    sudo chmod -r 777 /Volumes/...
    sudo chmod a+rw -r /Volumes/...
    sudo chmod -r a+rw /Volumes/...
    ...all of which being back a 'no such file or directory' error, e.g.
    sudo chmod 777 -r /Volumes/232Gb
    chmod: -r: No such file or directory
    Can anyone confirm the correct syntax for this command?
    Thanks in advance...
    Message was edited by: ChippyDeluxe

    If there were a solution that didn't involve using Terminal, I would prefer that.
    The reason I ask is, since my old iMac died and I connected my iMac's external HDD to my MacBook, thousands of folders on my external HDD have 'stop signs' on them and require me to go to
    Get Info -> Sharing & Permissions
    ...and add my MacBook username and set the privilege as "read and write". A bigger problem is, no backup software I've tried will back up this external HDD onto another external HDD any more, so I no longer have an up-to-date backup, which is very worrying.
    I am looking for a way of fixing this, and the chmod command appears to be the answer.
    Ideally, I don't want any permission restrictions on my external HDD at all, so I can connect it to any machine without problems.

  • Can't figure out the correct syntax for this select statement

    Hello,
    The following statement works great and gives the desired results:
    prompt
    prompt Using WITH t
    prompt
    with t as
       select a.proj_id,
              a.proj_start,
              a.proj_end,
              case when (
                         select min(a.proj_start)
                           from v b
                          where (a.proj_start  = b.proj_end)
                            and (a.proj_id    != b.proj_id)
                        is not null then 0 else 1
              end as flag
         from v a
        order by a.proj_start
    select proj_id,
           proj_start,
           proj_end,
           flag,
           -- the following select statement is what I am having a hard time
           -- "duplicating" without using the WITH clause
            select sum(t2.flag)
              from t t2
             where t2.proj_end <= t.proj_end
           ) s
      from t;As an academic exercise I wanted to rewrite the above statement without using the WITH clause, I tried this (among dozens of other tries - I've hit a mental block and can't figure it out):
    prompt
    prompt without with
    prompt
    select c.proj_id,
           c.proj_start,
           c.proj_end,
           c.flag,
           -- This is what I've tried as the equivalent statement but, it is
           -- syntactically incorrect.  What's the correct syntax for what this
           -- statement is intended ?
            select sum(t2.flag)
              from c t2
             where t2.proj_end <= c.proj_end
           ) as proj_grp
      from (
            select a.proj_id,
                   a.proj_start,
                   a.proj_end,
                   case when (
                              select min(a.proj_start)
                                from v b
                               where (a.proj_start  = b.proj_end)
                                 and (a.proj_id    != b.proj_id)
                             is not null then 0 else 1
                   end as flag
              from v a
             order by a.proj_start
           ) c;Thank you for helping, much appreciated.
    John.
    PS: The DDL for the table v used by the above statements is:
    drop table v;
    create table v (
    proj_id         number,
    proj_start      date,
    proj_end        date
    insert into v values
           ( 1, to_date('01-JAN-2005', 'dd-mon-yyyy'),
                to_date('02-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           ( 2, to_date('02-JAN-2005', 'dd-mon-yyyy'),
                to_date('03-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           ( 3, to_date('03-JAN-2005', 'dd-mon-yyyy'),
                to_date('04-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           ( 4, to_date('04-JAN-2005', 'dd-mon-yyyy'),
                to_date('05-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           ( 5, to_date('06-JAN-2005', 'dd-mon-yyyy'),
                to_date('07-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           ( 6, to_date('16-JAN-2005', 'dd-mon-yyyy'),
                to_date('17-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           ( 7, to_date('17-JAN-2005', 'dd-mon-yyyy'),
                to_date('18-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           ( 8, to_date('18-JAN-2005', 'dd-mon-yyyy'),
                to_date('19-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           ( 9, to_date('19-JAN-2005', 'dd-mon-yyyy'),
                to_date('20-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           (10, to_date('21-JAN-2005', 'dd-mon-yyyy'),
                to_date('22-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           (11, to_date('26-JAN-2005', 'dd-mon-yyyy'),
                to_date('27-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           (12, to_date('27-JAN-2005', 'dd-mon-yyyy'),
                to_date('28-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           (13, to_date('28-JAN-2005', 'dd-mon-yyyy'),
                to_date('29-JAN-2005', 'dd-mon-yyyy'));
    insert into v values
           (14, to_date('29-JAN-2005', 'dd-mon-yyyy'),
                to_date('30-JAN-2005', 'dd-mon-yyyy'));

    Hi, John,
    Not that you asked, but as you proabably know, analytic functions are much better at doing this kind of thing.
    You may be amazed (as I continually am) by how simple and efficient these queries can be.
    For example:
    WITH     got_grp          AS
         SELECT     proj_id, proj_start, proj_end
         ,     proj_end - SUM (proj_end - proj_start) OVER (ORDER BY  proj_start)     AS grp
         FROM     v
    SELECT       ROW_NUMBER () OVER (ORDER BY grp)     AS proj_grp
    ,       MIN (proj_start)                         AS proj_start
    ,       MAX (proj_end)               AS proj_end
    FROM       got_grp
    GROUP BY  grp
    ORDER BY  proj_start
    ;Produces the results you want:
      PROJ_GRP PROJ_START  PROJ_END
             1 01-Jan-2005 05-Jan-2005
             2 06-Jan-2005 07-Jan-2005
             3 16-Jan-2005 20-Jan-2005
             4 21-Jan-2005 22-Jan-2005
             5 26-Jan-2005 30-Jan-2005This is problem is an example of Neighbor-Defined Groups . You want to GROUP BY something that has 5 distinct values, to get the 5 rows above, but there's nothing in the table itself that tells you to which group each row belongs. The groups are not defined by any column in hte table, but by relationships between rows. In this case, a row is in the same group as its neighbor (the row immediatly before or after it when sorted by proj_start or proj_end) if proj_end of the earlier row is the same as proj_start of the later row. That is, there is nothing about 03-Jan-2005 that says the row with proj_id=2 is in the first group, or even that it is in the same group with its neighbor, the row with proj_id=3. Only the relation between those rows, the fact that the earlier row has end_date=03-Jan-2005 and the later row has start_date=03-Jan-2003, that says these neighbors belong to the same group.
    You're figuring out when a new group starts, and then counting how many groups have already started to see to which group each row belongs. That's a prefectly natural procedural way of approaching the problem. But SQL is not a procedural language, and sometimes another approach is much more efficient. In this case, as in many others, a Constant Difference defines the groups. The difference between proj_end (or proj_start, it doesn't matter in this case) and the total duratiojn of the rows up to that date determines a group. The actual value of that difference means nothing to you or anybody else, so I used ROW_NUMBER in the query above to map those distinct values into consecutive integers 1, 2, 3, ... which are a much simpler way to identify the groups.
    Note that the query above only requires one pass through the table, and only requires one sub-query. It does not need a WITH clause; you could easily make got_grp an in-line view.
    If you used analytic functions (LEAD or LAG) to compute flag, and then to compute proj_grp (COUNT or SUM), you would need two sub-queries, one for each analytic function, but you would still only need one pass through the table. Also, those sub-queries could be in-line views; yiou would not need to use a WITH clause.

  • Cannot find correct syntax for paint()

    Hi everyone,
    I am supposed to create an applet that has a textfield component and a button comp. the user is prompted to type in a drawing command press the "go" button and the program executes. here is an exampls of what the text should read like..FD 50, turn SW, BK 50, colour red.
    The FD is forward draw and the BK is backward. my problem is I am not using the correct syntax conventions when creating xnew and ynew coordinates. this might not be the best algorithm either, but with limited examples and resources it was the best I could come up with, any other suggestions would be much appreciated.
    Here is the problem code.
    public void init()
                   extraPanel.setBackground (Color.blue);
                   extraPanel.setLayout(new FlowLayout());//resizable panel
                   extraPanel.setBackground(Color.red);
                   extraPanel.add(button); button.addActionListener(this);
                   extraPanel.add(Mylabel);
                   Mylabel.setBackground(Color.white);
                   extraPanel.add(tf);
                   tf.setBackground(Color.green);
                   add(extraPanel);
                    //create a method to use the cursor to draw
                    public void paint(Graphics page)
                       //declare the coordinates and variables
                       int x;
                       int y;
                       int xcurrent;
                       int ycurrent;
                       int xnew;
                       int ynew;
                       String turn;
                       boolean FD;
                       String sData = new String();
                       //create an array object of commands
                       //create a bufferedReader to read in data
                       BufferedReader stdin = new BufferedReader(new
                                              InputStreamReader(System.in));
                       //create an object of commands[]and set its size
                       comm = new Commands[20];                      
                       //create a String Tokenizer to read the data in from the tf
                       StringTokenizer tok = new StringTokenizer(sData, ",");
                       //read the data in
                       for(int i = 0; i < comm.length; i++)
                          sData = stdin.readLine();
                          comm[i] = new Commands(tok.nextToken(),Integer.parseInt(tok.nextToken()),
                                    tok.nextToken(),Integer.parseInt(tok.nextToken()));
                          //use x and y coordinates to draw the image
                          xnew =  new (Commands(turn.x)* FD * dist + xcurrent + colour);
                          ynew =  new (Commands(turn.y)* FD * dist + ycurrent + colour);
                          repaint(xnew + ynew);
                          //set the focus on the new lines
                          xcurrent = xnew;
                          ycurrent = ynew;
    }//end of logo class                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Maybe I'm being dense but I don't see a question in here anywhere. Unless it the xnew ynew thing. You can't use new to create an int, an Integer object yes, but not int so get rid of the "new"s. Next look at the methods in http://java.sun.com/products/jdk/1.2/docs/api/java/awt/Graphics.html
    And get rid of all of that BufferedReader stuff.
    you applet should have something like:
    TextField commands = new TextField("",20);
    Button btn = new Button("Draw It");
    String cmds = null;
    // add the button and text field to the applet
    // add an action listener for the button
    // in the ActionPerformed method do somthing like
    cmds = commands.getText();
    repaint();
    // in the paint method parse the cmds string and do the drawing via the Graphics class's methods
    That you give a good idea of where to go now.

  • Terminal: how do I list the contents of directories for specific files?

    I want list all quicktime movies under a specific directory (and then output this into a file)
    When I do this: ls -Rl
    This list everything under the folder and subdirectories - the 'l' flag I used to get just file names
    When I do this: ls -Rl *.MOV
    Nothing is found
    I've tried: ls -Rl *MOV
    I'm sure I'm missing something fundamental
    Thanks
    Omar

    Use a command such as:
    ls ~/Desktop/Archive/*.mov
    Case matters when doing this; using MOV and mov will produce different results. This doesn't work if done with the R flag.
    (87610)

  • Cost Center Planning done but correct price is no shouing in Costing run

    Hi,
             In cost center activity planning (KP26). i have planned cost of Setup Activity type is 10 rs per 1 min (Fixed). but when i am running Costing run (CK11N) it is not showing correct price which we have given in cost center planning (KP26).
    Cost Element category is 43
    in Work center i assigned cost Center and setup activity.
            So What is the problem. is this problem related to CO or from Workceter.
    anybody could help on this.
    Thanks
    NAG

    Dear,
    If it is low consumable material then remove its cost relevency from BOM item details. So it will  not come in costing run.
    Also refer this link,
    Order Costing in diffrent UOM
    Regards,
    R.Brahmankar

  • What's the correct syntax for this?

    Hey guys
    If...
    trace(rowsHolder.getChildByName("mc"+newStr).y);  
    ...correctly outputs the y coordinate of (in this case) mc001, how do I output the y coordinate of a movieClip called item_base_mc that's within the timeline of mc001?
    trace(rowsHolder.getChildByName("mc"+newStr).item_base_mc.y);
    ...gives me a display object error.
    I've tried permutations of the above with [] brackets in various places, but haven't cracked the code.
    What would be the correct way to write it?
    Thanks for taking a look.
    Shaun

    I don't know how to really explain this, but from documentation you will notice  -   getChildByName()  -  is actually a function from  -  DisplayObject  - not MovieClip.
    Link here provides a better explanation!
    http://curtismorley.com/2007/06/13/flash-cs3-flex-2-as3-error-1119
    GOOD LUCK

  • What's the correct syntax for animate scale

    I have tried to animate the scale transformation of an object from code.
    I had a little success with the code from here:
    http://stackoverflow.com/questions/5029035/how-do-we-add-css-animation-in-jquery
    But animating the scale looks jerky on the iPad with this hack.
    There must be an option of doing it from within Edge since a timeline animation which does the same (just transform scale of an object over time) runs smooth.
    I know there are jQuery extensions for things like that but I don't want to interfere with anything Edge does itself.
    Can someone give me a hint what syntax I need for animating the scale of an object within Edge?

    Hi Bittamer,
    There is no built-in code to animate objects. If you don't want to use the CSS scale code, you can use jQuery animate to animate the width and height props of your object, like so:
    sym.yourHeight = 500;
    sym.yourWidth = 500;
    sym.$("your_symbol").animate({height:sym.yourHeight, width:sym.yourWidth}, 500, 'swing');

  • Which is correct Syntax for IN function in SQL expressions filters?

    Hi,
    I want to build a report which looks at the last 4 snapshot dates.
    I obtained each snapshot date using this filter
    Snapshot Date."Snapshot Date" =TIMESTAMPADD( SQL_TSI_WEEK,-10, TIMESTAMPADD(SQL_TSI_DAY, ( 7 - dayofweek(current_date) + 2), current_date) ) A
    now the second one would be:
    Snapshot Date."Snapshot Date" =TIMESTAMPADD( SQL_TSI_WEEK,-10, TIMESTAMPADD(SQL_TSI_DAY, ( 6 - dayofweek(current_date) + 2), current_date) ) B
    third one
    Snapshot Date."Snapshot Date" =TIMESTAMPADD( SQL_TSI_WEEK,-10, TIMESTAMPADD(SQL_TSI_DAY, ( 5- dayofweek(current_date) + 2), current_date) ) C
    4th one
    Snapshot Date."Snapshot Date" =TIMESTAMPADD( SQL_TSI_WEEK,-10, TIMESTAMPADD(SQL_TSI_DAY, ( 4 - dayofweek(current_date) + 2), current_date) ) D
    to simplify them let's call the filters A, B , C, D
    so, my sql expression should be like something like Snapshot Date."Snapshot Date" in 'A', 'B', 'D', 'C'
    I have tried to combine the below, with brackets and comma separated, without brackets, with single quotes and without, but I always get a syntax error.
    Snapshot Date."Snapshot Date" in TIMESTAMPADD( SQL_TSI_WEEK,-10, TIMESTAMPADD(SQL_TSI_DAY, ( 7 - dayofweek(current_date) + 2), current_date) ) ,
    TIMESTAMPADD( SQL_TSI_WEEK,-10, TIMESTAMPADD(SQL_TSI_DAY, ( 6 - dayofweek(current_date) + 2), current_date) ) ,
    TIMESTAMPADD( SQL_TSI_WEEK,-10, TIMESTAMPADD(SQL_TSI_DAY, ( 5 - dayofweek(current_date) + 2), current_date) ) ,
    TIMESTAMPADD( SQL_TSI_WEEK,-10, TIMESTAMPADD(SQL_TSI_DAY, ( 4 - dayofweek(current_date) + 2), current_date) )
    It doesn't seem to like the IN function either.
    Any idea?
    Regards
    G.
    Edited by: user6185307 on Oct 27, 2009 8:07 AM

    Take each of these filters and union them in your answers report.
    This way, you filter down to exactly the last 4 days.

  • What is the correct syntax for using a variable in an ad hoc query?

    Hi all
    I am an occasional DB user and at the moment need to update about 1000+ records so that a certain column gets a unique value.
    So I thought that I would use a variable for this.
    I then built this kind of SQL statement for just a small subset of the records:
    variable recNumber number;
    exec :recNumber := 1;
    UPDATE TABLE_TO_BE_UPD
    SET COL_TO_BE_UPD = COL_TO_BE_UPD + recNumber
    WHERE COL_TO_BE_UPD IN ('VAL_A','VAL_B');
    I get the invalid SQL statement error when attempting to execute above (besides the prompt that asks for a value which I would like to omit).
    Anyway I also tried this one:
    CREATE SEQUENCE seqCounter;
    UPDATE TABLE_TO_BE_UPD
    SET COL_TO_BE_UPD = COL_TO_BE_UPD + seqCounter.NEXTVAL
    WHERE COL_TO_BE_UPD IN ('VAL_A','VAL_B');
    From this one I got the error ORA-01722: invalid number...I am guessing this comes because seqCounter is of type number and the COL_TO_BE_UPD is of type character...(?)
    So what I would like to ask is what is the correct way to define and use a counter type of variable to append a number at the end of a character string?
    Also another question that I would like to ask is that are variables that are used in ad hoc queries also called 'bind variables'?
    Thanks muchly

    If you want to append a unique number to a column then this would do it:
    UPDATE TABLE_TO_BE_UPD
    SET COL_TO_BE_UPD = COL_TO_BE_UPD ||to_char(rownum)
    WHERE COL_TO_BE_UPD IN ('VAL_A','VAL_B');

  • What is the correct syntax for Sumif when condition is for a text string?

    B2 and b3 both contain the text "Grc".
    C2 contains 1 and C3 contains 2.
    F2 contains a Sumif that reads as: =SUMIF(B2:B10, "=Grc", C2:C10)
    The result is "0" when it should yield 3
    I can't figure out what happened.

    Hi ishii,
    Your screen shots make no sense to me. I am using Numbers'09 on a MacBook Pro running OS X. Please tell us what device, operating system and app you are using. You still have not told us.
    This forum is for Numbers on a Mac running OS X. Is your screen shot from an iOS device?
    I don't know anything about Numbers for iOS.
    Or are you using Excel?
    I can not help you. If you are using an iPad, you will get a better answer in this forum:
    https://discussions.apple.com/community/app_store/iwork_for_ios?view=discussions
    Regards,
    Ian.

  • Need correct syntax for global.ini for FC storage connector API

    for a scale out solution of 3 node HANA with master , worker and standby .
    this is my global.ini.  I am seeing an error when hana installer is trying to use the storage adapter to access the LUNs from specifications in global.ini.
    has anyone experienced this issue? I have not mounted the filesystems when I running the installer and want the storage adapter to do the mount
    the short error is :  I  have pasted the entire log at the bottom of this post.
                 Output line 8: no storage with key (partiton, usageType) = (1, data) configured
                Output line 9: no storage with key (partiton, usageType) = (1, data) configured
    [communication]
    listeninterface = .global
    [internal_hostname_resolution]
    10.1.73.140 = vmhdb1
    10.1.73.142 = vmhdb3
    10.1.73.141 = vmhdb2
    [persistence]
    basepath_datavolumes = /hana/data/VM2
    basepath_logvolumes = /hana/log/VM2
    [storage]
    ha_provider = hdb_ha.fcClient ç=
    partition_*_*_prtype = 6
    partition_*_log_mountOptions = -t xfs -o realtime, inode64,nobarrier
    partition_*_data_mountOptions = -t xfs -o realtime, inode64
    partition_2_data_wwid = 6001b970f24554e1f24554e118a9d796
    partition_2_log_wwid = 6001b970f24554e1f24554e1cc16bc02
    partition_1_data_wwid = 6001b970f24554e1f24554e11b582bda
    partition_1_log_wwid = 6001b970f24554e1f24554e1cfe7404e
    [system_information]
      usage = test
    The error is as below
    Enter Installation Path [/hana/shared]:
    Enter Instance Number [00]:
    Options:
      System usage | Description
      1            | System is used in a production environment
      2            | System is used for testing, not production
      3            | System is used for development, not production
      4            | System usage is neither production, test nor development
    Enter System usage [4]: 2
    Enter System Administrator (vm2adm) Password:
    Confirm System Administrator (vm2adm) Password:
    Enter System Administrator Home Directory [/usr/sap/VM2/home]:
    Enter System Administrator User ID [1001]:
    Enter System Administrator Login Shell [/bin/sh]:
    Enter ID of User Group 'sapsys' [79]:
    Enter Database User (SYSTEM) Password:
    Confirm Database User (SYSTEM) Password:
    Restart instance after machine reboot? [n]:
    Installation failed
      Error checking installation
        Checking system requirements failed
          Cannot mount storage devices
            Performing python script failed
              Starting external program /usr/bin/python
                Command line is: /usr/bin/python /mnt/DVD/SAP-Software/HANA/REV72/SAP_HANA_DATABASE/server/hdbmount.py --sid=VM2 --configFiles=/hana/shared --datapath=/hana/data/VM2/mnt00001 --logpath=/hana/log/VM2/mnt00001 --partition=1
                Output line 1: PYTHONPATH=['/mnt/DVD/SAP-Software/HANA/REV72/SAP_HANA_DATABASE', '/mnt/DVD/SAP-Software/HANA/REV72/SAP_HANA_DATABASE/server/hdb_ha', '/mnt/DVD/SAP-Software/HANA/REV72/SAP_HANA_DATABASE/server', '/mnt/DVD/SAP-Software/HANA/REV72/SAP_HANA_DATABASE/server', '/usr/lib/python26.zip', '/usr/lib64/python2.6', '/usr/lib64/python2.6/plat-linux2', '/usr/lib64/python2.6/lib-tk', '/usr/lib64/python2.6/lib-old', '/usr/lib64/python2.6/lib-dynload', '/usr/lib64/python2.6/site-packages', '/usr/lib64/python2.6/site-packages/Numeric', '/usr/local/lib64/python2.6/site-packages', '/usr/lib64/python2.6/site-packages/gtk-2.0']
                Output line 2: trying: __import__('hdb_ha.fcClient')
                Output line 3: trying: getattr(<module 'hdb_ha' from '/mnt/DVD/SAP-Software/HANA/REV72/SAP_HANA_DATABASE/server/hdb_ha/__init__.pyc'>, 'hdb_ha.fcClient')
                Output line 4: failed with: 'module' object has no attribute 'hdb_ha.fcClient'
                Output line 5: trying: getattr(getattr(<module 'hdb_ha' from '/mnt/DVD/SAP-Software/HANA/REV72/SAP_HANA_DATABASE/server/hdb_ha/__init__.pyc'>, 'fcClient'), 'fcClient')
                Output line 6: apiVersion = 2
                Output line 7: calling Storage Connector ...
                Output line 8: no storage with key (partiton, usageType) = (1, data) configured
                Output line 9: no storage with key (partiton, usageType) = (1, data) configured
                Output line 10: Traceback (most recent call last):
                Output line 11:   File "/mnt/DVD/SAP-Software/HANA/REV72/SAP_HANA_DATABASE/server/hdbmount.py", line 164, in <module>
                Output line 12:     main()
                Output line 13:   File "/mnt/DVD/SAP-Software/HANA/REV72/SAP_HANA_DATABASE/server/hdbmount.py", line 155, in main
                Output line 14:     cl = clClass(method, configPath, sid, datapath, logpath, tracelvl, partition)
                Output line 15:   File "/mnt/DVD/SAP-Software/HANA/REV72/SAP_HANA_DATABASE/server/hdb_ha/fcClient.py", line 47, in __init__
                Output line 16:     super(fcClient, self).__init__(*args, **kwargs)
                Output line 17:   File "/mnt/DVD/SAP-Software/HANA/REV72/SAP_HANA_DATABASE/server/hdb_ha/client.py", line 413, in __init__
                Output line 18:     self.attach([{"partition" : partition, "usage_type" : "data", "path" : mnt_data}, {"partition" : partition, "usage_type" : "log", "path" : mnt_log}])
                Output line 19:   File "/mnt/DVD/SAP-Software/HANA/REV72/SAP_HANA_DATABASE/server/hdb_ha/fcClient.py", line 133, in attach
                Output line 20:     raise Exception(msg)
                Output line 21: Exception: no storage with key (partiton, usageType) = (1, data) configured
                Program terminated with exit code 1

    Hi...I am getting the exact same error, while installing SAP HANA on EMC . Can you please share if you had resolved this error? Thanks in advance.
    - Vijay

  • ADO Database Connection: Need help with correct syntax for 'Execute' Method

    My server Windows 2008R2 taking more than 30 hours to complete backup
    so next backup getting fail
    is there any option to set start backup after 24 hours if previous backup complete

    I have a script that I am trying to cobble together, but I am stuck at attempting to execute an SQL query against and ADO connection. My code is as follows:Powershell $FQDNUpper = $Computer.ToUpper() + ".domain.dn1.dn2" $FQDNLower = $Computer.ToLower() + ".domain.dn1.dn2" $shell = New-Object -ComObject "Wscript.Shell" # for use later in script $cnn = New-Object -ComObject "ADODB.Connection" $cnn.ConnectionString = "Connection_String" $cnn.Open() $query = "SELECT CAST(ID AS nvarchar(50)) ID FROM Machine WHERE Name=$FQDNUpper AND Role = 0" $rs = $cnn.Execute($query,' ',1) #If statement that will qualify if $FQDNUpper returned anything else try $FQDNLowerWhen executing the code I receive an error:
    PowershellArgument: '2' should be a System.Management.Automation.PSReference. Use [ref].At line:9 char:5+ $rs = $cnn.Execute($query,' ',1)+ ...

  • UPDATE command syntax for mulitple checkbox update

    Hi,
    I intend update the checkboxes by id in bulk.
    My table is below. I want to update the selected form_id
    checkboxe and their
    values accordingly. That, I click the checkboxes (containin
    form_id
    information) of 1, 3, and 6; and I check their respective
    fields for column
    check01 and check02.
    form_id check01 check02
    1 1 0
    2 0 1
    3 0 0
    4 1 1
    5 1 1
    6 1 0
    I am using below code for deleting. I can do insert into. But
    I could not
    figure out the correct syntax for UPDATE command similar to
    below example.
    Sample for deleting:
    DELETE FROM ADS
    WHERE AD_ID IN (varCheckBox)
    Thank you
    Hakan

    Check here for SQL UPDATE syntax..
    http://www.w3schools.com/sql/sql_update.asp
    Regards,
    ..Trent Pastrana
    www.fourlevel.com
    "Hakan834" <[email protected]> wrote in message
    news:e9tdd8$ppk$[email protected]..
    > Hi,
    >
    > I intend update the checkboxes by id in bulk.
    >
    > My table is below. I want to update the selected form_id
    checkboxe and
    > their values accordingly. That, I click the checkboxes
    (containin form_id
    > information) of 1, 3, and 6; and I check their
    respective fields for
    > column check01 and check02.
    >
    > form_id check01 check02
    > 1 1 0
    > 2 0 1
    > 3 0 0
    > 4 1 1
    > 5 1 1
    > 6 1 0
    >
    > I am using below code for deleting. I can do insert
    into. But I could not
    > figure out the correct syntax for UPDATE command similar
    to below example.
    >
    > Sample for deleting:
    > DELETE FROM ADS
    > WHERE AD_ID IN (varCheckBox)
    >
    >
    > Thank you
    >
    > Hakan
    >

  • Query Syntax for Dynamic Navigation Menu

    I'm trying to build a Navigation menu from a query using the following syntax:
    select LEVEL,
           LABEL,
           LINK,
           'NO' as IS_CURRENT,
           null as IMAGE
      from V$RC_MENUS
    where CLUB = :APP_CLUB
    start with PID is null
    connect by prior ID = PID
    order by SEQUENCE, LABEL
    The query itself works fine for all values of APP_CLUB but it only generates the menu entries for some values of APP_CLUB, but not others. The SEQUENCE value determines the order of the entries within each level. Is this the correct syntax for a query-based navigation menu? How does it determine which sub-levels belong to a parent?  Does the ordering of the resultset have any impact on how the menu is generated?

    Jritschel-Oracle wrote:
    I'm trying to build a Navigation menu from a query using the following syntax:
    select LEVEL, 
          LABEL, 
          LINK, 
          'NO' as IS_CURRENT, 
          null as IMAGE 
      from V$RC_MENUS 
    where CLUB = :APP_CLUB 
    start with PID is null 
    connect by prior ID = PID 
    order by SEQUENCE, LABEL 
    The query itself works fine for all values of APP_CLUB but it only generates the menu entries for some values of APP_CLUB, but not others. The SEQUENCE value determines the order of the entries within each level. Is this the correct syntax for a query-based navigation menu? How does it determine which sub-levels belong to a parent?  Does the ordering of the resultset have any impact on how the menu is generated?
    As stated in the documentation:
    ...do not specify either ORDER BY or GROUP BY, because they will destroy the hierarchical order of the CONNECT BY results. If you want to order rows of siblings of the same parent, then use the ORDER SIBLINGS BY clause.
    Try:
    select LEVEL,
          LABEL,
          LINK,
          'NO' as IS_CURRENT,
          null as IMAGE
      from V$RC_MENUS
    where CLUB = :APP_CLUB
    start with PID is null
    connect by prior ID = PID
    order siblings by SEQUENCE, LABEL

Maybe you are looking for

  • Odd region edit behavior

    Hi all, I encountering a small issue in Logic Pro 8.0.2. I record an audio track maybe 4 bars. After listening I decide I only want the second two bars. I used to be able to (in express 7.2) just drag the file to the beginning of the 3rd bar and that

  • I always get this error when I try to install the Trial of 'Adobe CS6 Design and Web Premium'

    Exit Code: 15 Please see specific errors and warnings below for troubleshooting. For example,  ERROR: DW051 ... -------------------------------------- Summary -------------------------------------- - 0 fatal error(s), 8 error(s), 0 warning(s) ERROR:

  • Converting a group of 1-D arrays to one 2-D array.

    I want to build a 2-D array out of multiple 1-D arrays so that I can wire the 2-D array to the "Write to Spreadsheet File.vi" function. I searched the Array palette endlessly with no luck...any ideas?

  • How to check up Integrity of basis on the server ?

    How to check up 1. Integrity of basis on the server 2. Presence of necessary fields in bases Why ask ? There is for a long time imported in ZCM station XP. In properties of agent ZCM at this station I see that all politicians are applied successfully

  • New MBP Blue Screen on Boot Camp Install

    I just installed XP SR2 on my new MBP, when I try to install the drivers from the DVD, it gets about half-way through and then goes to the blue screen of death (BSOD), then restarts...I have tried individually installing the drivers, but I tried to i