Mandatory drop list w/dependent field displays error on refresh
ADF Business Components 10.1.3.42.70
JHeadstart 10.1.3.3.81
all,
i have a drop list(field 1) that is on a mandatory field and whose initial value is null. i have another field(field 2) which my drop list is dependent on. then i have a third field(field 3) which is dependent on the drop list field. when i try to insert a new record, i select a value for field 2, the page refreshes and i receive a "Selection Required" error message for field 1. this only happens when the group is in table layout and field 1 has a dependent field.
Here's the test case(if you take a default generation from the hr schema employees table w/dropdown lists; jobid(mandatory), managerid, and departmentid should all have dropdown lists assigned to them):
1. add managerid as a depends on item for jobid
2. add jobid as a depends on item for departmentid(or any other field)
3. run the page and click on the add row button
4. change the managerid field value
you should get "- Selection required" error. this is a big problem for us right now bc the depends on is required in our application and we can't figure out a workaround. can someone take a look at this?
thanks in advance,
paul
Paul,
The only way to fix this is by making the "depends on" items optional instead of required, and delegate the required check to the ADF BC layer.
I'll try to explain why:
- a depends on item must have the immediate attribute set to true, so validation of the item and execution of the valueChangeListener will take place in the JSF Apply Request Values Phase. In the valueChangeListener, after updating the underlying model attribute, we directly jump to the render reponse phase, to skip other validations
- If there are multiple items with immediate="true" on the page, then they will all be validated "in sequence" in apply request values phase. So, the first drop down list is validated before the valuechangelistener of the second item fires. If the end user enters data "normally" in sequence, this is usually not a problem, however, in your use case the user first enters a value for the second "depends on" item, and then you get the validation error on the first depends on item.
So, to fix this, change the table item template and remove the required property
Steven Davelaar,
JHeadstart Team
to prevent validation of other items
Similar Messages
-
Hi!.
I need create a dinamyc drop list for a field in a ALV List report. for example...
IF the field in the alv = 1, i must show a list with the values '2' and '3', but in the case of the value is = '4' i must show a list with the values '1' and '2'. it's just an example.
I think that i must do by coding, but i don´t know how..
I'm waiting for your answers..
Thanks!! for your help!Check this Sample code
BCALV_EDIT_07
it exactly behaves the way you want. -
How can i add a drop down list to a fields using BHTML( displaying on its)
Please help me to add a drop down list to a field while displaying on ITS using BHTML or javscript. List should show all the values from value table or search help.
Hi Sandeep,
in ABAP, read the table (keys and values) and write it to the ITS context, e.g. with field names KEY and VALUE.
On the ITS template, write code like this:
`if (KEY.dim > 1);
repeat with i from 1 to KEY.dim;
keys1[ i ] = KEY[ i ];
contents1[ i ] = VALUE[ i ];
if (KEY[ i ] == SELECTED_KEY);
selIndex = i;
end;
end,
SAP_TemplatePulldownField("field1", fieldLabel=#label, name="KEY", key="keys1", content="contents1", selIndex=selIndex);
end`
(I had to add blanks between the brackets to get the code displayed correctly here.)
HTH & best regards,
Carlo -
Error Displaying Mandatory community List using Adaptive data Tags
Hi I want to list down all the mandatory community list but when i am using <pt:ptdata.mandatorycommunitiesdata pt:id="commmenu" /> tags it returns me no value.
On the conterary the <pt:ptdata.mycommunitiesdata pt:id="commmenu" /> return me hte list of all the communities to which user has joined and once which are mandatory for the user.
Is this the expected behavior if yes then how can we get the list of mandatory communties. The first preference will offcoure be using Tags if not at al possible then we can go about using API.
I am unrgent ly looking for some solution. Any help in this regards is appriciated!!!
-: AmreshThis would only give the communities which are mandatory and exist as tabs.
hmm..Not sure why that didn't work.
I beleive the earlier tag doesn't exist anymore.This should help you though......It worked for me (6.5)
<span xmlns:pt='http://www.plumtree.com/xmlschemas/ptui/'>
<pt:ptdata.mandtabcommsdata pt:id="menutabs" />
<table cellpadding="0" cellspacing="0" width="200" border="0">
<tr>
<td height="2" colspan="3">
</td>
</tr>
<tr class="menuHeaderBg">
<td align="left" valign="middle" height="20" colspan="3" class="navSidebarSectionHeader">
My Communities
</td>
</tr>
<!-- links to communities are entered here -->
<pt:logic.foreach pt:data="menutabs" pt:var="temp">
<tr class="navMidtabBg">
<td height="16" colspan="2" class="navMidtabBtn">
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td height="20" width="100%" nowrap="nowrap" colspan="1" class="objectBtn">
<span class="actionbarBanText">
<pt:core.html pt:tag="img" src="$temp.img" alt="" border="0" align="absmiddle" height="20" width="20" />
<pt:core.html pt:tag="a" href="$temp.url">
<pt:logic.value pt:value="$temp.title" />
</pt:core.html>
</span>
</td>
</tr>
</table>
</td>
</tr>
</pt:logic.foreach>
</table>
</span>
Edited by: ALUIDeveloper on Mar 19, 2009 12:40 PM -
Editable alv: add custom validation and display "errors" in protocol list
Hi,
What I want to do:
PAI validation of editable alv with displaying error's in the protocol list by adding custom entries to the existing protocol object.
What is my problem:
After registering "data_changed event", the protocol list don't appear.
My understanding is, that the object "er_data_changed" is passed by the event "data_changed"
an so I thought I can add some more entries to the protocol list.
After "de-registering" the "data_changed" event, the protocol appears with the standard errros messages (e.g. "input to numeric" by enter charachters)
One more hint:
By creating a new object "er_data_changed" in the handler method the protocol list works, but I would like to append entries to the object that was passed with the event.
Probably I've misunderstand something, please help !
My coding:
PAI:
trigger event "data_changed" -> calls handler method
CALL METHOD r_myalv->check_changed_data
IMPORTING
e_valid = is_valid.
stop processing
IF is_valid NE 'X'.
MESSAGE 'invalid input' TYPE 'E' .
ENDIF.
handler method:
handle_data_changed FOR EVENT data_changed OF cl_gui_alv_grid IMPORTING e_ucomm
er_data_changed.
METHOD handle_data_changed.
data: ls_mod_cell type lvc_s_modi.
CALL METHOD er_data_changed->add_protocol_entry
EXPORTING
i_msgid = 'SU'
i_msgty = 'E'
i_msgno = '000'
i_msgv1 = 'This is a test !'
i_fieldname = ls_mod_cell-fieldname.
er_data_changed->refresh_protocol( ).
er_data_changed->DISPLAY_PROTOCOL( ).
ENDMETHOD. "handle_data_changedDear Olaf,
If understood correctly, you want to Edit an ALV and do some data validations when some data is changed in an ALV. To do this follow the following steps:
1. Before displaying ALV, Register the edit event.
* Set cell modified to trigger data_changed
CALL METHOD go_alv_grid->register_edit_event
EXPORTING
i_event_id = cl_gui_alv_grid=>mc_evt_modified.
2. Register the event DATA_CHANGED of class CL_GUI_ALV_GRID & handle the event.
SET HANDLER lo_event_receiver->handle_data_changed FOR go_alv_grid.
The event DATA_CHANGED of class CL_GUI_ALV_GRID has a parameter ER_DATA_CHANGED which is of type CL_ALV_CHANGED_DATA_PROTOCOL.
This er_data_changed has internal table MT_MOD_CELLS(contains index of records changed ) & MP_MOD_ROWS(contains the changed row), using these update your internal table accordingly.
DATA : wa_mod_cell TYPE lvc_s_modi.
FIELD-SYMBOLS: <fs> TYPE table.
LOOP AT er_data_changed->mt_mod_cells INTO wa_mod_cell.
ASSIGN er_data_changed->mp_mod_rows->* TO <fs>.
READ TABLE <fs> INTO wa_output INDEX wa_mod_cell-tabix.
MODIFY lt_output FROM wa_output INDEX wa_mod_cell-row_id.
ENDLOOP.
3. Here it self you can do the required data validations(No need of any PAI modules) as below.
IF wa_orders-zfstfirmtyp = c_9.
MESSAGE s288(zcsp).
DELETE er_data_changed->mt_mod_cells.
EXIT.
ENDIF.
Regards
Kesava -
I have created a farm solution and then i deploy it to SharePoint server, the code looks as follow, and i use it to update a page info values (as the current page values represents old info):-
[ToolboxItemAttribute(false)]
public partial class VisualWebPart1 : WebPart
// Uncomment the following SecurityPermission attribute only when doing Performance Profiling using
// the Instrumentation method, and then remove the SecurityPermission attribute when the code is ready
// for production. Because the SecurityPermission attribute bypasses the security check for callers of
// your constructor, it's not recommended for production purposes.
// [System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Assert, UnmanagedCode = true)]
public VisualWebPart1()
protected override void OnInit(EventArgs e)
base.OnInit(e);
InitializeControl();
using (SPSite site = new SPSite(SPContext.Current.Site.Url))
using (SPWeb web = site.OpenWeb())
SPList list = web.Lists["Pages"];
web.AllowUnsafeUpdates = true;
foreach (SPListItem items in list.Items)
items["Author"] = "SharePoint";
items["Created"] = "01/08/2014 01:44 PM";
items.Update();
list.Update();
web.AllowUnsafeUpdates = false;
protected void Page_Load(object sender, EventArgs e)
but when i try adding this web part to a page i got the following error:-
Invalid data has been used to update the list item.The field you are trying to update may be read only
so can anyone advice?i only changed lines bitween
web.AllowUnsafeUpdates = true;
and
web.AllowUnsafeUpdates = false;
and other parts of code remains without change
so it will updates all pages in current web
yaşamak bir eylemdir -
Can I display or export a list of all field names on a PDF
In Designer 7, is there a way to display all field names (text fields and checkboxes)? Or is there any way to obtain a list of all field names used on a form?
In Acrobat 7, all the field names used on the PDF will appear when you select the Text Field Tool. However, this will only happen when the fields were added using the form tools in built into Acrobat. These forms tools are not accessible in Acrobat when the PDF was created using Designer.
For a PDF created with Designer, you can hover over a field in Acrobat to have a ToolTip display the field name. Unfortunately, this can only be done one field at a time.
Thanks in advance for any info.Here is an example of how to get all the form objects' names within a node in the hierrachy. For a more complex form (with subforms), you will need to check to see if the node is a container. If it is, you will to use this code below to iterate that node.
var objNode = xfa.resolveNode("xfa.form.form1.page1")
for (var i = 0; i < objNode.nodes.length; ++i)
app.alert(objNode.nodes.item(i).name);
Here is an example:
http://66.34.186.88/LiveCycleSamples/.3bbb371.pdf -
Can I copy and paste a drop down list into another field?
Can I copy and paste a drop down list into another field?
You don't have to create a PDF, but it would be helpful to know what, exactly, you want to do with the ppt.
You can export as a PDF which will keep vectors and text as PostScript (crisp) elements.
You can also Save As from ppt in a variety of formats such as PNG or TIFF.
These rasterize all the vectors and text, but are very useful if you're laying out a miniature gallery of the powerpoint presentation.
However, if you want to make the InDesign file a replica of the ppt slides for print, PDF is probably the best way to go. -
Display author as drop list on advanced search UCM
Hello
Does anyone know if it is possible to have the authors field appear as a drop list on the advanced search screen in 10gR3 UCM?
ThanksKyle has a great blog article about changing the Account field, you can probably use the same method for the Author field.
http://blogs.oracle.com/kyle/2010/02/making_the_account_field_a_str.html -
The drop list is supposed to be populated by a form before the user enters the jsp page. The error is - "Failed to obtain specified collection". I think it is a servlet call or the logic of javascript and JSP whichever either process first. I'm trying to do the droplist, then I'll be doing the chain droplist by subcategories via ajax call. Any other strategies might be nice. I added the <body onload="retrieveCategories();"> to call the function in the js -
var req;
function retrieveCategories() {
var url = "/CategoriesAction/categories;"
if (window.XMLHttpRequest) {
req = new XMLHttpRequest();
else if (window.ActiveXObject) {
req = new ActiveXObject("Microsoft.XMLHTTP");
req.open("Get", url, true);
req.send();
}struts-config.xml - the js should get this info and call CategoriesAction.
<action input="/addsheet.jsp" name="refsheetsForm" path="/categories" scope="request" type="com.refsheets.struts.CategoriesAction" validate="false"/> This code summons the struts Action - CategoriesAction. It gets the list of categories from database and setAttribute in the form. I'm not sure if it's right - request.setAttribute(categories, list); I basically set the first parameter to the form - Collection categories, and supply the list(data) to be set in.
public class CategoriesAction extends Action {
/* forward name="success" path="" */
private final static String SUCCESS = "success";
Collection list = new ArrayList();
String categories = "categories";
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
DAOFactory TomcatFactory =
DAOFactory.getDAOFactory(DAOFactory.TOMCAT);
ClientDAO clientdao = TomcatFactory.getClientDAO();
list = clientdao.getCategories();
request.setAttribute(categories, list);
return mapping.findForward(SUCCESS);
}the form - as you can see the setCategories(Collection categories) it should be set up before the droplist requests this collection.
public Collection getCategories() {
return categories;
public void setCategories(Collection categories) {
this.categories = categories;
}The jsp page - placed the keys to get the form data. I couldn't figure out why it is still returning an error.
<html:select property="category" value="Select Categories">
<html:optionsCollection property="categories"/>
</html:select>I'm not sure what do you meant - id & category.
this collection only returns from a SQL statement which is
Games
Programming
Software Development
Hardware
The 'bean class' is an Action class? if you are talking about this - it's - request.setAttribute(categories, list);
It'll be
<html:select property="category" value="Select Categories">
<html:optionsCollection property="categories" value="list" label="category"/>
</html:select>It didn't work, it still returned an error. -
I manage a ton of accounts for different customers suing the same login pages (GoDaddy, WordPress, etc.) I use the Master Password Feature to help keep track of the many variants in logins and passwords.
After some unknown period of time, even closing the page tab so a new page session is started at the remote server, Firefox does not provide me with the usual drop-down selection list of the previously used login names. However, if I open a new FF window (file/new window) from the menu bar, the drop down becomes available.
How can I refresh the original window session in FF or change the timeout length?Well, you said LOV...that might mean you are using JDev 11g. Are you? If so what technology stack are you using?
Assuming you are using JSF (?) you might be "backing" your list component in the application scope...but that is not likely.
If you are using ADF/BC on your business component level, you can clear your view object from which you are querying the possible values of this list...unless your you have made a method to compile this list...in which case you know what you are doing...so that is probably not the case.
Essentially you want to requery the VO upon which your LOV is based...unless you are using JPA or something...and then I know "requery" is not the right word...is it? -
How write a field to screen(report list) but don't display it ?
Hi, All
How write a value to screen(report list) but don't display it ? Because i will use this value as the user click the current line ,but i don't want to expose this value to the user.Hi,
U can Use the option NO-DISPLAY with PARAMETERS.
Can write in the Selection screen statement with the syntax as
Paramaters: <fieldname> type <data type>
value <value> no-display.
-Rakesh -
How to display error message in case of function module ?
In the report i was using " message-id " to display error message....
how to use in function module ?Hi,
Messages in Function Modules and Methods
Messages have two different functions in function modules and methods:
Normal Messages
If you use messages in function modules and methods without the RAISING addition in the MESSAGE statement, and the caller does not catch the message, the message is handled
normally according to the context in which it is called within the function module or method.
Triggering Exceptions with Messages
If you use messages in function modules and methods with the addition
... RAISING <exc>
the way in which the message is handled depends on whether the calling program handles the exception <exc> or not.
If the calling program does not handle the exception, the message is displayed and handled according to the context in which it occurs in the function module or method from which it
was called.
If the calling program handles the exception, the message is not displayed. Instead, the procedure is interrupted in accordance with the message type, and processing returns to the calling program. The contents of the message are placed in the system fields SY-MSGID, SY-MSGTY, SY-MSGNO, and SY-MSGV1 to SY-MSGV4.
Catching Message in the Calling Program
You can catch messages from function modules that are not sent using the RAISING addition in the MESSAGE statement by including the implicit exception ERROR_MESSAGE in the
EXCEPTIONS list of the CALL FUNCTION statement. The following conditions apply:
Type S, I, and W messages are ignored (but logged during background processing)
Type E and A messages trigger the exception ERROR_MESSAGE
Type X messages trigger the usual runtime error and short dump.
Catching messages is not currently supported for methods.
Regards,
Bhaskar -
How to list all the Fields for an Active Directory Object
How do I list all the fields that an Active Directory object contains? I know the most common ones, but would like to enumerate through all the fields and obtain the type of fields and their values...
Here is my complete code - I only put snippets so that the post was not too huge...
Option Explicit
Const ADS_SCOPE_SUBTREE = 2
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Dim adoCommand, adoConnection, adoRecordSet
Dim dtmDate, dtmValue
Dim j
Dim lngBias, lngBiasKey, lngHigh, lngLow, lngValue
Dim objADObject, objClass, objDate, objFile, objFSO, objRootDSE, objShell
Dim pathToScript
Dim strAdsPath, strConfig, strDNSDomain, strHex, strItem, strProperty, strValue
Dim strFilter, strQuery
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objShell = CreateObject("Wscript.Shell")
pathToScript = objShell.CurrentDirectory
Set objFile = objFSO.CreateTextFile(pathToScript & "\TestAD.csv")
' Determine Time Zone bias in local registry.
' This bias changes with Daylight Savings Time.
lngBiasKey = objShell.RegRead("HKLM\System\CurrentControlSet\Control\TimeZoneInformation\ActiveTimeBias")
If (UCase(TypeName(lngBiasKey)) = "LONG") Then
lngBias = lngBiasKey
ElseIf (UCase(TypeName(lngBiasKey)) = "VARIANT()") Then
lngBias = 0
For j = 0 To UBound(lngBiasKey)
lngBias = lngBias + (lngBiasKey(j) * 256^j)
Next
End If
' Determine configuration context and DNS domain from RootDSE object.
Set objRootDSE = GetObject("LDAP://RootDSE")
strConfig = objRootDSE.Get("configurationNamingContext")
strDNSDomain = objRootDSE.Get("defaultNamingContext")
Set adoCommand = CreateObject("ADODB.Command")
Set adoConnection = CreateObject("ADODB.Connection")
adoConnection.Provider = "ADsDSOObject"
adoConnection.Open "Active Directory Provider"
adoCommand.ActiveConnection = adoConnection
adoCommand.CommandText = "SELECT * FROM 'LDAP://" & strDNSDomain & "'WHERE objectClass=user'"
adoCommand.Properties("Page Size") = 1000
adoCommand.Properties("Searchscope") = ADS_SCOPE_SUBTREE
Set adoRecordSet = adoCommand.Execute
Set adoRecordSet = adoCommand.Execute
adoRecordSet.MoveFirst
Do Until adoRecordSet.EOF
strAdsPath = adoRecordSet.Fields("ADsPath").Value
' Bind to Active Directory object specified.
Set objADObject = GetObject(strAdsPath)
Set objClass = GetObject(objADObject.Schema)
' Write which object is grabbed from AD
objFile.Write(Replace(strAdsPath, ",", ";;;"))
' Enumerate mandatory object properties.
For Each strProperty In objClass.MandatoryProperties
On Error Resume Next
strValue = objADObject.Get(strProperty)
If (Err.Number = 0) Then
On Error GoTo 0
If (TypeName(strValue) = "String") Or (TypeName(strValue) = "Long") Or (TypeName(strValue) = "Date") Then
objFile.Write("," & strProperty & "|||" & Replace(CStr(strValue), ",", ";;;"))
ElseIf (TypeName(strValue) = "Byte()") Then
strHex = OctetToHexStr(strValue)
objFile.Write("," & strProperty & "|||" & CStr(strHex))
ElseIf (TypeName(strValue) = "Variant()") Then
For Each strItem In strValue
On Error Resume Next
objFile.Write("," & strProperty & "|||" & Replace(CStr(strItem), ",", ";;;"))
If (Err.Number <> 0) Then
On Error GoTo 0
objFile.Write("," & strProperty & "|||Value cannot be displayed")
End If
On Error GoTo 0
Next
ElseIf (TypeName(strValue) = "Boolean") Then
objFile.Write("," & strProperty & "|||" & CBool(strValue))
Else
objFile.Write("," & strProperty & "|||Type:" & TypeName(strValue))
End If
Else
Err.Clear
sColl = objADObject.GetEx(strProperty)
If (Err.Number = 0) Then
For Each strItem In sColl
objFile.Write("," & strProperty & "|||" & CStr(strItem))
If (Err.Number <> 0) Then
objFile.Write("," & strProperty & "|||Value cannot be displayed")
End If
Next
On Error GoTo 0
Else
Err.Clear
Set objDate = objADObject.Get(strProperty)
If (Err.Number = 0) Then
lngHigh = objDate.HighPart
If (Err.Number = 0) Then
lngLow = objDate.LowPart
If (lngLow < 0) Then
lngHigh = lngHigh + 1
End If
lngValue = (lngHigh * (2 ^ 32)) + lngLow
If (lngValue > 120000000000000000) Then
dtmValue = #1/1/1601# + (lngValue / 600000000 - lngBias) / 1440
On Error Resume Next
dtmDate = CDate(dtmValue)
If (Err.Number <> 0) Then
objFile.Write("," & strProperty & "|||<Never>")
Else
objFile.Write("," & strProperty & "|||" & CStr(dtmDate))
End If
Else
objFile.Write("," & strProperty & "|||" & FormatNumber(lngValue, 0))
End If
Else
objFile.Write("," & strProperty & "|||Value cannot be displayed")
End If
Else
On Error GoTo 0
objFile.Write("," & strProperty)
End If
On Error GoTo 0
End If
End If
Next
' Enumerate optional object properties.
For Each strProperty In objClass.OptionalProperties
On Error Resume Next
strValue = objADObject.Get(strProperty)
If (Err.Number = 0) Then
On Error GoTo 0
If (TypeName(strValue) = "String") Then
objFile.Write("," & strProperty & "|||" & Replace(CStr(strValue), ",", ";;;"))
ElseIf (TypeName(strValue) = "Long") Then
objFile.Write("," & strProperty & "|||" & Replace(CStr(strValue), ",", ";;;"))
ElseIf (TypeName(strValue) = "Date") Then
objFile.Write("," & strProperty & "|||" & Replace(CStr(strValue), ",", ";;;"))
ElseIf (TypeName(strValue) = "Byte()") Then
strHex = OctetToHexStr(strValue)
objFile.Write("," & strProperty & "|||" & CStr(strHex))
ElseIf (TypeName(strValue) = "Variant()") Then
For Each strItem In strValue
On Error Resume Next
objFile.Write("," & strProperty & "|||" & Replace(CStr(strItem), ",", ";;;"))
If (Err.Number <> 0) Then
On Error GoTo 0
objFile.Write("," & strProperty & "|||Value cannot be displayed")
End If
On Error GoTo 0
Next
ElseIf (TypeName(strValue) = "Boolean") Then
objFile.Write("," & strProperty & "|||" & CBool(strValue))
Else
objFile.Write("," & strProperty & "|||Type:" & TypeName(strValue))
End If
Else
Err.Clear
sColl = objADObject.GetEx(strProperty)
If (Err.Number = 0) Then
For Each strItem In sColl
objFile.Write("," & strProperty & "|||" & CStr(strItem))
If (Err.Number <> 0) Then
objFile.Write("," & strProperty & "|||Value cannot be displayed")
End If
Next
On Error GoTo 0
Else
Err.Clear
Set objDate = objADObject.Get(strProperty)
If (Err.Number = 0) Then
lngHigh = objDate.HighPart
If (Err.Number = 0) Then
lngLow = objDate.LowPart
If (lngLow < 0) Then
lngHigh = lngHigh + 1
End If
lngValue = (lngHigh * (2 ^ 32)) + lngLow
If (lngValue > 120000000000000000) Then
dtmValue = #1/1/1601# + (lngValue / 600000000 - lngBias) / 1440
On Error Resume Next
dtmDate = CDate(dtmValue)
If (Err.Number <> 0) Then
objFile.Write("," & strProperty & "|||<Never>")
Else
objFile.Write("," & strProperty & "|||" & CStr(dtmDate))
End If
Else
objFile.Write("," & strProperty & "|||" & lngValue)
End If
Else
objFile.Write("," & strProperty & "|||Value cannot be displayed")
End If
Else
On Error GoTo 0
objFile.Write("," & strProperty & "||| ")
End If
On Error GoTo 0
End If
End If
Next
objFile.WriteLine("")
adoRecordSet.MoveNext
Loop
objFile.Close
' Function to convert OctetString (Byte Array) to a hex string.
Function OctetToHexStr(arrbytOctet)
Dim k
OctetToHexStr = ""
For k = 1 To Lenb(arrbytOctet)
OctetToHexStr = OctetToHexStr _
& Right("0" & Hex(Ascb(Midb(arrbytOctet, k, 1))), 2)
Next
End Function
I have been able to obtain all the Computer, Contact, Group and OU objects without issue with this code... -
Hi,
Windows 7 or Windows Server 2008 R2 domain join displays error "Changing the Primary Domain DNS name of this computer to "" failed...."
DC:windows Server 2008 R2
Domain functional level:Windows Server 2003
When Winxp join domain, have no this error message.
I checked http://support.microsoft.com/kb/2018583?wa=wsignin1.0 does't work.
There have 3 suggestion in this article:
1.The "Disable NetBIOS over TCP/IP" checkbox has been disabled in the IPv4 properties of the computer being joined.
Doesnt's work.
2.Connectivity over UDP port 137 is blocked between client and the helper DC servicing the join operation in the target domain.
On my DC, I run netstat -an, reslut as below:
UDP 192.168.20.3:137 *:*
3.The TCP/IPv4 protocol has been disabled so that the client being joined or the DC in the destination domain targeted by the LDAP BIND is running TCP/IPv6 only.
We are not using IPV6.
This server recently updated from Windows Server 2003 to Windows Server 2008 R2. Before upgrade, when Win7 and Win2008 join this domain, also have the same error message.
Please help to check this issue.
Thank you very much.
BR
Guo YingHuiHi Guo Ying,
I have faced this critical error which makes over-writes the host names in the domain when you join.
For example: Already you had a host name called as PC.domain.com in the domain.com Domain.
When you try to add the another host name called as PC in the domain.com Domain, it doesn't give you the duplicate name error on the network it does over-write the existing host name called as PC.domain.com & it will add the new host name into the domain.
Host name which got over-written will get removed from the domain. I faced this issue in my project. My DPM host name got removed from the Domain & new host name got joined into the domain which halted my backups for one day.
Final Resolution is as follows:
You need to start the dns console on the DC & drop down the domain name.
Select the _msdcs when you click on _msdcs it will show the Name Server's list on the right hand side.
You need to add the Domain Naming Master under the _msdcs or add all the domain controllers which you had.
After you add the Name server's try joining the PC OR Laptop to the domain which is successfully joins it.
Regards
Anand S
Thanks & Regards Anand Sunka MCSA+CCNA+MCTS
Maybe you are looking for
-
MacBook Pro's wireless connectivity with ZTE 531 ADSL modem using BSNL broadband
I have tried to connect macbook pro with BSNL broadband internet connection using ZTE 531 ADSL modem. The connection using both wireless mode and ethernet mode failed repeatedly. Using the same modem, I am able to connect to internet through my Sony
-
BI data source creation in segmentation.
Hi I am trying to create a datasource in CRM to a BI system for segmentation . When enter the RFC destination and click on the 'report' field no reports from BI are being found. It then comes up with the following error: System error in system BIDC
-
Can't install Flash player on Mac 10.10.1
I have tried all evening to install the latest Flash Player on my Mac 10.10.1 - using Safari as browser. Did not work, therefore I uninstalled it and tried it all over again. Zero results, the downloading blocks around 29% and that's it. Any idea wha
-
Netweaver administration material needed
Hi gurus, Can any one provide Netweaver administration materail, Web Application Server material (how it works) thanks in advance Regards Harsha vardhan.p *i will reward points for the help*
-
I just put in the new 865P Neo board with a P4 2.4 HT & Kingston 512 DDR400 stick. When I try to boot it (btw never get anything showing on the monitor) - I get to only the #3 green showing (all others red) and beeps twice in succession then once a