How to manage items withing categories?

I want to be able to list and sort (in admin panel) all items in a web app or other area tagged with a specific category.  However, the Category listing option is alphabetical, and what if I have more than one category that starts with A?  for example:  "Apples" "Apricots".  If you have hundreds of items with different categories, it seems that you would need a way to sort them....
And once I can get a list of category "Apples" items, how to filter based on the data in the fields?  Say customer entered "NO" to wanting a fruit item.  I would like to be able to sort of filter all "Apple" category items, that fruit field has "NO" value.
And after I get that sorted view, how would I manage categories on these multiple items at once?  Say add another category "Veggies" and remove "Apples" from several items at once.  (can't do this manually if you have hundreds of items!
Please help!!!

Suppose i ve Form having Deptno Field and Ename field and both are List Item.... and I want in ename field list select those employee who are in selected Deptno on above list.
WHEN-New-Form Instance.
DECLARE
CURSOR C1 IS
SELECT Deptno FROM Dept;
BEGIN
FOR A IN C1 LOOP
ADD_LIST_ELEMENT('block.deptno',1,A.deptno,A.deptno);
END LOOP;
END;
DECLARE
CURSOR C2 IS
SELECT ename FROM emp where deptno=:block.deptno;
BEGIN
FOR B IN C2 LOOP
ADD_LIST_ELEMENT('block.ename',1,B.ename,B.ename);
END LOOP;
END;
Successfully Run
Regards
Danish Hayder

Similar Messages

  • How populate itemrenderer items with data.

    How populate itemrenderer items with data. Ie after my app starts I generate an array collection that I want to assign as the data provider to each combobox in my item renderer, which im using in a datagrid.

    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx"
                   minWidth="955"
                   minHeight="600">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
            <s:ArrayCollection id="booksWithStores">
                <fx:Object name="book1" stores="{new ArrayCollection(['store1','store2'])}"/>
                <fx:Object name="book2" stores="{new ArrayCollection(['store1','store3'])}"/>
                <fx:Object name="book3" stores="{new ArrayCollection(['store2','store3', 'store4'])}"/>
                <fx:Object name="book4" stores="{new ArrayCollection(['store1','store4'])}"/>
            </s:ArrayCollection>
            <s:ArrayCollection id="booksWithoutStores">
                <fx:Object name="bookA"/>
                <fx:Object name="bookB"/>
                <fx:Object name="bookC"/>
                <fx:Object name="bookD"/>
            </s:ArrayCollection>
            <s:ArrayCollection id="allStores">
                <fx:String>store1B</fx:String>
                <fx:String>store2B</fx:String>
                <fx:String>store3B</fx:String>
                <fx:String>store4B</fx:String>
            </s:ArrayCollection>
            <fx:Component id="renderer1" className="Renderer1">
                <s:MXDataGridItemRenderer>
                    <s:DropDownList dataProvider="{data.stores}" />   
                </s:MXDataGridItemRenderer>
            </fx:Component>
            <fx:Component id="renderer2" className="Renderer2">
                <s:MXDataGridItemRenderer>
                    <s:DropDownList dataProvider="{storesList}" />
                    <fx:Script>
                        <![CDATA[
                            import mx.collections.ArrayCollection;
                            [Bindable]
                            public var storesList:ArrayCollection;
                        ]]>
                    </fx:Script>
                </s:MXDataGridItemRenderer>
            </fx:Component>
        </fx:Declarations>
        <mx:Form>
            <mx:FormItem label="Dynamic Stores">
                <mx:DataGrid dataProvider="{booksWithStores}" width="354">
                    <mx:columns>
                        <mx:DataGridColumn dataField="name"/>
                        <mx:DataGridColumn dataField="stores" itemRenderer="{renderer1}"/>
                    </mx:columns>
                </mx:DataGrid>
            </mx:FormItem>
            <mx:FormItem label="Static Stores">
                <mx:DataGrid dataProvider="{booksWithoutStores}" width="354">
                    <mx:columns>
                        <mx:DataGridColumn dataField="name"/>
                        <mx:DataGridColumn dataField="stores" itemRenderer="{createRendererWithProperties(Renderer2, {storesList:allStores})}"/>
                    </mx:columns>
                </mx:DataGrid>
            </mx:FormItem>
        </mx:Form>
        <fx:Script>
            <![CDATA[
                import mx.collections.ArrayCollection;
                public static function createRendererWithProperties(renderer:Class, properties:Object):IFactory
                    var factory:ClassFactory=new ClassFactory(renderer);
                    factory.properties=properties;
                    return factory;
            ]]>
        </fx:Script>
    </s:Application>

  • Manage Items with Approval

    Hi,
    We have our Intranet site set up so that all users have 'Manage Items With Approval' privileges to every page group. However, the 'Manage Items with Approval' privileges doesn't allow the users to create pages in the page group. Is there any way to give users the ability to create pages from the navigator but still require approval for new items that they create?
    Thanks,
    Steven.

    Hi Steven,
    The MIWA privilege is intended for content contributor type of folks who are adding file/text content to an existing page - not the type of user you would want creating a page and being asked questions like what template, style to use, ACLs, etc.
    Unfortunately we don't have a priv that matches up with your use case in the current release (10g). The good news is that the next release will include a feature that allows a page to be configured such that all content added to it (no matter what the assigned user privs) will go through an approval process.

  • How Transaction Manager work with Resource Manager, like Connection pool?

    hi,
    I'm using BEA Webloigc8.1 Stateless Session Bean/DAO/Oracle stored proc.
    but I'm not quite clear how Transaction Manager work with Resource Manager, like Connection pool.
    my understanding is that, in a weblogic transaction, a stateless session bean interact with several DAOs, and for each method of DAO a connection is acquired from connection pool. I've heard that the connection will not return to pool until the transaction commits.
    My question is that, does it mean that for a weblogic transaction, multiple connections might be allocated to it? and if multiple connections are allocated, then how many oracle transactions would be started? or multiple connections share the same oracle transaction?
    I didn't feel it make sense to start multiple oracle transactions, cause deadlock might be incurred in a single weblogic transaction.
    any help appreciated!

    Xin Zhuang wrote:
    hi,
    I'm using BEA Webloigc8.1 Stateless Session Bean/DAO/Oracle stored proc.
    but I'm not quite clear how Transaction Manager work with Resource Manager, like Connection pool.
    my understanding is that, in a weblogic transaction, a stateless session bean interact with several DAOs, and for each method of DAO a connection is acquired from connection pool. I've heard that the connection will not return to pool until the transaction commits.
    My question is that, does it mean that for a weblogic transaction, multiple connections might be allocated to it? and if multiple connections are allocated, then how many oracle transactions would be started? or multiple connections share the same oracle transaction?
    I didn't feel it make sense to start multiple oracle transactions, cause deadlock might be incurred in a single weblogic transaction.
    any help appreciated!Hi. If you configure your WLS DataSource to use keep a connection for
    the duration of a tx, it will do that, and in any case there can be
    no deadlock however many connections operate for a given XA transaction.
    Here is the best coding form for DAOs or any other user-written code
    for using WebLogic DataSources. This is important for two reasons:
    1 - Thread-safety is maintained as long as the connection is a
    method-level object.
    2 - It is crucial to notify WebLogic that you are done with a connection
    ASAP, by your calling close() on it. We will then put it back in the
    pool, or keep it under the covers for your next request if it's in a
    transaction etc. The pool is optimized for quick get-use-close scenarios.
    public void one_of_my_main_JDBC_Methods()
    Connection con=null; // Must be a method level object for thread-safety
    // It will be closed by the end of the method.
    try {
    con = myDataSource.getConnection(); // Get the connection in the try
    // block, directly from the WebLogic
    // datasource
    // do all the JDBC within this try block. You can pass the
    // connection to subordinate methods, but not to anywhere
    // that thinks it can use the connection later.
    rs.close(); // close any result set asap
    stmt.close(); // then close any statement asap
    // When you're done with JDBC
    con.close(); // close the connection asap
    con = null; // nullify it so the finally knows it's done
    catch (Exception e) {
    // do whatever catch stuff you want. You don't
    // need a catch block if you don't want one...
    finally {
    // It is important to close a JDBC connection ASAP when it's not needed.
    // without fail, and regardless of exit path. Do everything in your
    // finally block in it's own try-catch-ignore so everything is done.
    try { if (con != null) con.close();} catch (Exception ignore){}
    return ret;
    }

  • 351 movmnt type doesnot refers the Batch managed items with respect to P.O

    Dear SAP Gurus,
    For Stock transport order, i am using the 351 and 101 movement type.
    The batch managed items are provided in the Purcahse order and the same batch is displayed while receiving the material -101 movement ytpe  with respect to Purchase order, but while performing the Goods issue - 351 movement type , the batch is not displayed in the line item.
    Kindly help me to solve this
    Thanks in advance
    Thanks and Regards,
    R.Diwakar

    Dear SAP Guru,
    Thanks for your kind response
    yes, the batch managed material is already available in both plants that is material already extended.
    Manually the batch is entered by the receiving plant (what they required for STO), but while performing the Good issue against the  Stock Transfer order the batch is not referred or automatically flows to the batch managed items.
    in 351 movement type.
    Kindly guide me on this.
    Thanks and Regards,
    R.Diwakar

  • How to Manage Pcs with a mac server mini?

    one of my missions is to manage Pcs with a mac  server. But since my searches are not fruitful. It is the reason why I would like to obtain from the help. Very cordially to you..

    See Meraki MDM, has administration for many platforms including PC.
    https://meraki.cisco.com/products/systems-manager

  • How to manage playlists with multiple devices?

    We have multiple devices in our household that use the same Macbook Pro.  We all like different kinds of music and we are now having a difficult time trying to manage the playlists on the different devices.  How do we manually manage playlists for each separate device?  We have iPhones, iPads and iPods.

    How to use multiple iPods, iPads, or iPhones with one computer
    http://support.apple.com/kb/HT1495
    How to Share a Family iPad
    http://www.macworld.com/article/1163347/how_to_share_a_family_ipad.html
    Using iPhone, iPad, or iPod with multiple computers
    http://support.apple.com/kb/ht1202
    iOS & iCloud Tips: Sharing an Apple ID With Your Family
    http://www.macstories.net/stories/ios-5-icloud-tips-sharing-an-apple-id-with-you r-family/
    How To Best Use and Share Apple IDs across iPhones, iPads and iPods
    http://www.nerdsonsite.com/blog/2012/06/07/help-im-appleid-confused/
     Cheers, Tom

  • How to display items with pk/fk relationship not equal to each other

    I want to show that the values of the same field are not equal to each other
    In forms, how can I write below:
    If :blockB.chk_bx = 'N' then
    :blockA.rec_id <> :blockB.rec_id;
    also tried :blockA.rec_id != :blockB.rec_id; but get error message. Assume I cannot use the inequality sign.
    The rec_id in blockname A and B have a pk/fk relationship.
    Please help.

    I'm sorry i didn't understand your requirement.
    I want to show that the values of the same field are not equal to each otherSo you have an item in block A and an item in block B and you want to indicate that the value for these two items are different? How do you want to indicate that? Do you want to mark the field with some color? Do you want to have a checkbox next to it?
    In forms, how can I write below
    If :blockB.chk_bx = 'N' then
    :blockA.rec_id !=:blockB.rec_id;I assumed the != in the statement for its missing in your post. What do you expect the statement to do? Your statement is a comparison outside an IF or CASE-statement, maybe you want to do some
    IF :blockA.rec_id !=:blockB.rec_id THEN
      dosomestuff;
    END IF;
    The rec_id in blockname A and B have a pk/fk relationshipSo, did you connect the two block with a relation in forms? If yes, the values in the two blocks should always match.
    Perhaps cou could give some details about your requirement.

  • How to manage tasks with variable duration / amount of work

    Hello,
    I'm currently trying to build a macro planning for my department for the next 2 years.
    In my plan, there is a task that has a variable duration and amount of work. People will start / stop working on it depending on the beginning / end of other tasks. The only way to do this I've found so far is to split the task into multiple subtasks
    (one per resource) that are manually scheduled with start and end dates linked to the dates of the tasks they depend on. However, I think this workaround is really not practical and hard to manage since for each subtask I need to create milestones for linking
    the start date to the next working day. Relationships between tasks are also not visible in the plan. I've also read that in general it' better to avoid using links, but is there a better way to manage this in Project 2013 ?
    Best regards,
    Sébastien.

    Seb_Lz,
    There are several elements of your description that need more detail.
    You mention a variable duration. That could simply be a normal task that changes scope as the plan progresses (i.e. more work content, slipping schedule, etc.), or it could be indicative of what is called a hammock task (See Faq 19 on the MVP website at: http://project.mvps.org/faqs.htm).
    You mention linking as a way to define task dependencies. That is exactly what task predecessors and successors are designed to do. Task links have nothing to do with resources. It's not clear why you say only one resource per task.
    You talk about manual scheduling and entering start and finish dates. Manual scheduling is intended for a very rough first cut at a working schedule. To get the full benefit of Project's scheduling engine, tasks should be auto-scheduled and the whole logic
    network sequence of tasks should be defined by durations and links, not by manually entering dates. It's fine to set critical milestones or use Project's deadline feature, but otherwise let Project tell you how your plan all works given the basic data.
    You say relationships are not visible in the plan. Don't understand that at all since link lines between tasks are shown by default in task views (e.g. Gantt Chart view).
    Not sure where you read that it is better to avoid using links because that is flat out wrong, at least for normal predecessor/successor links within a single file. If you are working with a linked structure (i.e. master/subproject), or using external predecessors/successors,
    then yes, links become a whole new area of concern.
    John

  • How to read items with REST from a specific folder.

    I have a sharepoint list stored over 5,000 items divided into multiple folders.
    Using JSOM, I could read items by accessing a specific folder using CAML like
        context = new SP.ClientContext('SiteURL');
        list = context.get_web().get_lists().getByTitle('ListName');
        camlQuery = new SP.CamlQuery();
        caml = '[xml for caml]';
        camlQuery.set_viewXml(caml);  
        camlQuery.set_folderServerRelativeUrl('FolderPath');
        context.load(list);
        context.executeQueryAsync(Function.createDelegate(this,function(){} ),Function.createDelegate(this,function(){}));
    But I don't know how to do the same thing with the REST.
    (Filtering by OData query operations couldn't solve SPQueryThrottledException.)
    Please give me advice.

    Thank you for the advice.
    I saw the contents, but it does
    not work
    well.
    Now I use REST from javascript file deploied on Style Library with jQuery.
    function getFolder () {
    $.ajax({
    url:"[SiteCollectionURL]/_api/web/GetFolderByServerRelativeUrl('[SiteCollectionPath]/libraries/[LibraryName]')/Folders",
    method:"GET",
    headers:{
    "accept":"application/json;odata=verbose",
    //"accept":"application/atom+xml",
    async:false,
    success: function (data){
    console.log("success");
    error: function (err){
    console.log("failure");
    When I set url path until "GetFolderByServerRelativeUrl~", response data include library's name, etc. Looks like good.
    But when I write until "/Files" as above, response data has only prototype objects and not has data.body property.
    The same result occurred
    either in
    list or library.
    Please point out
    if there is misunderstanding.

  • How to reference Item with Table Column

    Hi Community,
    we want to reference Table Column with an Item. This Item is a Select-List wich includes a Date. Befor doing something, you have to select this date. After that we want to create a new row in with a date-column. This date should be the same as in this Item. We are using a tool which is called HTML-DB. We reached that there is shown the date, but there is no value. It is an updateable report row.
    How can we copy this value from the Item in this new column?
    I am sorry for my english, but I hope everyone understands our problem.
    Greez Rob

    I did it another way. We are using an old HTML DB version (v1.6). And I think it is a bug to reference a date with a column. I have this opinion because we copied the table but we changed the format. we are using varchar instead of date, and it is working without problems.
    We also tried &px_name and it didn't work.
    Thx anyway!

  • Styling MenuBar drop-down (how to separate items with borders)

    Hi,
    I have a MenuBar with some drop down. I would like to
    separate each item in the drop down with a top/bottom border such
    as the below. How can I do this? I can't seem to get the right
    style.
    ROOTNode
    item1
    item2

    hi
    see this
    http://blog.flexexamples.com/2008/01/29/adding-a-horizontal-separator-to-a-flex-popupbutto n-controls-pop-up-menu/
    and this
    http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Live Docs_Book_Parts&file=menucontrols_061_3.html

  • How to manage itunes with two ipods

    I have two iPods, a 60G photo and a 30G video. I have two macs, one at work, the other at home. My iTunes on the work computer has about 50G of music, and about 15G on my home computer. Until now, I have only synced the big iPod with the work computer and small iPod at home. I just got a very big external drive, and want to keep everything there. That raises several questions I thought someone here might know how to answer.
    1) Where are the files so I can just copy them onto the ext hard drive? (I can probably find this for myself, but with my computer skills on mac, it will be frustrating, I imagine. Since I have the other questions, I thought htis one might be easy.)
    2) How can I merge the two files? I know I have some duplicates, adn I know how to get rid of them once the two are merged, but how do the two files merge together in one iTunes file on my new hard drive?
    3) Once the two are merged, can I set it so that certain types of music are put on one iPod, and other types on the other?
    Thanks a lot, in advance.
    Brad

    1. Click on the folder in the Finder's sidebar with the house icon, and then open the folder named Music. The iTunes folder inside is the default location of the music library; if the songs aren't here, follow these instructions to locate them.
    2. Drag the files into the Library section of the open iTunes application.
    3. Use the option in this article which best fits your needs.
    (22256)

  • How to manage Undo with multiple models linked together

    Hello,
    I'm writing a java desktop application using MVC model. I'm using javax.swing.undo.UndoManager and related classes to manage the undo/redo capabilities. I know how to use it but I can't see how to implement it in a clean way when I have several models linked together. I hope someone can help...
    I have 2 models M1 and M2. M2 depends on M1, so M2 listens to M1 changes.
    Each model has its own view V1 and V2.
    Model's methods which change the model's state create an UndoableEdit to restore the previous model's state.
    UndoableEdits are combined together in a CompoundEdit created by the controller.
    Upon a user action on V1:
    1. M1 change
    => add UndoableEdit to current CompoundEdit
    => notify V1
    => notify M2
    2. M2 change
    => add UndoableEdit to current CompoundEdit
    => notify V2
    When we undo the CompoundEdit:
    1. Undo M2 change
    => notify V2
    2. Undo M1 change
    => notify V1
    => notify M2 !! PROBLEM
    3. M2 change !! PROBLEM
    => notify V2 !! PROBLEM
    And this is my problem: when undoing change on M1, I need to notify listeners (V1 and M2), but in this case M2 should not be notified because M2 has already restored its previous state in the CompoundEdit undo chain.
    A solution might be to inhibit M2 listener if we're inside a undo/redo, but I feel it's not clean and not sure it will always work... Is there another way to solve this ? Or is it my architecture which is wrong ?
    Thank you.
    Edited by: gibi_31 on Aug 19, 2010 3:08 AM
    Edited by: gibi_31 on Aug 19, 2010 3:11 AM

    Hello,
    Upon a user action on V1:
    1. M1 change
    => add UndoableEdit to current CompoundEdit
    => notify V1
    => notify M2
    2. M2 change
    => add UndoableEdit to current CompoundEditWhy?
    Do you need to be able to undo the M2 change alone in any other case than undoing M1's change?
    And if you don't add M2 change to the compound edit, doesn't the M2 update triggered by undoing the the M1 undo the M2 state automatically (thus performing the M2 undo)?
    And this is my problem: when undoing change on M1, I need to notify listeners (V1 and M2), but in this case M2 should not be notified because M2 has already restored its previous state in the CompoundEdit undo chain.
    A solution might be to inhibit M2 listener if we're inside a undo/redo, but I feel it's not clean and not sure it will always work...I agree it looks unclean (and quite dangerous actually if the app ever needs to support some form of multi-threaded model changes).
    Regards,
    J.

  • How to select items with selectedItem and selectedIndex?

    Hello.
    I'm trying to selected and item in both a dropdownlist and combobox using selectedItem or selectedIndex properties. They don't work
    Browing internet I found a lot of people with the same problem, that was already know in 2008.
    The easy commands ddcompontent.selectedIndex = value or ddcomponent.selectedItem = item don't work.
    Can anyone help me?
    I couldn't find any solution.
    thank you
    Pbesi

    Without seeing your code it's hard to tell where you are going wrong.
    I have comboboxes which I need to set to the last value selected.
    I wrote a function like this, and it works fine for my needs.  Given you know the value you want to select.  if you know the index of the item already then you should just be able to set that.
    private function setCmb(cbx:ComboBox, val:String):void
    var arrC:ArrayCollection = cbx.dataProvider as ArrayCollection; 
    for (var i: int = 0; i < arrC.length; i++) { 
    var pe:String = arrC.getItemAt(i) as String; 
    if ( val == pe) {cbx.selectedIndex = i;
    break;}

Maybe you are looking for

  • Why do I need to restart Apache and Tomcat every time a java file is change

    If a java file is changed and complied the changes are not reflected if Tomcat is not restarted. The settings in server.xml are as: <!-- Tomcat Manager Context --> <Context path="/manager" docBase="manager" debug="0" privileged="true"/>      <Context

  • How do I fix a problem with PSE 13 not being able to open my printer so I cannot print anything?

    PSE 12 Trial version worked fine with my printer but now I get errors like " the saved print information is an incompatible version.  It has been set to default values."  As well as, " default printer could not be opened."  I have Windows 7.  I tried

  • Child Query taking more time

    Dear Gurus/Masters/All, I request your valuble assistance in tuning one of my SQL. We are using oracle 10.2.04 version and OS is HP-UX 11.23(ia64) version In my production environment one SQL is taking more time to complete the task. According to EXP

  • Tecra 9100: Dying motherboard/HDD

    I have been experiencing intermittant problems with my 9100 for about two weeks. The latest symptoms are: 1. I/O Channel message when switching on. 2. If I get into boot sequence the PC hangs, 3. If I manage to start Windows (2k) it promptly craches

  • Where are the files?

    Hi there, Have MacBook and trying to setup TM for regular backups. It looks like my external HD problem will be solved (another thread) but I have following to solve. In current scheme I manually store files on external HD. I want to store all my pic