Still having a problem with ComboBox in a Table

In my JClient app I still can't get a ComboBox to work in a JTable. The ComboBox doesn't display in the table and my pageDef file (below) looks fine to me. Can anyone verify that a ComboBox in a JTable works in the production release or tell me what I'm doing wrong?
<?xml version="1.0" encoding="UTF-8" ?>
<pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
version="10.1.3.36.73" id="PanelPersonAddressView8PageDef"
Package="com.esp.test.pageDefs"
MsgBundleClass="com.esp.test.pageDefs.PanelPersonAddressView8PageDefMsgBundle">
<parameters/>
<executables>
<iterator RangeSize="-1" Binds="AppModuleDataControl.PersonAddressView1"
DataControl="AppModuleDataControl" id="PersonAddressView1Iter"/>
<iterator id="AddressTypeView1Iterator" RangeSize="-1"
Binds="AddressTypeView1" DataControl="AppModuleDataControl"/>
<iterator id="PersonAddressView1Iterator" RangeSize="10"
Binds="PersonAddressView1" DataControl="AppModuleDataControl"/>
</executables>
<bindings>
<table ColumnSort="entireCollection" id="PersonAddressView1"
IterBinding="PersonAddressView1Iter"
xmlns="http://xmlns.oracle.com/adfm/jcuimodel">
<AttrNames xmlns="http://xmlns.oracle.com/adfm/uimodel">
<Item Value="PersonId"/>
<Item Value="AddressId"/>
<Item Value="AddressTypeId"/>
<Item Value="ReadOnlyAddress"/>
</AttrNames>
<AttrProp name="AddressTypeId">
<EditorDef RTClass="oracle.jbo.uicli.jui.JULOVEditorPropDef"
DTClass="oracle.adf.dt.objects.jui.JUDTLOVEditorProp"
Name="ComboBox" binding="DCComboBox"/>
</AttrProp>
</table>
<combobox id="DCComboBox" xmlns="http://xmlns.oracle.com/adfm/jcuimodel"
StaticList="false" ListOperMode="0"
IterBinding="PersonAddressView1Iterator"
ListIter="AddressTypeView1Iterator">
<AttrNames xmlns="http://xmlns.oracle.com/adfm/uimodel">
<Item Value="AddressTypeId"/>
</AttrNames>
<ListAttrNames xmlns="http://xmlns.oracle.com/adfm/uimodel">
<Item Value="AddressTypeId"/>
</ListAttrNames>
<ListDisplayAttrNames xmlns="http://xmlns.oracle.com/adfm/uimodel">
<Item Value="AddressTypeDesc"/>
</ListDisplayAttrNames>
</combobox>
</bindings>
</pageDefinition>

I have a similar problem. I have got the combobox in the jtable working (when i switched off the labels). Everything seems to works except when I select the first record in the combobox. When I tab out of the cell it becomes empty. If I first select a different record( 2-n) and then the first record the value remains when I tab out of the cell. This also looks like a bug to me. Here's my binding code:
<pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
version="10.1.3.36.73" id="OpeningsTijdenPanelPageDef"
Package="store.ui.panel.in3_1_park.pageDefs">
<parameters/>
<executables>
<iterator id="POpeningsTijdView1Iterator" RangeSize="-1"
Binds="POpeningsTijdView1"
DataControl="ParkerenAppModuleDataControl"/>
<iterator id="DagView1Iterator" RangeSize="-1" Binds="DagView1"
DataControl="ParkerenAppModuleDataControl"/>
</executables>
<bindings>
<table ColumnSort="entireCollection"
id="ActiviteitParkerenView1POpeningsTijdView1"
IterBinding="POpeningsTijdView1Iterator"
xmlns="http://xmlns.oracle.com/adfm/jcuimodel">
<AttrNames xmlns="http://xmlns.oracle.com/adfm/uimodel">
<Item Value="Dagid"/>
<Item Value="Begintijd"/>
<Item Value="Eindtijd"/>
</AttrNames>
<AttrProp name="Dagid">
<EditorDef RTClass="oracle.jbo.uicli.jui.JULOVEditorPropDef"
DTClass="oracle.adf.dt.objects.jui.JUDTLOVEditorProp"
Name="ComboBox" binding="DCComboBox"/>
</AttrProp>
<AttrProp name="Dag">
<EditorDef RTClass="oracle.jbo.uicli.jui.JULOVEditorPropDef"
DTClass="oracle.adf.dt.objects.jui.JUDTLOVEditorProp"
Name="ComboBox" binding="DCComboBox"/>
</AttrProp>
</table>
<combobox id="DCComboBox" xmlns="http://xmlns.oracle.com/adfm/jcuimodel"
StaticList="false" ListOperMode="0"
IterBinding="POpeningsTijdView1Iterator"
ListIter="DagView1Iterator" NullValueFlag="1">
<AttrNames xmlns="http://xmlns.oracle.com/adfm/uimodel">
<Item Value="Dagid"/>
</AttrNames>
<ListAttrNames xmlns="http://xmlns.oracle.com/adfm/uimodel">
<Item Value="Dagid"/>
</ListAttrNames>
<ListDisplayAttrNames xmlns="http://xmlns.oracle.com/adfm/uimodel">
<Item Value="Dag1"/>
</ListDisplayAttrNames>
</combobox>
</bindings>
</pageDefinition>
Has anyone else encountered this problem?

Similar Messages

  • IPad mini with retina still having wifi problems with iOS 8.0.2 - slow or none. Resetting temporarily fixes problem it very annoying. Please fix Apple! Not up to scratch.

    iPad mini with retina still having wifi problems with iOS 8.0.2 - slow or none. Resetting temporarily fixes problem it very annoying. Please fix Apple! Not up to scratch.

    I Have followed these steps, and tried others, such as resetting all my network settings. At best these only temporarily fix the problem - wifi still becomes slow or stops. I have other Apple devices connecting fine to my airport express. why is my iPad mini not working? Is it related to the fact it is 3G and I don't have a sim card installed? It is the current top of the range model with iOS 8.0.2. I paid over the odds for the best, and it is almost completely redundant.  Apple - I'm losing faith. You need to keep the public better informed and fix this problem fast, otherwise I will leave you for good.

  • Still having a problem with Themes in imovie hd 6

    I am having difficulty placing a Theme segment into the movie timeline. It seems to render then it disappears.
    Steps I have taken to remedy this situation:
    (1) Checked for conflicting software (plug-in) in QuickTime and iMovie
    (2) Created another user alias to check for other software conflicts. I was able to render the theme segment under this new alias so I deleted all log in items from my administrative acct. This fixed a different problem I was having with placing pictures from the Media > Photo into the time line (previously the photos would bounce out as well). However I am still unable to use the Theme segments.
    Any Suggestions?
    Thanks, Michael

    The symptoms you describe are all consistent with a permissions problem. (After rendering a theme, iMovie discovers it doesn't have permission to write to the project and discards the rendered file.) Use the Finder's Get Info command to check permission settings on the iMovie project and the folder containing it. The drive too?
    You might want to consider setting the project drive to ignore ownership. (See the checkbox in the Get Info window.)
    Long ago iMovie would (rarely) have trouble setting/getting permissions of the project folder. I don't think that's true again, but there have been a couple of reports here that moving the project to another folder helped. You might try creating a new folder on the project drive, set its permission to read and write, and move the project there.
    Karl
    PS: You've upgraded to iMovie 6.0.1?

  • Still having a problem with Firefox going to "restart a session" even after re-installing Firefox. Keeps giving me "script error" when closing down. How do I fix this?

    As stated previously...I have removed and re-installed Firefox, but am still getting "script error" when shutting it down and going to "restore session" when opening. Please advise what to do about this problem. Thank you.

    Firefox 21 and Firefox 22 running on Windows 7 have been reported to take a long time to "wake up" from sleep. I realize hibernation is different than sleep, but... this is the closest match for your description.
    Some users have reported that this problem is resolved in Firefox 23 (currently in beta). Others have had inconsistent luck with minimizing Firefox before letting Windows sleep and other measures.
    Please check out this (very long) thread for more information: [https://support.mozilla.org/questions/961898 browser freezes after resuming from sleep]
    Or jump to the part about Firefox 23: https://support.mozilla.org/questions/961898?page=3#answer-457321
    The fact that this just started recently suggests perhaps it is related to another program or update, but I don't think anyone has confirmed the exact interaction that causes the problem.

  • Still having some problems with my WRT300N v2 router....

    For 6 years or so I have been using a Linksys router and been quite happy with it. As such, it was "natural" for me to look for another. Especially since I have seen the user interface of several of routers for port forwarding, and other settings vital to a good solid gaming connection.
    When I first setup the router the firmware was it's default (v2.08) and that is just buggy imho, for anyone connecting more than one computer. The biggest hassle was that the wireless connections could not connect to any of the other computers in the LAN. Although they did, after a long wait, get a DHCP address from my separate DHCP server. FORTUNATELY, the new firmware (v2.17) resolved most, if not all of my local connectivity problems.
    I still have one major problem though. This is the IP renewal of the WAN address. My ISP wants that updated every 30 to 60 minutes, so the renewal period is 3600 seconds, or 1 hour. What I recall from the RFC on DHCP is that a client is expected to send renewal requests long before the IP address assignment reaches it expiration "moment". If I remember correctly, this is the time interval T2 (T1 being expiration), and by default T2 == T1 * 0.75.
    In other words, all DHCP clients (in this case the WAN side of the router) should be requesting a renewal/refresh of the DHCP address at 75% of the lease period - in my case at 45 minutes. After watching closely for the last 4 hours, I see my game clients lose connection on all my computers, and I see the DHCP renewal take place.
    Could someone from Linksys verify when the first requests for renewal get sent out? This is instant death in a MORPH if you are trying to do pvp. Absolutely unworkable.
    Thank you for your attention and support.
    Michael aka rootvg.
    Message Edited by rootvg on 08-14-2007 05:03 AM

    Well, after a couple more application crashes on the hour, I swapped my old befw11s4 router in and watched the way it does IP renewal of the WAN IP addresses. Shortly after it reaches the halfway mark, the lease gets renewed.
    Anyone notice this behavior with their WRTS300N? No update on DHCP lease til after expiration?

  • Problem with MultiLeadSelection in a table

    Hi All,
    I am still having the problem with the multilead selection in a table.
    I am setting the table properties to multi and I have an event handler for the onaction property, named as leadselection.
    I am writing the code below for the event handler.
    public void onActionLeadSelect(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
    int selectedRow = firstNode.nodeOPENITEMS_open().getLeadSelection();
        int sizeOfOpen = wdContext.nodeOPENITEMS_open().size();
         IOPENITEMS_openElement element = (IOPENITEMS_openElement)firstNode.nodeOPENITEMS_open().getElementAt(selectedRow);
         for(int i=0;i<wdContext.nodeOPENITEMS_open().size();i++){
              if(wdContext.nodeOPENITEMS_open().isMultiSelected(i)||selectedRow == i){
                   wdContext.currentContextElement().setMultiDocNumber(wdContext.nodeOPENITEMS_open().getOPENITEMS_openElementAt(selectedRow).getDOC_NO());
                   wdContext.currentContextElement().setMultiItemno(wdContext.nodeOPENITEMS_open().getOPENITEMS_openElementAt(selectedRow).getITEM());
                   wdContext.currentContextElement().setMultiRepItem(wdContext.nodeOPENITEMS_open().getOPENITEMS_openElementAt(selectedRow).getREP_ITEM());
                   wdContext.currentContextElement().setMultiSubitem(wdContext.nodeOPENITEMS_open().getOPENITEMS_openElementAt(selectedRow).getSUB_ITEM());
    What i am trying to do is..On multiselection or on single leaad selection, I should pass the whole amount to the BAPI or the amount related to only the leadselection.
    But when I am trying to run..this code..I am nt able to select in a multiple way..and more over if I press ctrl then I am able to make the other rows highlighted with orange color..but not normally and after making them highlighted also i am not able to pass the amount for all the selected rows..together..
    Kindly suggest me..something..
    Regards
    DK

    Hi,
    Try this ,
    for(int i=0;i<wdContext.nodeOPENITEMS_open().size();i++){
    if(wdContext.nodeOPENITEMS_open().isMultiSelected(i)){
    wdContext.currentContextElement().setMultiDocNumber(wdContext.nodeOPENITEMS_open().getOPENITEMS_openElementAt(i).getDOC_NO());
    wdContext.currentContextElement().setMultiItemno(wdContext.nodeOPENITEMS_open().getOPENITEMS_openElementAt(i).getITEM());
    wdContext.currentContextElement().setMultiRepItem(wdContext.nodeOPENITEMS_open().getOPENITEMS_openElementAt(i).getREP_ITEM());
    wdContext.currentContextElement().setMultiSubitem(wdContext.nodeOPENITEMS_open().getOPENITEMS_openElementAt(i).getSUB_ITEM());
    If you use the selectedRow variable in if condition, it will fetch only one row from table. Because the getLeadSelection() method gives the number of row which got selection on first click before pressing Ctrl key. So you can get only one value for leadselect. that's why the if loop failure for other selected rows.
    regards
    karthik

  • TS5376 I'm having a problem with downloading and installing the new version of itunes for windows (11.1.4)  I have done everything the troubleshooting article has said and it is still not working properly.

    'm having a problem with downloading and installing the new version of itunes for windows (11.1.4)  I have done everything the troubleshooting article has said and it is still not working properly.  I have even done a repair to see if that works and it has not.  Has anyone else found a new way to get it working?

    Try Troubleshooting issues with iTunes for Windows updates.
    tt2

  • Still having navigation problems and need help with how to debug

    Hi,
    I've been porting over a servlet project to JSF and I'm still having navigation problems. I thought the problem might have been because the original project used HTML frames and so the "from-view-id" JSP defined the frame/framesets and the specific JSP that does the submit (and so is named in the "from-view-id" is never defined in a "to-view-id" attribute). I've now switched to using an IFRAME, and that resolves that problem. So now the JSP is defined in a "to-view-id" attribute and it includes an named IFRAME that can be used as a target. I press the submit button and I get not the JSP expected butinstead the same JSP displayed inside its own IFRAME.
    Here is the code for the submit. I've simplified it as much as possible with a static action (originally it was a call to a method) just to try and get things to work. This is the current version:
    <h:commandButton value="View Alias" action="foo" styleClass="select" type="submit" />Here is the navigation rule in faces-config.xml. Again, the problem is that SelectManager get redisplayed in the IFRAME instead of display.jsp.
    <navigation-rule>
       <from-view-id>/SelectManager.jsp</from-view-id>
       <navigation-case>
          <from-outcome>foo</from-outcome>
          <to-view-id>/display.jsp</to-view-id>
       </navigation-case>
    </navigation-rule>I have also tried it without the "from-outcome-value" which I presume means that the "to-view-id" gets displayed unconditionally and it still fails. Any ideas on how I can debug this? (I'm using GlassFish if that's important to know)
    Rob Tanner
    Linfield College

    Raymond, The real trick is avoid doing technical things when coming down with the flu (I should also add that I'm a JSF newbie). Reading your original message this time I see what you're suggesting and found a conversion error although I don't understand it. Here's the code (including the <h:message/>):
                <h:selectOneMenu value="#{members.dcodes}"
                  style="color: #7f0000" id="selector">
                  <f:selectItems value="#{members.departmentList}" />
                </h:selectOneMenu> 
                <h:message for="selector" style="color:white"/>And here's a snippet of the generated HTML:
    <select id="j_id_id26:selector" name="j_id_id26:selector" size="1" style="color: #7f0000">
             <option value="aad" selected="selected">Academic Advising</option>
         <option value="aaf">Academic Affairs</option>
         <option value="adm">Admission</option>
         <option value="up">Upward Bound</option>
    </select>If I select "Admission" for example, the error I get is:
    Conversion Error setting value 'adm' for 'null Converter'.Since everything is a String value, I don't get the error. Could someone please enlighten me.
    Thanks.

  • HT200169 Having a problem with Logic 9 on a Mac Pro.Working on a lenghty song and apparently session got corrupted.Doesnt let me export tracks,program crashes.Already tried start brand new session with the tracks imported into it but still wont export.Sug

    Hello,having a problem with Logic 9 on a Mac Pro.Working on a lenghty song and apparently session got corrupted.Doesnt let me export tracks,program crashes.Already tried start brand new session with the tracks imported into it but still wont export.Suggestions?

    Thanks, Ian. Yeah, that's how I do it now...or with the controls in the left side pane. Still, I would have liked that quick on-the-spot edit capability...especially while sketching.
    Ian Turner wrote:
    Sorry Mark, you are out of luck as it does not do that - it works the same as L8. The way I would achieve that with more accuracy and control would be to route all the tracks you want to fade to a Bus then use volume automation on the bus. To do this you will need to add a standard audio track, then re-assign it using (Control Click on the track header) to the Bus track. You can then automate volume/plugins etc on the Bus track.
    Ian

  • TS3274 My iPad mini retina is still having random reboots with blue screen after updating to iOS 8.0.2.i also did reset my iPad.But the problem still persis

    My iPad mini retina is still having random reboots with blue screen after updating to iOS 8.0.2.i also did reset my iPad.But the problem still persists

    Could you add your problem here: https://discussions.apple.com/thread/6569052? This makes sure the discussion and in one place and we can attract more attention from Apple. 

  • HT4060 I'm having some problems with my ipad and charging it. I am having to leave it in charge for a lot longer, but when I take it out and want to use it the battery is still not completely full and goes down a lot faster than usual

    I'm having some problems with my ipad and charging it. I am having to leave it in charge for a lot longer, but when I take it out and want to use it the battery is still not completely full and goes down a lot faster than usual. The other day, I had charged  my iPad overnight so that I could take it to university with me for the day, and when I had switched it on the next day the battery was on 5% and I had not used it since charge.

    Your battery may be dying. THey are only good for so many charges/discharges. If you have an apple store near by make an appointment and have them check itout

  • Is anyone having a problem with the new iPad (Gen. 3) not staying connected to the charger? It seems to ALWAYS get jiggled loose and no longer be charging. My iPad 1 has no issue but I can't browse Internet w/o new iPad unplugging. Horrible!

    I notice that my new IPad (3rd generation) will not stay connected to the power cord at all, I'm not exagerating, if I plug it in and browse the Internet without fail it will become unplugged and I will have to push the plug back in (Ba-beep). Ive actually grown to despise that sound when you plug your iPhone or iPad in because it reminds me of how much money I spent on something that PHYSICALLY will not charge while I'm using it.
    I know the problem with it holding a charge while in use, I get it, the screen is amazing and it takes a lot to run the display, however, it is unacceptable to me that I can't even keep the thing plugged in while I'm using it. I can not even leave it on my Cal King bed overnight because I will wake up in the morning to find that the plug has been jiggled loose in a corner, so it's still attached but not making a connection thus not being charged. 
    I love the 4GLTE from Verizon and I love the iPad, but I'm actually using my 1st generation IPad while I am at home so I can leave my new $900 iPad on a table to charge free of incident so I can use the 4G while I'm away from wifi during the day. I have been getting more upset about this because I can not even use the Griffin extended cord to charge the iPad and be far from the plug because only the original apple sync/charge cord will have a better shot at staying in. Absolutely none of my non apple cables will stay in the iPad 3 while having it in my hands.
    The plug is at an angle, unlike the first iPad, not sure about the iPad 2. Please let me know if they have same issue.
    If anyone else is having this problem with the Gen 3 iPad please let me know because I'm tempted to do something about it with apple and I'm hoping that I just for some reason have a bad cable receiver or something and maybe I can get a replacement and enjoy the iPad as I had expected to. There is no reason why I should be even using my first iPad and I have friends that want to buy it but I am not selling it because I'm unable to sell it because I can't handle the new iPad while it's plugged in, that is ridiculous if it's a common issue so please let me know!

    Thanks for the swift reply, I have been looking online and a loose plug seems to be somewhat of an issue with many, I hope mine is actually a problem and not what others are experiencing. It's taken me this long to even reach out for the simple fact I HATE being a complainer but this is just horrible.
    Do you have an iPad 3 as well? And is yours not experiencing any issues close to mine?
    Thanks again!

  • HT1222 Having a problem with iMessage on my iPad mini.

    Bought my Ipad from the US &amp; presently using it in Nigeria.I'm having a problem with iMessage on my iPad mini, I've been trying to activate it and I've been receiving an error message saying my password is incorrect which I'm pretty sure isn't because I still buy apps on the iTunes Store with it. What can I do?

    Have you looked at some of the 3rd party apps that will do this for you? Some of them are iPodAgent for Windows, copypod, yamipod. Most of them can be found on versiontracker.com, if not try to "google" them. Also, if you have purchased music, you can now import that off your iPod to your new system. Hope this helps.

  • I am having a problem with my 2009 Macbook Pro

    Hello Everyone,
    I am having a problem with my 2009 Macbook Pro .  A few weeks ago I plugged it into the charger after running it down to reserve battery power. It appeared to be charging, but then all of a sudden my clock and calender reset to year 2000 and then my computer blacked out and went dead. I tried to boot it up but nothing happened (literally nothing).   I have tried 3 different chargers on it, but all I get is a faint green light and even after hours it still won't boot up.   I have tried replacing the battery, but still nothing happens.
    Any Ideas?  I am pretty desperate to get my computer back up and running before school finals.

    You may have to see if an authorized Apple service specialist can check over
    the charging system (magsafe dc-in board, power adapter, and MacBook/Pro)
    and test or run a diagnostic on it, to be sure there is no damage or failed parts.
    When you attached the adapter to charge the computer, after it said it was going
    to reserve power, did you shut down open applications and stop using the MB/Pro?
    That would've been the thing to do, since the margin of run-time near the bottom
    of the power cycle can be wrong by the gauge estimate, it can just quit.
    While I have not researched your year/model/series in detail, I do know some
    models of Apple portable computers have a small battery or capacitor on the
    logic board, separate from the main power battery; it may need replacement.
    A service provider w/ Apple training & parts would be a likely resource to fix it.
    Good luck & happy computing!

  • Having multiple problems with script - NTFS Permissions and AD Groups

    Hi, all!  I'm having multiple problems with my first script I've written with Powershell.  The script below does the following:
    1. Prompts the user for a corporate division under which a shared folder will be created, and adjusts variables accordingly.
    2. Prompts if the folder will be a global folder or an office/location-specific folder, and makes appropriate adjustments to variables.
    3.  If a global folder, prompts for the name.  If an office/location-specific folder, prompts for each component of the street address, city and state and an optional modifier.  I've prompted for this information in this way because the information
    is used differently later on in the script.
    4.  Verifies the entered information and requests confirmation to proceed.
    5.  Creates the folder.
    6.  Creates an AD OU and/or security group(s).
    7.  Applies appropriate security groups to the new folder and removes undesired permissions.
    Import-Module ActiveDirectory
    $Division = ""
    $DivAbbr = ""
    $OU = ""
    $OUDrive = "AD:\"
    $FolderName = ""
    $OUName = ""
    $GroupName = ""
    $OURoot = "ou=DFS Restructure Testing OU,ou=Pennsylvania Camp Hill 4410 Industrial Park Rd,ou=Locations,ou=Camp Hill,dc=jacobsonco,DC=com"
    $FSRoot = "E:\"
    $FolderPath = ""
    $DefaultFolders = "Archive","Customer Service","Equipment","Inbounds","Management","Outbounds","Processes","Projects","Quality","Reports","Returns","Safety","Schedules","Time Keeping","Training"
    [bool]$Location = 0
    do {
    $userInput = Read-Host "Enter CLS Division: (W)arehousing, (S)taffing, or (P)ackaging"
    Switch ($userInput)
    W {$Division = "Warehousing"; $DivAbbr = "WHSE"; $OU = "ou=Warehousing,"; break}
    S {"Staffing is not yet implemented."; break}
    P {"Packaging is not yet implemented."; break}
    default {"Invalid choice. Please re-enter."; break}
    while ($DivAbbr -eq "")
    write-host ""
    write-host ($Division + " was selected.")
    $FolderPath = $Division + "\"
    write-host ""
    $choice = ""
    do {
    $choice = Read-Host "Will this be a (G)lobal folder or (L)ocation folder?"
    Switch ($choice)
    G {$Location = $false; break}
    L {$Location = $true; $FolderPath = $FolderPath + "Locations\"; $OU = "ou=Locations," + $OU; break}
    default {"Invalid choice. Please re-enter."; $choice = ""; break}
    while ($choice -eq "")
    write-host ""
    write-host ("Location is set to: " + $Location)
    write-host ""
    if ($Location -eq $false) {
    $FolderName = Read-Host "Please enter folder name:"
    $GroupName = $DivAbbr + " " + $FolderName
    } else {
    $input = Read-Host "Please enter two-letter state abbreviation:"
    $FolderName = $FolderName + $input + " "
    $input = Read-Host "Please enter city:"
    $FolderName = $FolderName + $input + " "
    $input = Read-Host "Please enter street address number only:"
    $FolderName = $FolderName + $input
    $GroupName = $DivAbbr + " " + $FolderName
    $FolderName = $FolderName + " "
    $input = Read-Host "Please enter street name:"
    $FolderName = $FolderName + $input
    $input = Read-Host "Please enter any optional information to appear in folder name:"
    if ($input -ne "") {
    $FolderName = $FolderName + " " + $input
    $OUName = $FolderName
    write-host
    write-host "Path for folder: "$FSRoot$FolderPath$FolderName
    write-host "AD Path: "$OUDrive$OU$OURoot
    write-host "New OU Name: "$OUName
    write-host -NoNewLine "New Security Group names: "$GroupName
    if ($Location -eq $true) { write-host " and "$GroupName" MGMT" }
    write-host
    $input = Read-Host "Please confirm creation of new site/folder: (Y/N) "
    if ($input -ne "Y") { Exit }
    write-host
    write-host -NoNewLine "Folder exists: "; Test-Path ($FSRoot + $FolderPath + $FolderName)
    if (Test-Path ($FSRoot + $FolderPath + $FolderName)) {
    Write-Host "Folder already exists! Skipping folder creation..."
    } else {
    write-host "Folder does not exist. Creating..."
    new-item -path ($FSRoot + $FolderPath) -name $FolderName -itemtype directory
    Set-Location ($FSRoot + $FolderPath + $FolderName)
    if ($Location -eq $true) {
    $tempOUName = "ou=" + $OUName + ","
    write-host
    write-host $OUDrive$tempOUName$OU$OURoot
    write-host
    write-host -NoNewLine "OU exists: "; Test-Path ($OUDrive + $tempOUName + $OU + $OURoot)
    if (Test-Path ($OUDrive + $tempOUName + $OU + $OURoot)) {
    Write-Host "OU already exists! Skipping OU creation..."
    } else {
    write-host "OU does not exist. Creating..."
    New-ADOrganizationalUnit -Name $OUName -Path ($OU + $OURoot) -ProtectedFromAccidentalDeletion $false
    $GroupNameMGMT = $GroupName + " MGMT"
    if (!(Test-Path ($OUDrive + "CN=" + $GroupName + "," + $tempOUName + $OU + $OURoot))) { write-host "Normal user group does not exist. Creating..."; New-ADGroup -Name $GroupName -GroupCategory Security -GroupScope Global -Path ("OU=" + $OUName + "," + $OU + $OURoot)}
    if (!(Test-Path ($OUDrive + "CN=" + $GroupNameMGMT + "," + $tempOUName + $OU + $OURoot))) { write-host "Management user group does not exist. Creating..."; New-ADGroup -Name $GroupNameMGMT -GroupCategory Security -GroupScope Global -Path ("OU=" + $OUName + "," + $OU + $OURoot)}
    $FolderACL = get-acl ($FSRoot + $FolderPath + $FolderName)
    $FolderACL.SetAccessRuleProtection($True,$True)
    # $FolderACL.Access | where {$_.IdentityReference -eq "BUILTIN\Users"} | %{$FolderACL.RemoveAccessRuleAll($_)}
    $BIUsers = New-Object System.Security.Principal.NTAccount("BUILTIN\Users")
    $BIUsersSID = $BIUsers.Translate([System.Security.Principal.SecurityIdentifier])
    write-host $BIUsersSID.Value
    # out-string -inputObject $BIUsers
    $Ar = New-Object System.Security.AccessControl.FileSystemAccessRule($BIUsersSID.Value,"ReadAndExecute,AppendData,CreateFiles,Synchronize","ContainerInherit, ObjectInherit", "None", "Allow")
    $FolderACL.RemoveAccessRuleAll($Ar)
    Set-ACL ($FSRoot + $FolderPath + $FolderName) $FolderACL
    get-acl ($FSRoot + $FolderPath + $FolderName) | fl
    $FolderACL = get-acl ($FSRoot + $FolderPath + $FolderName)
    $ADGroupName = "JACOBSON\" + $GroupName
    $objUser = New-Object System.Security.Principal.NTAccount($ADGroupName)
    $objUser.Translate([System.Security.Principal.SecurityIdentifier]).Value
    write-host $ADGroupName
    write-host $objUser.Value
    $Ar = New-Object System.Security.AccessControl.FileSystemAccessRule($ADGroupName,"ReadAndExecute","ContainerInherit, ObjectInherit", "None", "Allow")
    Out-String -InputObject $ar
    $FolderACL.AddAccessRule($Ar)
    $ADGroupName = "JACOBSON\" + $GroupNameMGMT
    $Ar = New-Object System.Security.AccessControl.FileSystemAccessRule($ADGroupName, "Modify", "ContainerInherit, ObjectInherit", "None", "Allow")
    Out-String -InputObject $ar
    $FolderACL.AddAccessRule($Ar)
    Set-ACL ($FSRoot + $FolderPath + $FolderName) $FolderACL
    } else {
    $tempOUName = "cn=" + $GroupName + ","
    write-host
    write-host $OUDrive$tempOUName$OU$OURoot
    write-host
    write-host -NoNewLine "Group exists: "; Test-Path ($OUDrive + $tempOUName + $OU + $OURoot)
    if (Test-Path ($OUDrive + $tempOUName + $OU + $OURoot)) {
    Write-Host "Security group already exists! Skipping new security group creation..."
    } else {
    write-host "Security group does not exist. Creating..."
    New-ADGroup -Name $GroupName -GroupCategory Security -GroupScope Global -Path ($OU + $OURoot)
    $FolderACL = get-acl ($FSRoot + $FolderPath + $FolderName)
    $ADGroupName = "JACOBSON\" + $GroupName
    $FolderACL.SetAccessRuleProtection($True,$True)
    $Ar = New-Object System.Security.AccessControl.FileSystemAccessRule($ADGroupName,"Modify","ContainerInherit, ObjectInherit", "None", "Allow")
    $FolderACL.AddAccessRule($Ar)
    $FolderACL.Access | where {$_.IdentityReference -eq "BUILTIN\Users"} | %{$FolderACL.RemoveAccessRuleAll($_)}
    Set-ACL ($FSRoot + $FolderPath + $FolderName) $FolderACL
    My problems right now are in the assignment/removal of security groups on the newly-created folder, and the problems are two-fold.  Yes, I am running this script as an Administrator.
    First, I am unable to remove the BUILTIN\Users group from the folder when this is an office/location-specific folder.  I've tried to remove the group in several different ways, and none are having any effect.  Oddly, if I type in the lines directly
    into Powershell, they work as expected.  I've tried the following methods:
    $FolderACL = get-acl ($FSRoot + $FolderPath + $FolderName)
    $FolderACL.SetAccessRuleProtection($True,$True)
    $FolderACL.Access | where {$_.IdentityReference -eq "BUILTIN\Users"} | %{$FolderACL.RemoveAccessRuleAll($_)}
    Set-ACL ($FSRoot + $FolderPath + $FolderName) $FolderACL
    $FolderACL = get-acl ($FSRoot + $FolderPath + $FolderName)
    $FolderACL.SetAccessRuleProtection($True,$True)
    $BIUsers = New-Object System.Security.Principal.NTAccount("BUILTIN\Users")
    $BIUsersSID = $BIUsers.Translate([System.Security.Principal.SecurityIdentifier])
    $Ar = New-Object System.Security.AccessControl.FileSystemAccessRule($BIUsersSID.Value,"ReadAndExecute,AppendData,CreateFiles,Synchronize","ContainerInherit, ObjectInherit", "None", "Allow")
    $FolderACL.RemoveAccessRuleAll($Ar)
    Set-ACL ($FSRoot + $FolderPath + $FolderName) $FolderACL
    In the first case, the script goes through and has no apparent effect because afterwards, I do a get-acl and the BUILTIN\Users group is still there, although when looking through the GUI, inheritance appears to have been broken from the parent folder.
    In the second case, I get the following error message:
    Exception calling "RemoveAccessRuleAll" with "1" argument(s): "Some or all identity references could not be translated."
    At C:\Users\tesdallb\Documents\FileServerBuild.ps1:110 char:5
    +     $FolderACL.RemoveAccessRuleAll($Ar)
    +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : IdentityNotMappedException
    This seems strange that the local server is unable to translate the SID of a BUILTIN account.  I've also tried explicitly putting in the BUILTIN\Users SID in place of the variable in the New-Object line, but that gives me the same error.  I've
    also tried the solutions given in this thread:
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/ad59dc58-1360-4652-ae09-2cd4273cbd4f/remove-acl-issue?forum=winserverpowershell and at this URL:
    http://technet.microsoft.com/en-us/library/ff730951.aspx but these solutions also failed to have any effect.
    My second problem is when I try to apply the newly-created security groups, I also will get the "Some or all identity references could not be translated."  I thought I had found a workaround to the problem by adding the -PassThru option to
    the New-ADGroup commands, because it would output the SID of the group after creation, however a few lines later, the server is unable to translate the account to apply the security groups to the folder.
    My first Powershell script has been working well up to this point and now I seem to have hit a showstopper.  Any help is appreciated.
    Thanks!

    I was hoping to stay with strictly Powershell, but unless I can find a Powershell solution, I may resort to ICACLS.
    As for the problems with my groups not being translatable right after creating them, I think I have solved this problem by using the -Server parameter on all my New-ADGroup commands and this example code seems to have gotten around the translation problem,
    again utilizing the -Server parameter on the Get-ADGroup command:
    get-acl ($FSRoot + $FolderPath + $FolderName) | fl
    $FolderACL = get-acl ($FSRoot + $FolderPath + $FolderName)
    # Add the new normal users group to the folder with Read and Execute permissions
    $GroupSID = Get-ADGroup -Identity $GroupName -Server chadc01.jacobsonco.com | Select-Object -ExpandProperty SID
    $SIDIdentity = New-Object System.Security.Principal.SecurityIdentifier($GroupSID)
    $Ar = New-Object System.Security.AccessControl.FileSystemAccessRule($SIDIdentity,"ReadAndExecute","ContainerInherit, ObjectInherit", "None", "Allow")
    $FolderACL.AddAccessRule($Ar)
    # Add the management users group to the folder with Modify permissions
    $GroupMGMTSID = Get-ADGroup -Identity $GroupNameMGMT -Server chadc01.jacobsonco.com | Select-Object -ExpandProperty SID
    $SIDIdentity = New-Object System.Security.Principal.SecurityIdentifier($GroupMGMTSID)
    $Ar = New-Object System.Security.AccessControl.FileSystemAccessRule($SIDIdentity, "Modify", "ContainerInherit, ObjectInherit", "None", "Allow")
    $FolderACL.AddAccessRule($Ar)
    Set-ACL ($FSRoot + $FolderPath + $FolderName) $FolderACL
    Going this route seems to ensure that the Domain Controller I'm creating my groups on is the same one that I'm querying for the group's SID to use in the FileSystemAccessRule.  It's been working fairly consistently.
    Still having issues with the translation of the BUILTIN\Users group, though. 

Maybe you are looking for

  • Ipod 3rd generation and ipod shuffles on same computer

    Let me start out by saying i'm clueless. Sorry people. I just purchased 2 shufles for my daughters and a Nano for my wife. Cani mange them on the same computer? And if I can what are a few things I need to be aware of. I hope this is not asking to mu

  • Tags are not transferring over to other computer using same login

    I use two computers to access the same email account on Thunderbird. I have the same tags set up on both. For over a year now I have been able to tag an email on one computer and it will appear tagged on the other computer as well. However, just rece

  • Transaction not completely Periodically Posted

    Hi All, We are doing asset Year End, we are getting below error message "Transaction not completely Periodically Posted" We are running T-Code AJAB. we have already executed ASKBN. Please guide what all steps I am missing. Thanks!! Regards, Vivek Sri

  • Controlling Cache-Control headers

    We have an application written in BC4J 9.0.3.4 riding atop 9iAS 9.0.3.1.0. The release notes for this version of 9iAS say 2484551 Microsoft Internet Explorer cannot open some file directories due to HTTP NO-STORE header If users use Microsoft Interne

  • Adding the duration in Activity of Service Call

    Hi All, How to construct a query that will add all together the duration of my Activities in Service Call. Lets say for example, Activity 1 .............. 30 Minutes Activity 2 ............... 2 hours Activity 3 ................3.5 hours thnks vin.