About Multiple Filters Mode Sample

hi very thanks for the sample , I learn the
ds.setFilterMode("or");
Buy i also have a question.  this is my xml file
<?xml version="1.0" encoding="utf-8"?>
<root>
<row>
<tmId>26760001</tmId>
  <Comp_Id>654321</Comp_Id>
<Comp_name>Web Site</Comp_name>
</row>
<row>
<tmId>26760002</tmId>
  <Comp_Id>123456</Comp_Id>
<Comp_name>Adobe</Comp_name>
</row>
</root>
1. I create a dataset
var ds1 = new Spry.Data.XMLDataSet("xmldata1.xml", "/root/row", {useCache:true});
ds1.setFilterMode("or",true);
function ff1(ds, row, index){ return (row.Comp_Id == "654321") ? row : null; };
function ff2(ds, row, index){ return (row.Comp_Id == "123456") ? row : null; };
function ToggleFilter(enable, f)
if (enable)
  ds1.addFilter(f, true);
else
  ds1.removeFilter(f, true);
2. I create a same dataset but use the distinctonLoad
var ds3 = new Spry.Data.XMLDataSet("xmldata1.xml", "root/row/Comp_name", {sortOnLoad: "Comp_name", sortOrderOnLoad: "ascending", distinctOnLoad: true});
3.It's my problem, i want use the ds3,automatic create the checkbox, and checked=true, when onclick checkbox checked=false and filter the comp_id.
<td  valign="top" bgcolor="#FFFFFF" spry:region="ds3">
<form action="" >
<label spry:repeat="ds3" >
{ds3::Comp_name}
<input name="ff" type="checkbox" value="{ds3::Comp_name}" checked="true" onClick="ToggleFilter(this.checked,ff1);"></label>
</form>
</td>
4.question two is  how can i use a refences to replace the 654321
function ff1(ds, row, index){ return (row.Comp_Id == "654321") ? row : null; };
function ff1(ds, row, index,number){ return (row.Comp_Id ==number) ? row : null; };

hi very thanks for the sample , I learn the
ds.setFilterMode("or");
Buy i also have a question.  this is my xml file
<?xml version="1.0" encoding="utf-8"?>
<root>
<row>
<tmId>26760001</tmId>
  <Comp_Id>654321</Comp_Id>
<Comp_name>Web Site</Comp_name>
</row>
<row>
<tmId>26760002</tmId>
  <Comp_Id>123456</Comp_Id>
<Comp_name>Adobe</Comp_name>
</row>
</root>
1. I create a dataset
var ds1 = new Spry.Data.XMLDataSet("xmldata1.xml", "/root/row", {useCache:true});
ds1.setFilterMode("or",true);
function ff1(ds, row, index){ return (row.Comp_Id == "654321") ? row : null; };
function ff2(ds, row, index){ return (row.Comp_Id == "123456") ? row : null; };
function ToggleFilter(enable, f)
if (enable)
  ds1.addFilter(f, true);
else
  ds1.removeFilter(f, true);
2. I create a same dataset but use the distinctonLoad
var ds3 = new Spry.Data.XMLDataSet("xmldata1.xml", "root/row/Comp_name", {sortOnLoad: "Comp_name", sortOrderOnLoad: "ascending", distinctOnLoad: true});
3.It's my problem, i want use the ds3,automatic create the checkbox, and checked=true, when onclick checkbox checked=false and filter the comp_id.
<td  valign="top" bgcolor="#FFFFFF" spry:region="ds3">
<form action="" >
<label spry:repeat="ds3" >
{ds3::Comp_name}
<input name="ff" type="checkbox" value="{ds3::Comp_name}" checked="true" onClick="ToggleFilter(this.checked,ff1);"></label>
</form>
</td>
4.question two is  how can i use a refences to replace the 654321
function ff1(ds, row, index){ return (row.Comp_Id == "654321") ? row : null; };
function ff1(ds, row, index,number){ return (row.Comp_Id ==number) ? row : null; };

Similar Messages

  • Multiple Filters Mode Problem

    I have been trying to implement the Multiple Non-Destructive Filters Mode sample at http://labs.adobe.com/technologies/spry/samples/data_region/MultipleFiltersModeSample.html but just cannot get it to work, although the data shows and is sort of sortable (that will be my next query as if you click on 'Opposition' it does not sort it alphabetically but I think that may be to do with column types).
    I simply copied the codes from the example and changed the function names, row names and dataset names to suit my needs but neither of the filters work.
    The file that it is used in is http://www.margate-fc.com/reserves/resfixres0910.php and the dataset is in http://www.margate-fc.com/reserves/resfixres.html.
    My <Head> script for the dataset is
    <script type="text/javascript">
    <!--
    var ReservesFix0910 = new Spry.Data.HTMLDataSet("resfixres.html", "resfixres", {sortOnLoad: "MatchNo", sortOrderOnLoad: "ascending"});
    ReservesFix0910.setColumnType("MatchNo", "number"), ReservesFix0910.setColumnType("Date", "date");
    function ffLGE(ds, row, index){ return (row.Comp == "LGE") ? row : null; };
    function ffKIC(ds, row, index){ return (row.Comp == "KIC") ? row : null; };
    function ToggleFilter(enable, f)
    if (enable)
    ReservesFix0910.addFilter(f, true);
    else
    ReservesFix0910.removeFilter(f, true);
    function RemoveAllFilters()
    document.forms[0]["LGECB"].checked = false;
    document.forms[0]["KICCB"].checked = false;
    ReservesFix0910.removeAllFilters(true);
    //-->
    </script>
    And the code for the data is
    <div>
        <form action="">
    <p>
      <label>
        <input name="LGECB" type="checkbox" value="" onclick="ToggleFilter(this.checked, ffLGE);" />
        League</label>
      <label>
        <input name="KICCB" type="checkbox" value="" onclick="ToggleFilter(this.checked, ffKIC);" />
        Kent Intermediate Cup</label>
    </p>
    <p><label>Filter Mode: <select onchange="ReservesFix0910.setFilterMode(this.value, true);"><option value="and" selected="selected">-- AND --</option><option value="or">-- OR --</option></select></label>
    <input type="button" value="Remove All Filters" onclick="RemoveAllFilters();" /></p>
    </form>
        <div spry:region="ReservesFix0910">
        <table>
          <tr>
            <th spry:sort="Date">Date</th>
            <th spry:sort="Comp">Comp</th>
            <th spry:sort="H/A">H/A</th>
            <th spry:sort="Opposition">Opposition</th>
            <th spry:sort="Res">Res</th>
            <th spry:sort="F">F</th>
            <th spry:sort="column7"> </th>
            <th spry:sort="A">A</th>
          </tr>
          <tr spry:repeat="ReservesFix0910">
            <td>{Date}</td>
            <td>{Comp}</td>
            <td>{H/A}</td>
            <td>{Opposition}</td>
            <td>{Res}</td>
            <td>{F}</td>
            <td>{column7}</td>
            <td>{A}</td>
          </tr>
        </table>
      </div></div>
    I am assuming that I am missing something very simple that is stopping this working. Even when I found a rogue dsDonuts reference from the original code still in mine and changed it nothing worked and I am pretty sure that all the code is now referencing my files and datasets.
    Do I need to use anything else such as xpaths to make this work? I noticed that the sample had and xpaths reference and was linked to an xpaths js file so perhaps that is needed as well but am not sure how I would implement it.
    Thanks in advance for any advice.
    Steve.

    I have been trying to implement the Multiple Non-Destructive Filters Mode sample at http://labs.adobe.com/technologies/spry/samples/data_region/MultipleFiltersModeSample.html but just cannot get it to work, although the data shows and is sort of sortable (that will be my next query as if you click on 'Opposition' it does not sort it alphabetically but I think that may be to do with column types).
    I simply copied the codes from the example and changed the function names, row names and dataset names to suit my needs but neither of the filters work.
    The file that it is used in is http://www.margate-fc.com/reserves/resfixres0910.php and the dataset is in http://www.margate-fc.com/reserves/resfixres.html.
    My <Head> script for the dataset is
    <script type="text/javascript">
    <!--
    var ReservesFix0910 = new Spry.Data.HTMLDataSet("resfixres.html", "resfixres", {sortOnLoad: "MatchNo", sortOrderOnLoad: "ascending"});
    ReservesFix0910.setColumnType("MatchNo", "number"), ReservesFix0910.setColumnType("Date", "date");
    function ffLGE(ds, row, index){ return (row.Comp == "LGE") ? row : null; };
    function ffKIC(ds, row, index){ return (row.Comp == "KIC") ? row : null; };
    function ToggleFilter(enable, f)
    if (enable)
    ReservesFix0910.addFilter(f, true);
    else
    ReservesFix0910.removeFilter(f, true);
    function RemoveAllFilters()
    document.forms[0]["LGECB"].checked = false;
    document.forms[0]["KICCB"].checked = false;
    ReservesFix0910.removeAllFilters(true);
    //-->
    </script>
    And the code for the data is
    <div>
        <form action="">
    <p>
      <label>
        <input name="LGECB" type="checkbox" value="" onclick="ToggleFilter(this.checked, ffLGE);" />
        League</label>
      <label>
        <input name="KICCB" type="checkbox" value="" onclick="ToggleFilter(this.checked, ffKIC);" />
        Kent Intermediate Cup</label>
    </p>
    <p><label>Filter Mode: <select onchange="ReservesFix0910.setFilterMode(this.value, true);"><option value="and" selected="selected">-- AND --</option><option value="or">-- OR --</option></select></label>
    <input type="button" value="Remove All Filters" onclick="RemoveAllFilters();" /></p>
    </form>
        <div spry:region="ReservesFix0910">
        <table>
          <tr>
            <th spry:sort="Date">Date</th>
            <th spry:sort="Comp">Comp</th>
            <th spry:sort="H/A">H/A</th>
            <th spry:sort="Opposition">Opposition</th>
            <th spry:sort="Res">Res</th>
            <th spry:sort="F">F</th>
            <th spry:sort="column7"> </th>
            <th spry:sort="A">A</th>
          </tr>
          <tr spry:repeat="ReservesFix0910">
            <td>{Date}</td>
            <td>{Comp}</td>
            <td>{H/A}</td>
            <td>{Opposition}</td>
            <td>{Res}</td>
            <td>{F}</td>
            <td>{column7}</td>
            <td>{A}</td>
          </tr>
        </table>
      </div></div>
    I am assuming that I am missing something very simple that is stopping this working. Even when I found a rogue dsDonuts reference from the original code still in mine and changed it nothing worked and I am pretty sure that all the code is now referencing my files and datasets.
    Do I need to use anything else such as xpaths to make this work? I noticed that the sample had and xpaths reference and was linked to an xpaths js file so perhaps that is needed as well but am not sure how I would implement it.
    Thanks in advance for any advice.
    Steve.

  • Multiple Filters Mode Checkboxes = Drop-Down Menu

    How to change the Multiple Filters Mode Checkboxes to the Drop-Down Menu?
    Here ist a adobe-lab-example:
    http://labs.adobe.com/technologies/spry/samples/data_region/MultipleFiltersModeSample.html
    The idea is a spry-dataset with 3 Multiple Filter Mode Drop-Down Menu's.
    As example:
    the first Drop-Down Menu with "None", "Glazed", "Sugar"
    the second with "Powdered Sugar", "Chocolate with Sprinkles"
    the third with "Chocolate", "Maple"
    Thanks

    This will get you started
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Untitled Document</title>
    <script src="SpryAssets/xpath.js"></script>
    <script src="SpryAssets/SpryData.js"></script>
    <script src="SpryAssets/SpryDataExtensions.js"></script>
    <script>
    var dsMusic = new Spry.Data.XMLDataSet("alles.xml", "state/cities/city");
    function ff20er(ds, row, index){ var c = row.jahr.charAt(0); var d = row.jahr.charAt(2); return c == 1 && d == 2 ? row : null; };
    function ff30er(ds, row, index){ var c = row.jahr.charAt(0); var d = row.jahr.charAt(2); return c == 1 && d == 3 ? row : null; };
    function ff40er(ds, row, index){ var c = row.jahr.charAt(0); var d = row.jahr.charAt(2); return c == 1 && d == 4 ? row : null; };
    function ff50er(ds, row, index){ var c = row.jahr.charAt(0); var d = row.jahr.charAt(2); return c == 1 && d == 5 ? row : null; };
    function ff60er(ds, row, index){ var c = row.jahr.charAt(0); var d = row.jahr.charAt(2); return c == 1 && d == 6 ? row : null; };
    function ff70er(ds, row, index){ var c = row.jahr.charAt(0); var d = row.jahr.charAt(2); return c == 1 && d == 7 ? row : null; };
    function ff80er(ds, row, index){ var c = row.jahr.charAt(0); var d = row.jahr.charAt(2); return c == 1 && d == 8 ? row : null; };
    function ff90er(ds, row, index){ var c = row.jahr.charAt(0); var d = row.jahr.charAt(2); return c == 1 && d == 9 ? row : null; };
    function ff2000er(ds, row, index){ var c = row.jahr.charAt(0); var d = row.jahr.charAt(2); return c == 2 && d >= 0 ? row : null; };
    function ZeitFilter(f) {
        dsMusic.removeAllFilters(true);
        if (f=='ff20er') dsMusic.addFilter(ff20er, true);
        if (f=='ff30er') dsMusic.addFilter(ff30er, true);
        if (f=='ff40er') dsMusic.addFilter(ff40er, true);
        if (f=='ff50er') dsMusic.addFilter(ff50er, true);
        if (f=='ff60er') dsMusic.addFilter(ff60er, true);
        if (f=='ff70er') dsMusic.addFilter(ff70er, true);
        if (f=='ff80er') dsMusic.addFilter(ff80er, true);
        if (f=='ff90er') dsMusic.addFilter(ff90er, true);
        if (f=='ff2000er') dsMusic.addFilter(ff2000er, true);
    </script>
    </head>
    <body>
    <select onchange="ZeitFilter(this.value);">
      <option value="" selected="selected">Zeit:</option>
      <option value="ff20er">20er</option>
      <option value="ff30er">30er</option>
      <option value="ff40er">40er</option>
      <option value="ff50er">50er</option>
      <option value="ff60er">60er</option>
      <option value="ff70er">70er</option>
      <option value="ff80er">80er</option>
      <option value="ff90er">90er</option>
      <option value="ff2000er">ab 2000</option>
    </select>
    <div spry:region="dsMusic">
      <table>
        <tr>
          <th spry:sort="name">Name</th>
          <th spry:sort="category">Category</th>
          <th spry:sort="jahr">Jahr</th>
          <th spry:sort="lang">Lang</th>
        </tr>
        <tr spry:repeat="dsMusic">
          <td>{name}</td>
          <td>{category}</td>
          <td>{jahr}</td>
          <td>{lang}</td>
        </tr>
      </table>
    </div>
    </body>
    </html>
    It will still need some tweeking when you add the other filters.
    For some reason, IE did not show the data, haven't worked out why yet, but FF no problem.
    Cheers

  • About Multiple Filters ?

    This is my xml file.  I Searched this page about http://labs.adobe.com/technologies/spry/samples/data_region/MultipleFiltersSample.html  Multiple Filters, but in this sample, it's also inculde filter_out,
    Now i want filter in, it's mean, in my xml file, i want use a checkbox, to keep '121212','979797' ,and filter out '545454', '525252'.
    function Filter1(ds, row, index){ var c = row.Comp_ID.??????????????????? }; Any one can help me?
    <Row>
    <Comp_ID>121212</Comp_ID>
    </Row>
    <Row>
    <Comp_ID>545454</Comp_ID>
    </Row>
    <Row>
    <Comp_ID>979797</Comp_ID>
    </Row>
    <Row>
    <Comp_ID>525252</Comp_ID>
    </Row>

    So, let me add the step to this that specifically is not working.  Let's add to this the fact that to the Material of Truck, there are attached Warranties and Service Contracts (Truck is part of an equipment master).  So, now I want all Red Trucks which have a Warranty expiring this month AND no Service Contract.  To further explain, the equipment master has a Type (Truck), and either a Warranty or Contract attached to it (either, both, or neither).  So I want to use the AND to identify Trucks that have no Warranty or and expiring one, AND Trucks that have no Service Contract.  I only want Trucks that meet both conditions at the same time.
    In our testing, we have found that using the AND with the KEEP functionality it works in all cases EXCEPT when someone owns more than one Truck.  For example, lets say Bob owns two Trucks, one has no Warranty but a Service Contract, and the other Truck has a Warranty, but no Service Contract.  In this case, Bob should not show up in the Target Group because he does not own a Truck that has no Warranty AND no Service Contract.  However, because he shows up in the no Warranty target group for one Truck, and the no Service Contract target group for the other Truck, when you do a KEEP you get Bob in the final Target Group.  Is there any way to find just Trucks that have both no Warranty and no Service Contract?
    Thanks, Bryan

  • SOLVED: Limit default view with Multiple non-destructive filters mode

    This was solved:
    I deleted the { subPaths: "word" } within my dataset. The dataset was pulling and displaying the subpath content which I don't need.
    ==================================================================
    Hi,
    I’m using the Multiple Filters Mode Sample to filter headlines in my xml file by the keywords associated with them.
    My question is, with no filters selected, how do you display only one headline for the default view? So, instead of the <headline> node repeating itself for every keyword within that node, it just displays one headline. I just want to display only one headline instead of repeating the headline based on the amount of keywords associated with it.
    If you view the donut example given a donut is displayed for every topping associated with it.
    I’m not as experienced with JS but I thought that if I create an array of all the possible keyword combinations and then use an if-then to display just one combination then it might work. The problem is that the amount of keywords will grow with time. I might amass 15-20 keywords in the next month, so an array might not be practical.
    Also, my “Remove All Filters” doesn’t work. The debugger is giving me an error that states: ‘documents.forms.0.noneCB’ is null or not an object -This would mean that the checkbox has not been selected is this correct?
    I’ve included the code and my xml data below. Any assistance would be greatly appreciated!
    <html>
    <head>
    <script language="JavaScript" type="text/javascript" src="/SpryAssets/xpath.js"></script>
    <script language="JavaScript" type="text/javascript" src="/SpryAssets/SpryData.js"></script>
    <script language="JavaScript" type="text/javascript" src="/SpryAssets/SpryDataExtensions.js"></script>
    <script type="text/javascript">
    <!--
    var dsHeadlines = new Spry.Data.XMLDataSet("headlines_test.xml", "/headlines/headline", { subPaths: "word" });
    function ffNone(ds, row, index){ return (row.word == "None") ? row : null; };
    function ffJudicial(ds, row, index){ return (row.word == "Judicial leadership") ? row : null; };
    function ffProBono(ds, row, index){ return (row.word == "Pro bono") ? row : null; };
    function ffHearings(ds, row, index){ return (row.word == "ATJ hearings and events") ? row : null; };
    function ffCreation(ds, row, index){ return (row.word == "ATJ entities creation and structure") ? row : null; };
    function ToggleFilter(enable, f)
                if (enable)
                            dsHeadlines.addFilter(f, true);
                else
                            dsHeadlines.removeFilter(f, true);
    function RemoveAllFilters()
                document.forms[0]["noneCB"].checked = false;
                document.forms[0]["judicialCB"].checked = false;
                document.forms[0]["probonoCB"].checked = false;
                document.forms[0]["hearingsCB"].checked = false;
                document.forms[0]["creationCB"].checked = false;
                dsHeadlines.removeAllFilters(true);
    -->
    </script>
    </head>
    <body>
                <div class="liveSample" style="float: left; margin-bottom: 4px;">
                <form action="">
                <p>Select any of the following:</p>
                <ul style="list-style:none">
                    <li><label><input name="noneCB" type="checkbox" value="" onclick="ToggleFilter(this.checked, ffNone);" />None</label></li>
                    <li><label><input name="judicialCB" type="checkbox" value="" onclick="ToggleFilter(this.checked, ffJudicial);" />Judicial leadership</label></li>
                    <li><label><input name="probonoCB" type="checkbox" value="" onclick="ToggleFilter(this.checked, ffProBono);" />Pro Bono</label></li>
                    <li><label><input name="hearingsCB" type="checkbox" value="" onclick="ToggleFilter(this.checked, ffHearings);" />ATJ hearings/events</label></li>
                    <li><label><input name="creationCB" type="checkbox" value="" onclick="ToggleFilter(this.checked, ffCreation);" />ATJ entities: creation and structure</label></li>
    </ul>
                <p><label>Filter Mode: <select onchange="dsHeadlines.setFilterMode(this.value, true);"><option value="and" selected="selected">-- AND --</option><option value="or">-- OR --</option></select></label>
                <input type="button" value="Remove All Filters" onclick="RemoveAllFilters();" /></p>
                </form>
                </div>
                <div spry:region="dsHeadlines">
                    <table>
                        <tr><th>Title</th><th>Date</th><th>State</th></tr>
                        <tr spry:repeat="dsHeadlines"><td valign="top"><a href="{hyperlink}">{title}</a><p></p></td><td valign="top">{date}</td><td valign="top">{state}</td></tr>
                    </table>
                </div>
    </body>
    </html>
    <?xml version="1.0" encoding="UTF-8"?>
    <headlines>
      <headline>
        <id>1</id>
        <title>
          <![CDATA[Save the date! 2009 National Meeting of State Access to Justice Chairs will take place in Orlando in Saturday, May 16, 2009. Invitations will be mailed out in late January.]]>
        </title>
        <hyperlink>
          <![CDATA[http://www.abanet.org/legalservices/sclaid/atjresourcecenter/annualmeeting.html]]>
        </hyperlink>
        <state>FL</state>
        <date>20090516</date>
        <word id="0001">None</word>
      </headline>
      <headline>
        <id>2</id>
        <title>
          <![CDATA[ABA Day in Washington. ABA Day legislative visits on April 21-22 will focus solely on access to justice issues. Register and receive materials, training, and schedule of events free before March 14 at: http://www.abanet.org/poladv/abaday09/.]]>
        </title>
        <hyperlink>
          <![CDATA[http://www.abanet.org/poladv/abaday09/]]>
        </hyperlink>
        <state>DC</state>
        <date>20090421</date>
        <word id="0002">Pro bono</word>
        <word id="0004">ATJ hearings and events</word>
        <word id="0005">Judicial leadership</word>
      </headline>
      <headline>
        <id>3</id>
        <title>
          <![CDATA[North Carolina Bar Association and North Carolina Bar Association Foundation host second annual 4ALL Statewide Service Day ask-a-lawyer event at five call centers around the state. (3/6/2009)]]>
        </title>
        <hyperlink>
          <![CDATA[http://www.4allnc.org/]]>
        </hyperlink>
        <state>NC</state>
        <date>20090306</date>
        <word id="0002">Pro bono</word>
      </headline>
      <headline>
        <id>4</id>
        <title>
          <![CDATA[Wyoming Access to Justice Commission holds its first meeting. (2/27/2009)]]>
        </title>
        <hyperlink>
          <![CDATA[http://www.nlada.org/DMS/Documents/1236184561.24/AJC%20Appointing%20Order%202009.pdf]]>
        </hyperlink>
        <state>WY</state>
        <date>20090227</date>
        <word id="0003">ATJ entities creation and structure</word>
      </headline>
      <headline>
        <id>5</id>
        <title>
          <![CDATA[Tennessee’s Supreme Court launches Access to Justice Campaign with the first in a series of public hearings. (2/26/2009)]]>
        </title>
        <state>TN</state>
        <date>20090226</date>
        <word id="0003">ATJ entities creation and structure</word>
        <word id="0004">ATJ hearings and events</word>
        <word id="0005">Judicial leadership</word>
      </headline>
    </headlines>

    1) I deleted bridge-utils, netcfg
    2) I edited /etc/hostapd/hostapd.conf:
    interface=wlan0
    #bridge=br0
    edited /etc/dnsmasq.conf:
    interface=wlan0
    dhcp-range=192.168.0.2,192.168.0.255,255.255.255.0,24h
    and edited /etc/rc.local:
    ifconfig wlan0 192.168.0.1 netmask 255.255.255.0
    ifconfig wlan0 up
    3) I added in autostart these daemons: hostapd, dnsmasq and iptables.
    Profit!

  • Explain about transparent mode, single mode, multiple context mode

    You can explain about the differents of transparent mode, single mode, multiple context mode in ASA 5500? Thank you very much.

    Great question. Hope the below helps:
    Transparent Mode: In this mode, the ASA will filter traffic without requiring L3 on the ASA. This means that in your config you will not put IPs on the interfaces to be used for traffic filtering. Thus, filtering is transparent to the traffic as the traffic isn't directly routed to the firewall. Think of it like you have a server plugged into a switch. In transparent mode, you place the ASA between the server and the switch and no configuration change is required to the server. In routed mode, you place the ASA in the same physical location between the server and switch, but have to change the server to use the ASA as a default gateway.
    Single Mode: Default mode of an ASA. The ASA acts as a single firewall and all interfaces are provisioned to be managed through a single firewall configuration.
    Multiple Context Mode: The ASA is split into multiple virtual configurations. With the ASA now virtualized, you provision the physical interfaces on the ASA to the virtual firewall configured. Each context has it's own configuration seperate from the rest of the firewall. Multi-context is meant for enterprises to invest in a single piece of hardware and scale it for use as multiple security devices.
    Hope this helps. Let me know if you have anymore questions!
    -Mike
    http://cs-mars.blogspot.com

  • [WebServcie] How to make multiple Filters in QueryService

    I am a newbie to the BO Development and I encountered some problems when I try to retrieve data from a BO universe. I am trying to create a query with multiple filters, using the web service SDK,  shown as followed:
    //Build a filter     
    QueryCondition boQueryCondition = QueryCondition.Factory.newInstance();               
    Filter boCondFilter = Filter.Factory.newInstance();
    Filter boCondFilter2 = Filter.Factory.newInstance();
    boCondFilter.setFilteredObject(boQueryResultObjects[0]);
    boCondFilter.setFilterOperator(FilterOperator.EQUAL);
    boCondFilter2.setFilteredObject(boQueryResultObjects[2]);
    boCondFilter2.setFilterOperator(FilterOperator.EQUAL);
    Operand[] boConditionValues = new Operand[1];
    Values boFreeValues = Values.Factory.newInstance();               
    String[] boConditionValueString = new String[] {"2005"};
    boFreeValues.setFreeValueArray(boConditionValueString);               
    boCondFilter.setOperandArray(boConditionValues);               
    Operand[] boConditionValues2 = new Operand[1];
    Values boFreeValues2 = Values.Factory.newInstance();               
    String[] boConditionValueString2 = new String[] {"1"};
    boFreeValues2.setFreeValueArray(boConditionValueString2);               
    boConditionValues2[0] = boFreeValues2;
    boCondFilter2.setOperandArray(boConditionValues2);
    ConditionBase[] boConditionBase = new ConditionBase[2];
    boConditionBase[0] = boCondFilter;
    boConditionBase[1] = boCondFilter2;
    boQueryCondition.setItemArray(boConditionBase);
    boQuery.setQueryCondition(boQueryCondition);
    boQuery.setQueryResultArray(boQueryResultObjects);
    boQuerySpec.setQueryBase(boQuery);     
    // Create the query
    ReturnProperties  boRetProp = ReturnProperties.Factory.newInstance();
    boRetProp.setIncludeQuerySpecification(true);
    DataProviderInformation  boDataProviderInfo = boQuerySrv.createDataProvider(boUniverseUID, boQuerySpec, boRetProp);
    String boQueryDocRef = boDataProviderInfo.getDocumentReference();
    The code shows some errors when generating the query.
    DataProviderInformation  boDataProviderInfo = boQuerySrv.createDataProvider(boUniverseUID, boQuerySpec, boRetProp);
    The code goes fine when I was following the steps provided by https://boc.sdn.sap.com/node/18569. However, error occurs when I try implement another filter.
    Please advise if anything goes wrong.
    By the way, I'm writing a Java application where I have to do my own presentation of the data, but I'd like to use BO get the data.
    I am currently having a work routine like this:
    1. Login to BO Enterprise Credential via Java API
    2. Run the QueryService to create a document object
    3. Run the ReportEngine to read the document object and show  the result as a XML.
    4. Parse the XML and retrieve the data.
    It seems that it is quite a stupid way to perform the task. Would you mind advising a better way?
    I have spent quite a lot of time to reading docs to see if WSDL operation provided by QaaWS is suitable for the task but not enough sample can be found.
    Edited by: Thomas Tse on Sep 3, 2008 3:38 AM

    Are you playing all the sounds from the same thread? If so, then a sound won't play until the one before it finishes.

  • Airtunes "skips" during "multiple speakers" mode...

    The problem is when I play in the new "multiple speakers" mode my local PC skips, and remote signal plays fine.
    If I select local by itself, my PC plays fine, or if I select remote by itself, it also plays fine. No other issues with Itunes, ever! Just in this mode. And also, when I use my mac (macmini), in "multiple speaker" mode it works fine on both local, local/remote, and remote, so I'm guessing this is just a PC issue.
    Ive installed the latest firmware for Airport basestation, Airport express, and my audio card on the PC. I'm using the latest Itunes (6.04.2).
    Ive read post and installed the latest directx, and selected safe mode for quicktime. But still nothing has resolved it.
    Any suggestions would be GREATLY appreciated. Thanks! -Chris

    I have this issue as well with my PC.
    Here is what i have ascertained. i have 3 airport expresses (let's call them A, B and C) and then my local pc:
    - each speaker (A, B, C) individually works remotely.
    - each works with "local pc" when 2 speakers are selected (A+local, B+local or C+local).
    - one set of 2 together works okay, but not great (A+C).
    - the other sets of 2 are terrible (B+C, A+B)
    - forget about playing all three sets of speakers at the same time (ABC) - it doesn't even play for 15 seconds before breaking up.
    Speaker A and C definitely have the clearest path to the router, so i may try to move the router close to A and B and see if C becomes a real problem or not... just trying to hone in on the issue - but regardless it seems like multiple sets of speakers overwhelm the network.
    is more netowrk power the answer? or is it something more fundamental (i.e., today's wireless networks should handle the traffic).
    Chris

  • HT1206 Lots of info about one user using multiple computers. What about multiple users with separate Apple IDs using same computer? Having problems getting my wifes new iPhone talking to her apple account on the computer we share (2 users)

    Lots of info about one user using multiple computers. What about multiple users with separate Apple IDs using same computer? Having problems getting my wifes new iPhone talking to her apple account on the computer we share (2 users)

    You need to create a user account for your wife (or yourself depending on who has the current user account). When syncing, each of you should sign in as a separate user, login to iTunes and then sync. I had this problem when my sister got an iPhone. When we did her initial sync, everything on my iPhone showed up on hers. Apple gave me this solution.

  • Remote Access VPN Support in Multiple Context Mode (9.1(2))?

    Hi Guys,
    I am currently running two Cisco ASA5520 (ASA Version: 9.1(2)) firewalls in Active/Standby failover and was contemplating the option of migrating my remote access VPN to these firewalls. However seeing that the new IOS now support mixed multiple context mode and dynamic routing. Is it safe to ask whether or not Remote Access VPN is now support in this IOS upgrade?
    Multiple Context Mode New Features:
    Site-to-Site VPN in multiple context mode | Site-to-site VPN tunnels are now supported in multiple context mode.
    New resource type for site-to-site VPN tunnels | New resource types, vpn other and vpn burst other, were created to set the maximum number of site-to-site VPN tunnels in each context.
    Dynamic routing in Security Contexts | EIGRP and OSPFv2 dynamic routing protocols are now supported in multiple context mode. OSPFv3, RIP, and multicast routing are not supported.
    New resource type for routing table entries | A new resource class, routes, was created to set the maximum number of routing table entries in each context. We modified the following commands: limit-resource, show resource types, show resource usage, show resource allocation. We modified the following screen: Configuration > Context Management > Resource Class > Add Resource Class.
    Mixed firewall mode support in multiple context mode | You can set the firewall mode independently for each security context in multiple context mode, so some can run in transparent mode while others run in routed mode. We modified the following command: firewall transparent. You cannot set the firewall mode in ASDM; you must use the command-line interface. Also available in Version 8.5(1).
    Regards,
    Leon

    Hey Leon,
    According to the ASA 9.1 Configuration Guide, Remote Access VPN is not yet supported with version 9.1(2). Only Site-to-Site VPN support in multiple context was introduced with release ASA 9.0(x). This was mentioned in the 9.0(x) release notes.
    Regards,
    Dennis

  • AirTunes (Multiple Speaker Mode)

    AirTunes (Multiple Speaker Mode) does not show up.
    AE firmware has been updated to 6.3
    using Itunes 7.02
    Mac osx 10.4.8
    I just updated everything to what you see above, I have gone into system preferences, my firewall is off, and udp traffic blocking is unchecked.
    I cannot see Multiple speaker mode, but it does list my computer and an external set of speakers, which I can connect to individually but cannot connect to both at the same time.
    Any help would be appreciated.
    mini mac   Mac OS X (10.4.8)   Itunes 7.02, firmware update 6.3 for AE

    While running iTunes, the small button in the bottom right corner where you choose your output. Click on this and there is an option to connect to multiple speakers. I just updated all the same things as yourselves yestarday and that is how i found it to work.
    Pinkster

  • How to go about multiple inclination with different data selection in Delta

    We have to copy large amount of data ( more than 42lak of recodes) selectivly from on ODS to other ODS. in delata load ( BW 3.5 enverioment)
    I thought of loading data in slices through delta loading with selection condition.
    step 1> Do The initialization with selection condition as for calyear =2001 ( Init without data transfer )
    step 2> Take the delta load .. it will take all delta record with same selection
    step 3> Now I want to do Initialization with selection condition as for calyear =2002
    step 4> take the delta now it will take delta for year 2001 and 2002 both Right ?
    Here what problem I am facing.. while doing 2nd time initialization it prompt me to delete the last  initialization request form scheduler menu.
    if i delete the last request .. will it take the delta  for previous initialization selection  and new initialization selection. ?
    Please advice how to go about multiple inclination with different data selection in delta loading.
    Looking forward your reply.

    Hi,
    step 1> Do The initialization with selection condition as for calyear =2001 ( Init without data transfer )
    step 2> Take the delta load .. it will take all delta record with same selection
    step 3> Now I want to do Initialization with selection condition as for calyear =2002
    step 4> take the delta now it will take delta for year 2001 and 2002 both Right ?
    You are correct with this scenario normally. The message you mentioned normally comes up when you open a infopackage and don't change the selection first or in case you have overlapping selections with an already done init.
    regards
    Siggi

  • Multiple Filtering of Nested Data Set Spry

    Hi,
    I am trying to use multiple filters on a nested data set using Spry but it does not work, no matter how many times I've re-read the code and verified that I'm using the code the right way. What is going on?
    When I use a single non-destructive filter (ie... ds.filter()) on the nested data set, the filter works beautifully. However, when I want to use multiple filters (I use ds.addFilter()), it looks like my filter function (FilterByState) is not being kicked off.
    I linked to the appropriate files, SpryData.js, xpath.js, SpryNestedXMLDataSet.js and SpryDataExtensions.js. These are the latest version, 1.6.1.
    Why will ds.filter work and not ds.addFilter? I haven't written the second filter code yet because this is stopping me from moving forward. Even though, I haven't written that, shouldn't addFilter work too?
    Please help, this is driving me crazy.
    Here is my code:
    <script type="text/javascript">          
         Spry.Utils.addLoadListener(function () {
              if (document.getElementById("stateSelect").selectedIndex != 0) {
                   document.getElementById("stateSelect").selectedIndex = 0;    
              if (document.getElementById("dateSelect").selectedIndex != 0) {
                   document.getElementById("dateSelect").selectedIndex = 0;    
         var dsTopics = new Spry.Data.XMLDataSet("compliance.xml", "compliance/subject", {useCache: false });         
         var dsDocuments = new Spry.Data.NestedXMLDataSet(dsTopics, "doc");
         var dsDates = new Spry.Data.XMLDataSet("compliance.xml", "compliance/subject/doc/date", {useCache: false, subPaths: "@num", distinctOnLoad: true, distinctFieldsOnLoad: ['date'], sortOnLoad: "@num", sortOrderOnLoad:"ascending"});
         dsDates.setColumnType("@num", "number");
         var currentSelection;
         //var FilterByState;
         function showDocuments(currentIndex) {
              dsTopics.setCurrentRowNumber(currentIndex);
              document.getElementById("stateSelect").selectedIndex = 0;
              document.getElementById("dateSelect").selectedIndex = 0;
              dsDocuments.removeAllFilters(true);
         function ToggleFilter(selected, f) {
              chosenState = selected;
              if (selected != "") {
                   alert("something's selected");
                   dsDocuments.addFilter(f, true);
              else {
                   alert("something is NOT selected");
                   dsDocuments.removeFilter(f, true);
              //dsDocuments.applyFilters();
         var chosenState;
         var chosenDate;
         function FilterByState(ds, row, rowNumber) {
              alert("Filtering by state");
              var currentSelection = document.getElementById("stateSelect").options[chosenState];
              if (row["state"].search(currentSelection.value) != -1) {
                   return row;
              else
                   return null;
         function FilterByDate(ds, row, rowNumber) {
              var currentSelectedDate = document.getElementById("dateSelect").options[chosenDate];    
              if (row["date"] == currentSelectedDate)
                   return row;
              else
                   return null;
    </script>
    <div class="articlePage articleContent">
         <h2 class="bodyCopyBold">Compliance Widget</h2>
         <form name="selectForm" action="">
              <div spry:region="dsTopics" id="topicSelector">
                   <label for="topicSelect" class="dataLabel">Topic:</label>
                   <select spry:repeatchildren="dsTopics" class="input" name="topicSelect" id="topicSelect" onchange="showDocuments(this.selectedIndex);">
                        <option spry:if="{ds_RowNumber} == {ds_CurrentRowNumber}" value="{name}" selected="selected">{name}</option>
                        <option spry:if="{ds_RowNumber} != {ds_CurrentRowNumber}" value="{name}">{name}</option>
                   </select>
              </div>
              <label for="stateSelect" class="dataLabel">State:</label>
              <select class="input" name="stateSelect" id="stateSelect" onchange="ToggleFilter(this.selectedIndex, FilterByState);">
                   <option value="" selected="selected">Please Select</option>
                   <option value="All States">All States</option>
                   <option value="AL">Alabama</option>
                   <option value="AK">Alaska</option>
                   <option value="AZ">Arizona</option>
                   <option value="AR">Arkansas</option>
                   <option value="CA">California</option>
                   <option value="CO">Colorado</option>
                   <option value="CT">Connecticut</option>
                   <option value="DE">Delaware</option>
                   <option value="DC">District of Columbia</option>
                   <option value="FL">Florida</option>
                   <option value="GA">Georgia</option>
                   <option value="HI">Hawaii</option>
                   <option value="ID">Idaho</option>
                   <option value="IL">Illinois</option>
                   <option value="IN">Indiana</option>
                   <option value="IA">Iowa</option>
                   <option value="KS">Kansas</option>
                   <option value="KY">Kentucky</option>
                   <option value="LA">Louisiana</option>
                   <option value="ME">Maine</option>
                   <option value="MD">Maryland</option>
                   <option value="MA">Massachusetts</option>
                   <option value="MI">Michigan</option>
                   <option value="MN">Minnesota</option>
                   <option value="MS">Mississippi</option>
                   <option value="MO">Missouri</option>
                   <option value="MT">Montana</option>
                   <option value="NE">Nebraska</option>
                   <option value="NV">Nevada</option>
                   <option value="NH">New Hampshire</option>
                   <option value="NJ">New Jersey</option>
                   <option value="NM">New Mexico</option>
                   <option value="NY">New York</option>
                   <option value="NC">North Carolina</option>
                   <option value="ND">North Dakota</option>
                   <option value="OH">Ohio</option>
                   <option value="OK">Oklahoma</option>
                   <option value="OR">Oregon</option>
                   <option value="PA">Pennsylvania</option>
                   <option value="RI">Rhode Island</option>
                   <option value="SC">South Carolina</option>
                   <option value="SD">South Dakota</option>
                   <option value="TN">Tennessee</option>
                   <option value="TX">Texas</option>
                   <option value="UT">Utah</option>
                   <option value="VT">Vermont</option>
                   <option value="VA">Virginia</option>
                   <option value="WA">Washington</option>
                   <option value="WV">West Virginia</option>
                   <option value="WI">Wisconsin</option>
                   <option value="WY">Wyoming</option>
              </select>
              <div spry:region="dsDates" id="dateSelector">
                   <label for="dateSelect" class="dataLabel">Date:</label>
                   <select class="input" name="dateSelect" id="dateSelect">
                        <option value="" selected="selected">Please Select</option>
                        <option spry:repeat="dsDates" value="{date}">{date}</option>
                   </select>
              </div>         
              <div class="spacer10"></div>
              <div id="documentListing" class="bodyCopy">
                   <ul spry:region="dsDocuments" spry:detailregion="dsTopics" class="list2">
                        <li spry:repeat="dsDocuments">{title}</li>
                   </ul>
              </div>
         </form>
    Here is the xml:
    <?xml version="1.0"?>
    <compliance>
         <subject>
              <name>Agent Termination</name>
              <doc id="91000038">
                   <title>Reminder: Agent Contract Termination Notification</title>
                   <date num="200907">July 2009</date>
                   <state>OR</state>
              </doc>
              <doc id="91000031">
                   <title>Reminder: Agent Contract Termination Notification 2</title>
                   <date num="200807">July 2008</date>
                   <state>OR</state>
              </doc>
              <doc id="91000031">
                   <title>Reminder: Agent Contract Termination Notification 2</title>
                   <date num="201001">January 2010</date>
                   <state>OR</state>
              </doc>
         </subject>
         <subject>    
              <name>Agent Training</name>
              <doc id="91000034">
                   <title>Oregon Agent Retraining</title>
                   <date num="200908">August 2009</date>
                   <state>OR</state>
              </doc>
              <doc id="91000060">
                   <title>Multi-State Corrective Action Plan - Training Courses – BLN Changes</title>
                   <date num="200902">February 2009</date>
                   <state>All States</state>
              </doc>
              <doc id="91000062">
                   <title>Required Training – Change for California Agents</title>
                   <date num="200902">February 2009</date>
                   <state>CA</state>
              </doc>
              <doc id="91000065">
                   <title>Required Training - BCLIC Agents</title>
                   <date num="200902">February 2009</date>
                   <state>NY</state>
              </doc>
              <doc id="91000071">
                   <title>Multi-State Corrective Action Plan - Training Courses – BLN Changes</title>
                   <date num="200901">January 2009</date>
                   <state>All States</state>
              </doc>
              <doc id="91000074">
                   <title>Multi-State Corrective Action Plan - Training Courses – BLN Changes 2</title>
                   <date num="200910">October 2009</date>
                   <state>All States</state>
              </doc>
         </subject>
         <subject>
              <name>Agents Licenses</name>
              <doc id="91000064">
                   <title>Georgia Agent Consent Orders</title>
                   <date num="200902">February 2009</date>
                   <state>GA</state>
              </doc>
              <doc id="91000066">
                   <title>New York State Correction Law</title>
                   <date num="200902">February 2009</date>
                   <state>NY</state>
              </doc>
         </subject>
         <subject>
              <name>DNC</name>
              <doc id="91000063">
                   <title>States Prohibit Unsolicited Calls</title>
                   <date num="200902">February 2009</date>
                   <state>AL, LA, RI, UT</state>
              </doc>
         </subject>
         <subject>
              <name>LTC Partnership</name>
              <doc id="91000056">
                   <title>Alabama Long Term Care and Long Term Care Partnership Compliance</title>
                   <date num="200903">March 2009</date>
                   <state>AL</state>
              </doc>
         </subject>
    </compliance>
    Thanks

    Hi Marlene,
    It isn't working right because you have a bug in your
    onchange attribute for your select:
    <select id="test"
    onChange="ds1.setCurrentRow(this.selectedIndex);">
    <option spry:repeat="ds1"
    id="{ds_RowID}">{@id}</option>
    </select>
    setCurrentRow() takes a rowID not a rowNumber. The
    "selectedIndex" of the select element is the equivalent of a row
    number, so if you want to change the current row by row number then
    use setCurrentRowNumber() instead:
    <select id="test"
    onChange="ds1.setCurrentRowNumber(this.selectedIndex);">
    <option spry:repeat="ds1"
    id="{ds_RowID}">{@id}</option>
    </select>
    After you make that change, you will see that things work as
    expected.
    --== Kin ==--

  • Support IPSec VPN Client in ASA Multiple Context Mode

    I've looked at under "Cisco ASA Series CLI Configuration Guide, 9.0" on "Configuring Multiple Context Mode", it says
    "IPsec sessions—5 sessions. (The maximum per context.) ".  Does it mean in ASA Multiple Contest Mode support IPSec VPN Client? I just want to confirm it because I can't seem find any doc that clearly spell it out.  I'll appreciate anyone who can clarify it.
    Thank Jason.
    ( Please direct me to the right group if I'm not for the first time I post it in the Cisco support forum)

    This is from the v9.3 config-guide:
    Unsupported Features
    Multiple context mode does not support the following features:
    Remote access VPN. (Site-to-site VPN is supported.)

  • SSLVPN/webvpn in multiple context mode?

    We already know that ASA 9.0 supports site-to-site VPN in multiple context mode. But remote access VPN isn't supported. Obviously, SSL-VPN is a very important feature for most multi-tenant deployment scenarios where each context acts as a border firewall towards the Internet for each tenant. The alternative to terminate all tenant remote-access VPNs in one context means that each tenant would have to be routable from the ASA, which of course isn't a reasonable requirement in most cases.
    So, what I'd like to do is to deploy an ASA cluster, and provide remote access VPNs for each tenant, where the connectivity for each remote access group can be addressed with whatever IP address space, and that goes into it's own VRF in the back-end.
    As far as I can tell, this isn't doable with the ASA, since multiple context mode prohibits the use of remote access VPN, and I can't think of any other work-around than either having individual firewalls running in single context mode for each tenant, or demand that all tenants are interoperable routing-wise and configure a separate ip address pool in a single context mode for each tenant.
    Essentially, there's no good way to implement this with multiple virtual firewalls, using cisco firewalls? Or am I missing something?

    If you set up a pair of single-context ASAs for VPN termination, configure a group policy per customer and use the 'Restrict access to VLAN' feature, you could separate customers' traffic and still just use one FW pair for all customers. This pair would connect to the same switch infrastructure as your multi-context edge firewall and thus allow a consolidated solution.
    Sent from Cisco Technical Support iPad App

Maybe you are looking for

  • How do I create a pdf in Indesign with 40 file hyperlinks so it can be used on different computers?

    I am creating a document in Indesign CS4 that is to be exported as a pdf. Within this one page document, there are approximately 40 listed products, one after the other and each product has been set up to hyperlink to a specific pdf in the same direc

  • Help need in Table control

    Hi guys,        I am new to dialog programming , I have the following requirement in table control.    I have to be displayed 4 fields in Table control 1. Mara-MATNR (Match code) 2.Mara-BISMT 3. Mara-MATKL 4. Makt-MAKTX         Based on Material numb

  • Account group and Business partner link

    Hi all, Is there any relation maintained for Account group (From R/3)  and Business Partner Role in GTS system?

  • No InBooklet SE features for InDesign CS3, is there a 3rd party plug-in ???

    I am searching for a plug-in for Mac that will supply all/most of the capabilities of InDesign's CS2 InBooklet SE for InDesign CS3. Realizing that Print Booklet was not designed to offer the same services as it's CS2 predecessor, I am hoping that a 3

  • Unable to obtain dynamiclink server

    Hello. I'm using a windows 8 pc. I think its a 64bit, not sure. but anyways i installed adobe creative cloud. had trouble installing after effects due to internet and such. but eventually i got it downloaded then had trouble actually starting it. ran