Listing subcats under category

Hi,
OK I have two tables. One with a list of categories and
another with a list of sub categories. Does anyone know how to make
it so that I can list all of the subcategories under the correct
category?
I tried the tutorial here:
http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=154
but had no luck as I just get an object required error.
I am using ASP and MYSQL 4.
Thank you,

Just thought I'd say this is the error I get when using this
particular code:
Error:
Microsoft VBScript runtime error '800a01a8'
Object required: ''
/knowledgebase/Default.asp, line 180
Line80:
SQL = "SELECT * FROM HelpDesk.kbCategories, HelpDesk.kbSubCat
& "WHERE kbCategories.Category = kbSubCat.CategoryID " _
& "ORDER BY kbCategories.Category, kbSubCat.Subcat"
Set RS = conn.Execute( SQL )
Any Ideas?

Similar Messages

  • Stsadm command - enumerate subsites/list/libraries under 1 site collection into a csv file

    Hi all
    Do we have any examples of stsadm commands that I can write to enumerate the subsites/lists/libraries under the sharepoint 2007 site.

    You can still use PowerShell how to do it, even when its SharePoint 2007 (you won't be able to use the SharePoint cmdlets though), but it will make it easier to generate the csv file. Look at this link to get the code for the enumerations:
    http://blogs.msdn.com/b/vijay/archive/2009/10/01/how-to-list-all-the-sub-sites-and-the-site-collections-within-a-sharepoint-web-application-using-windows-powershell.aspx
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • Why is Photoshop listed twice under Apps in Creative Cloud?

    Why is Photoshop listed twice under Apps in Creative Cloud?

    Thanks for the reply.
    I opened a chat session with Adobe and they instructed me to simply
    uninstall one of the versions.  For example
    I had Photoshop CC and Photoshop CC(2014).  I uninstalled the Photoshop CC.
    Thanks again,
    *Pete Sadel **
    [email protected] <mailto:[email protected]>
    404-213-8454*

  • My mini mac recognizes my usb mic, but premier pro does not list it under preferences?

    my mini mac recognizes my usb mic, but premier pro does not list it under preferences?

    Hi Robert,
    This has to do with Audio MIDI setup. See this article: https://multimedia.nscad.ns.ca/pdfs/Setting%20up%20a%20USB%20Microphone%20for%20Premiere%2 0CS6.pdf
    I hope it helps!
    Thanks,
    Kevin

  • I do not view NPD BU under Category Tab in Activity search page

    Hi there,
    I'm using Agile PLM 6.1.1.0_Release_12
    I'm not able to view NPD BU under Category Tab in Activity search page.
    1) I created 2 NPD BU
    - Italy
    - International
    2) I created some Activity template with Italy and International as BU.
    The issue is that when I search Activity Template by Category system does not display any results.
    Moreover I'm not able to add an activity template in a project template.
    Could you kindly explain me why? I hope my question is clear.
    Thank you very much.
    Best regards,
    Stefano

    I tried this on my local 6.1.1 build and it appears to work.   Go ahead and submit an SR so support can investigate. 

  • How to display multiple categories of webapp items in list view? Changing listbox list to checkbox list to select category in submission process?

    Hello!
    1.
    I am trying to get my page to list webapp items that are part of a few categories. I understand that if i want to view only one category, I just need to do the normal process of choosing that category and placing it out. So my question is: How do I display multiple categories of items in a webapp in a single page. I've tried this
    {module_webapps,WEBAPP_ID,c,CATEGORY_ID1,,,,10,,1} {module_webapps,WEBAPP_ID,c,CATEGORY_ID2,,,,10,,1}
    This only displays the everything from the first category, then everything from the next, which will not make it in order of date.
    I've also tried this for fun:
    {module_webapps,WEBAPP_ID,c,CATEGORY_ID1&CATEGORY_ID2,,,,10,,1}
    How can I go about doing it?
    2.
    I am looking to allow users to input a webapp item and allow them to select a category to tie to that item.
    <label for="CAT_Category">Category (You may select more than 1)<span class="req">*</span></label>
        <select name="CAT_Category" id="CAT_Category" class="cat_listbox" rows="4" multiple="multiple" style="height: 60px;">
        <option value="CATEGORY_ID1">--- Option 1</option>
        <option value="CATEGORY_ID2">--- Option 2</option>
        </select>
    Is it possible for me to change the listbox style into a checkbox style such that the user doesn't have to control+click multiple options?

    No answer to No.1 but I really want to find it out too.
    No.2 
    If you already know list of the categories & ID you can manually create a list of checkboxes
    <input type="checkbox" name="CAT_Category" value="89081" />
    <input type="checkbox" name="CAT_Category" value="89082" />
    <input type="checkbox" name="CAT_Category" value="89083" />
    something like that should work

  • Sharepoint programmaticaly add list item under current user - 0x80070005 (E_ACCESSDENIED))

    Please help me.
    In our company, we developed an application under the Apple device to work with the company's internal services , including it in this application it is possible to send messages to the corporate blog portal, which is deployed on Sharepoint 2013 .
    The application architecture is as follows:
    Server on which you installed Sharepoint 2013 is called "SPS01", on the same server is deployed on IIS web application called "WS",
    application "WS" taken in a separate application pool from Sharepoint 2013 .
    All Apple client devices communicate with Sharepoint 2013 through the web application "WS". For us it is important that when applying for Sharepoint 2013 with mobile
    devices, Apple remained the security context of the authenticated user, as access to documents stored in Sharepoint 2013 demarcated .
    For what would be maintained security context authenticated users , we applied techniques such as impersonation and kerberos .
    Request goes like this:
    Apple client connects to the Web application "WS", on the "WS" configured
    to connect to Kerberos enabled and impersonation . (Apple iOS 7 support kerberos ) , then all customer interaction with Sharepoint 2013 going through "WS". Kerberos
    we use that to get rid of the problem of "double hopes" that occur when a web application "WS"
    refers to the other network resources that are beyond the server "SPS01".
    Example:
    Web application "WS", which is on the server "SPS01", refers to a
    file server «FS01», to get a list of documents from the usual file balls through kerberos and impersonation request comes on «FS01»
    from the user who is authenticated by web application «WS».
    But there was a problem:
    If the user enters the Sharepoint 2013 through the browser on your computer, it can successfully keep there blog post .
    If the user is drawn to Sharepoint 2013 from a mobile device Apple, and tries to leave a message in the blog , the error appears : Access Denied. Exception: Access is denied.
    (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
    Empirically by the following was revealed: I tried to give you a right to - it did not help:
    Administrator farm
    SQL database config and content - owner
    Administrator of User Profile Services
    Local Administrator
    BUT!
    When deploying Sharepoint 2013 group was created security domain - "domain \ farm_administrators" - which is in the local group Sharepoint 2013 - "Farm
    Administrators" If the user is included in the domain security group - "domain \ farm_administrators", then the user can successfully keep a blog
    post from a mobile device Apple.
    I want to note that this happens only through security group AD «domain \ farm_administrators»
    The question is, how can you determine what rights the special security group "domain \ farm_administrators" in Sharepoint 2013 , whereby the participants can successfully
    send messages to the blog with Apple mobile devices via the web application "WS".
    We also found a workaround , but it will not work as we would like.
    RunWithElevatedPrivileges
    http://msdn.microsoft.com/en-us/library/bb466220.aspx
    We can execute a part of the Web application "WS" with the highest privileges. In this case, the user was able to successfully send a message to your blog from your
    mobile device Apple.
    But when the code runs with the highest privileges - lost the security context of the authenticated user.
    In the author is shown as "System Account"
    public static XmlDocument addBlogMessage(string projectID, string text)
    XmlDocument response = new XmlDocument();
    string result = string.Empty;
    string webUrl = SPUrlUtility.CombineUrl(Constants.SITE_URL, projectID);
    using (SPSite site = new SPSite(webUrl))
    using (SPWeb web = site.OpenWeb())
    SPList blogMessagesList = web.GetList(SPUrlUtility.CombineUrl(webUrl, Constants.BLOG_MESSAGES_LIST_URL));
    SPListItem newBlogMessage = SPUtility.CreateNewDiscussion(blogMessagesList, "Сообщение");
    newBlogMessage[SPBuiltInFieldId.Body] = text;
    web.AllowUnsafeUpdates = true;
    newBlogMessage.Update();
    web.AllowUnsafeUpdates = false;
    result = "<response><userResult><code>Success</code><messageID>" + newBlogMessage["ID"].ToString() + "</messageID></userResult></response>";
    response.Load(new System.IO.StringReader(result));
    return response;

    Yes I make sure that the assigned field is filled as the workflow will not work unless that field is filled with a valid username.
    I am an administrator on this SharePoint site  and I am using several people to email to that are not admins on the same site.
    The issue seems to lie in the Workflow itself.  In the one step that I have "Send an email" you fill out what should go in the To: field in the email.  That is where it should say "Current Item:Assigned To" according to all the documentation I
    have read and what mine will only enter in the To: field is "Assigned To" only it is missing the key first part of where to look.  Even though when I go through the steps I have indicated that it the data should be found in the Current Item from
    the field of Assigned To and to return the information of email address, which is well with in the realm of this Action in Workflow. 
    I have been able to accomplish this in another workflow that is not meant to be Reusable and is tied to one list only.  This seems to only be an issue when trying to do this in the Reusable Workflow creation and execution and when I use the Association
    Columns.
    Any further ideas or suggestions?  Any would be appreciated.
    Regards,
    Lara K.

  • Error while Creating cost element under category 90

    Dear Experts,
    I have some Balance Sheet related G/L account, which I have created as cost element through transaction KA01, system gives an info message saying its an BS related account, if I ignore that message and proceed further it creates a Cost element with category (system automatically picks the category and the field gets into gray mode) 90.
    We have created one more BS G/L account today and trying to create the cost element for the new G/L account, system is producing an error message:
    G/L account 3200220 is a balance sheet account
    Message no. KS036
    Field status group     R005     Material accounts is maintained
    Can some one guide me to rectify this error?
    Thanks in advance,
    Regards,
    Praveen

    Hi,
    The use of cost element category 90 is only provided                            
    in the following two cases (note Note 75980):                                                                               
    1. asset acquisitions and down payments which are                           
       assigned directly to a fixed asset or asset under construction can       
       be assigned to an account on internal orders or WBS elements             
       statistically.                                                                               
    2. cost elements of category 90 can also be created                         
       for material stock accounts to display material make-to-order stocks     
       on sales orders or customer projects.                                                                               
    If you G/L account does NOT correspond to the standard cases 1) or 2),      
    you can (on your own responsibility)                                        
    both deactivate the account assignment                                      
    check in the CO interface (message KI098) and when you create cost          
    elements (message KS036). Both checks are deactivated by maintaining        
    Transaction OBA5. Deactivate message KI098. Message KS036 cannot be         
    deactivated directly with Transaction OBA5 - rather, it is deactivated      
    indirectly when you deactivate message KI098.                               
    The message must be DE-ACTIVATED. Please do not set it to any other         
    type. Please proceed as follows:                                            
    Please call OBA5 in the production system - if not set to changeable        
    please do this in Your development system.                                  
    In OBA5 choose KI and in the detail screen add 098. 
    Then set the type of warning to "-".  
    Best regards,
    MLM

  • Response to mouse click by combo box list and underlying clickable label

    Hello,
    we developed a label responding to a mouse click by opening and thereby displaying an associated help text. The label extends a project specific hierarchy of labels and thus implements MouseListener, of course. Now we encountered a strange problem: It occurs when a combo box is placed above such a label in a panel. By clicking the combo box a selective list drops down and covers the label. As soon as a mouse click is performed on a list item directly covering (i.e., right in front of) the clickable label not only this item is selected but the help screen associated with the underlying label is displayed, too. So the mouse click is processed twice: as proposed by the combo box and unwantedly by the label. This behaviour could not be reproduced on other components being placed below a combobox. So the label itself seems to be the cause but we cannot imagine what could exactly be the reason for this double reaction. Perhaps anyone heard of something like that?
    We are currently working with IBM Visual Age for Java 2.0 (Java version 1.1.8 with the according Swing version). The clickable label reflectively calls methods of a model to determine whether help is available and if so later on to open this help text.
    Any help is appreciated!
    Danilo

    Thank you for your response. I tried both to check the focus and to consume the event. But I had to learn that labels are not able to catch the focus. I also was not able to consume an appropriate event of the combobox. So I finally solved the problem by extending JButton and implementing ActionListener. Thus my labels are actually buttons but I changed their appearance and behaviour so one cannot distinguish them from labels.

  • SQL query to list the "Administrative category" field for all applications

    yesterday i started a thread to list the "Optional reference" field for all cm applications in a SSRS report. I've got the query with the help of Torsten.
    https://social.technet.microsoft.com/Forums/en-US/00419e6e-e3c2-4b80-b6af-2a24ced1032d/sql-query-to-list-the-optional-reference-field-of-all-packages-in-cm-2012?forum=configmanagersdk
    But again today, i'm looking for a way to get "Administrative category" field in a SSRS report. Could someone point me to the right direction ?
    Kindly mark as answer/Vote as helpful if a reply from anybody helped you in this forum. Delphin

    Hi,
    You could monitor the SMSProv.log when you check the category of an application. It shows that SQL query the SCCM provider used is related to function fn_ListCategoryInstances.
    Best Regards,
    Joyce

  • Append list values under Field selection per Mvt type (MIGO)

    Hi Experts,
    Can we append list of values for u2018Field Nameu2019 in case of Setting for goods movement (MIGO), under Field selection per Mvt type. We want to append values for 101 Mvt type.
    Current values are
    CUSTNAME Customer
    EXVKW Sales Value
    GRUND Reason for Movement
    LIFNR Vendor
    SGTXT Text
    WEANZ Number of GR Slips
    WEMPF Goods recipient
    Regards,
    Praful Mankar

    Hi pafulmankar
    If you find the solution, please share with me. I do have the same requirement
    Thanks

  • List file under directory using JSP

    Hi,
    Does anyone have a code to list all files under a certain directory in JSP? Thanks alot!

    thank you so much... l already have a code working, but l can't make it download excle file as it displays them online. l want to force download. thanks
    <%@ page import="java.io.*" %>
    <%@ page import="java.util.*" %>
    <%@ page errorPage="listFiles_error.jsp" %>
    <%
    // To change the directory that is listed, change this variable
    // \ character must be escaped with a second \ as below
    String directoryName = "c:\\Tomcat\\webapps\\examples\\jsp";
    // This variable needs to point to the URL that will be after the
    // domain name for the above directory (needs to be setup in your
    // application server)
    String urlName = "/examples/jsp/";
    // Loads the list of files in the directory
    File directory = new File(directoryName);
    File[] fileList = directory.listFiles();
    Hashtable sortedFiles = new Hashtable(fileList.length);
    // Loops through each file
    for(int i=0; i<fileList.length; i++) {
    File file = fileList;
    // Skip subdirectories
    if(file.isDirectory())
    continue;
    String name = file.getName();
    int dotIndex = name.indexOf('.');
    // Skip files with no extension
    if(dotIndex < 0 || dotIndex+1 >= name.length())
    continue;
    String fileName = name.substring(0,dotIndex);
    String fileType = name.substring(dotIndex+1).toLowerCase();
    // Only process PDF, REP, and XLS file types
    if(!fileType.equals("pdf") && !fileType.equals("rep") && !fileType.equals("xls"))
    continue;
    // Organize like filenames for processing later
    Hashtable fileTypes = (Hashtable)sortedFiles.get(fileName);
    if(fileTypes == null) {
    fileTypes = new Hashtable(10);
    sortedFiles.put(fileName,fileTypes);
    fileTypes.put(fileType,file);
    %>
    <html>
    <head>
    <title>
    listFiles
    </title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css">
    <!--
    body {
         background-image: url(bkg2.gif);
         margin-left: 0px;
         margin-top: 0px;
         margin-right: 0px;
         margin-bottom: 0px;
    .style2 {font-size: large; color: #000066; }
    .style3 {font-size: medium; color: #000066; }
    -->
    </style></head>
    <body bgcolor="#ffffff">
    <table width="100%" border="0">
    <tr>
    <th background="chead.gif" scope="col"><div align="left"><img src="jpmorgan_logo.gif" width="200" height="40" border="0"></div></th>
    </tr>
    </table>
    <p> </p>
    <TABLE width="700" height="106" border="1" align="center" cellpadding="1" cellspacing="1" bordercolor="#000033">
    <tr>
    <th width="370" height="33"><div align="left" class="style2">Name</div></th>
    <th width="40"><div align="left" class="style2">PDF</div></th>
    <th width="40"><div align="left" class="style2">Rep</div></th>
    <th width="40"><div align="left" class="style2">Excel</div></th>
    </tr>
    <%
    // Loop through each file name, outputting the data in a tabular format.
    Enumeration e = sortedFiles.keys();
    while(e.hasMoreElements()) {
    String fileName = (String)e.nextElement();
    Hashtable fileTypes = (Hashtable)sortedFiles.get(fileName);
    File pdfFile = (File)fileTypes.get("pdf");
    File reportFile = (File)fileTypes.get("rep");
    File excelFile = (File)fileTypes.get("xls");
    %>
    <tr>
    <td height="63" align="left" valign="bottom"><div align="left" class="style3"><%=fileName%></DIV></td>
    <% if(pdfFile != null) {
    // Output the PDF Entry
    %> <td width="40" align="left" valign="bottom"><a href="<%=urlName+pdfFile.getName()%>"><img src="PDF.gif" width="40" height="40" border="0"></a></td>
    <% } else {
    %> <td width="40" align="left" valign="bottom"> </td>
    <% }
    %>
    <% if(reportFile != null) {
    // Output the Report Entry
    %> <td width="40" align="left" valign="bottom"><a href="<%=urlName+reportFile.getName()%>"><img src="Rep.gif" width="40" height="40" border="0"></a></td>
    <% } else {
    %> <td width="1" align="left" valign="bottom"> </td>
    <% }
    %>
    <% if(excelFile != null) {
    // Output the Excel Entry
    %> <td width="40" align="left" valign="bottom"><a href="<%=urlName+excelFile.getName()%>"><img src="xls.Gif" width="40" height="40" border="0"></a></td>
    <% } else {
    %> <td width="1"> </td>
    <% }
    %>
    </tr>
    <%
    %>
    </table>
    </body>
    </html>

  • AME can i create a Rule type List Creation and category For Your Info?

    Hi,
    I have created two rules.
    1st rule create the list of approvers to approve the leaves i.e. supervisor then department head.
    Till this every thing is going fine transaction are getting approved by both approvers and leave is crated in Application.
    Now I create 2nd rule to send FYI notification to HR Administrator.
    When employee Appling for leave it shows the list of approvers correctly i.e. supervisor, department head as approvers and HR Administrator FYI notify.
    Now HR Administrator opens the notification and close the notification and Approvers approved the transaction. PPROBLEM IS Transaction is not getting close and hence leave is not getting create in application._
    Edited by: SHEIKHG on Aug 28, 2009 9:11 PM

    No I have not customized the workflow. becuse the notification have all details if the rule is list creation. But if rule type is post-chain-of-authority approvals or pre-chain-of-authority approvals then the notificaiton has no useful info.
    Thats why I want to use Rule Type List creation for FYI notification. But when i do so my transaction is not getting complete.

  • How to list users under multiple groups and users sub groups

    Hi, I am stump, which is not hard to do. i have a list of groups and i want to list the users in those groups and then in the next column lists all the citrix only groups for each user. hopefully im describing that correctly. Heres what i have but it is
    not listing the users groups. I am not sure how to proceed.
    $CurrentDate = Get-Date
    $CurrentDate = $CurrentDate.ToString('MM-dd-yyyy_hh-mm-ss')
    $Groupname = "Distribution Lists"
    $excel = New-Object -comobject Excel.Application
    $excel.visible = $True
    $wbook = $excel.Workbooks.Add()
    $wsheet = $wbook.Worksheets.Item(1)
    $wsheet.Cells.Item(1,1) = "Groupname"
    $wsheet.Cells.Item(1,2) = "Member"
    $wsheet.Cells.Item(1,3) = "ACID"
    $wsheet.Cells.Item(1,4) = "Department"
    $range = $wsheet.UsedRange
    $range.Interior.ColorIndex = 19
    $range.Font.ColorIndex = 11
    $range.Font.Bold = $True
    $intRow = 2
    $groups = get-adgroup -Filter * -properties * -Searchbase "OU=Citrix,OU=Permission,OU=Groups,OU=Home Office,OU=domain,DC=Domain,DC=com"
    $targetFile = "c:\temp\$groupname $CurrentDate.csv"
    Add-Content $targetFile "Group;Member;ACID;Department"
    foreach ($group in $groups){
    $groupMembers = get-adgroupmember $group -Recursive | Get-ADUser -Properties Department, DistinguishedName| Where-Object { $_.Enabled -eq 'True' } | Select-Object Name, samaccountname, department, distinguishedname, @{n='MemberOf';e={$_.MemberOf -replace '^cn=([^,]+).+$','$1' -join '; '}
    foreach ($groupMember in $groupMembers){
    $groupName = $group.Name
    $memberName = $groupMember.Name
    $acid = $groupMember.samaccountname
    $groups = $usergroups
    #$department = $groupMember.department
    $department = $groupMember.memberof
    #$DistinguishedName = $gropmember.distinguishedname
    $line = "($groupName)--------($memberName)-----($acid)-------($department)------($usergroups)"
    add-content $targetFile $line
    $wsheet.Cells.Item($intRow,1) = $groupName
    $wsheet.Cells.Item($intRow,2) = $memberName
    $wsheet.Cells.Item($intRow,3) = $acid
    $wsheet.Cells.Item($intRow,4) = $groups
    $wsheet.Cells.Item($intRow,5) = $DistinguishedName
    $intRow++
    $WorkBook.EntureColumn.AutoFit()
    $excel.SaveAs("DL" + "name.xlsx")
    $excel.Close()

    Hi Glacket,
    Below codes should give you headsup.
    This command will give you estimate the result count for each group:
    PS C:\Users\Administrator> Get-ADGroup -Filter {Name -like "TestGroup*"} | Select Name, @{Expression={get-adgroupmember $_ -recursive | Measure | Select -ExpandProperty Count};Label="Count"}
    Name Count
    TestGroup1 7
    TestGroup2 8
    Note that as said earlier we are getting duplicated results(12,13,14) for users belonging to multiple groups. Result is in order as per earlier code's count and order.
    Get-ADGroup -Filter {Name -like "TestGroup*"} | get-adgroupmember -recursive | Select Name,@{Expression={Get-ADPrincipalGroupMembership $_ | Select -ExpandProperty Name};Label="GroupMemberOfName"}
    Name GroupMemberOfName
    User100 {Domain Users, TestGroup1}
    User14 {Domain Users, TestGroup1, TestGroup2}
    User13 {Domain Users, TestGroup1, TestGroup2}
    User12 {Domain Users, TestGroup1, TestGroup2}
    User11 {Domain Users, TestGroup1}
    User10 {Domain Users, TestGroup1}
    User1 {Domain Users, TestGroup1}
    User19 {Domain Users, TestGroup2}
    User18 {Domain Users, TestGroup2}
    User17 {Domain Users, TestGroup2}
    User16 {Domain Users, TestGroup2}
    User15 {Domain Users, TestGroup2}
    User14 {Domain Users, TestGroup1, TestGroup2}
    User13 {Domain Users, TestGroup1, TestGroup2}
    User12 {Domain Users, TestGroup1, TestGroup2}
    Use below to export to CSV:
    Get-ADGroup -Filter {Name -like "TestGroup*"} | get-adgroupmember -recursive | Select Name,@{Expression={Get-ADPrincipalGroupMembership $_ | Select -ExpandProperty Name};Label="GroupMemberOfName"} | Export-Csv C:\ListGroups.csv
    Regards,
    Satyajit
    Please “Vote As Helpful”
    if you find my contribution useful or “Mark As Answer” if it does answer your question. That will encourage me - and others - to take time out to help you.

  • ITunes Crashing - Podcasts Listed Twice Under Library

    ITunes has seemingly created another Podcast entry under in my Library which means I now have 2. This has the effect of forcing ITunes to crash whenever i attempt to update the podcasts in my original Podcase folder. Any ideas on how to remove this spurious entry?
    Thanks,

    Hi there -
    I had this problem ages ago and posted about it, but never got a response. It eventually went away, though I have no idea/don't recall why - and now it is back! Extremely annoying. Have you heard anything or figured out how to fix it?
    Thanks.

Maybe you are looking for