IPAM registration using powershell does not commit to DNS
I am working on having IPAM become a valuable tool in the organization I work, and as part of that I am setting up a registration Gateway for Our Developers and their VMs, and the gatway invokes the PowerShell script With the proper command to register in
IPAM including all nescessary dns information. The problem is that the registration Works like a charm, With an exception for DNS registration.
In the GUI you have the option to Select "register automatically in dns", but this option is not documented in the PowerShell command and in in IPAM it just says "not attempted"
My syntax for the powershel registration is like this:
Add-IpamAddress -IpAddress 127.0.0.3 -AssignmentType Static -DeviceName testreg -ForwardLookupZone blastlan.com -ForwardLookupPrimaryServer anakin.blastlan.com
How can i force the registration to the DNS? I have currently solved this using the dns server functions together With the ipam registration, but this seems a but idiotic as I want a single command for this registration, as well as using the IPAM Access
to define what ranges the Gateway should allow the users to register within.
Hi Hawkie,
Did the option "register automatically in dns" is the option in the screenshot below:
If so, I haven't found this option in IPAM cmdlets, as a workaround, you can register DNS record for IP address on client as the script below, you can run this script on client and connect remote IPAM server:
<pre class="brush:powershell">##Check the following items: IPAM Server Name, Start and End IP Addresses of IPAM Range,
##Name of network adapter, Subnet Prefix Length, Default Gateway, DNS Server Addresses
##Requires Powershell 4.0 or higher
##Create a Common Information Model connection to IPAM Server
$cim = new-cimsession -ComputerName IPAM
##Find a free IP Address from the IPAM Server. Be sure to use the addresses in your range from the IPAM Server
$FreeIP = Get-IpamRange -StartIPAddress 10.10.50.10 -EndIPAddress 10.10.50.69 -CimSession $cim | Find-IpamFreeAddress | select-object -expandproperty IPAddress
##add the IP Address to the IPAM Server
$servername = hostname
Add-IpamAddress -CimSession $cim -IpAddress $FreeIP -devicename $servername
##Remove the CIM Session (logout)
Remove-CimSession -CimSession $cim
##Get the Network Adapter named "Ethernet"
$adapter = Get-NetAdapter -name Ethernet
##Disable DHCP
$adapter | Set-NetIPinterface -dhcp disabled
##Set New IP AddressString
$adapter | New-NetIPAddress -addressfamily IPv4 -IPAddress $FreeIP -PrefixLength 24 -type Unicast -DefaultGateway 10.10.50.254
##Set DNS Server
set-dnsclientserveraddress -InterfaceAlias ethernet -ServerAddresses 10.10.50.12, 10.10.50.9
##Register DNS
Ipconfig /registerdns
Refer to:
Dynamically Assigned Static IP Addresses…Huh?
If there is anything else regarding this issue, please feel free to post back.
Best Regards,
Anna Wang
Similar Messages
-
Namaste InDesign gurus,
I have a problem at hand. Wondering if anyone has encoutered similar problem before? Any help is greatly appreciated. And if you're in San Francisco bay area - I can buy you a lunch :-)
Short description: Devanagari font in layed out in Indesign (using IndicPlus) does not export correctly to a PDF. All the ligatures are assembled and displayed in the PDF.
Adobe Indesign Version: InDesign CS5 Design Premium - regular U.S. version (not ME).
Steps I took:
I purchased CS5 Design Premium and also purchased the IndicPlus plugin to author sanskrit documents in InDesign. I create Sanskrit text using either of the following methods.
1) Itranslator
2) Paste the devanagari from the Itranslator directly into InDesign or paste it first into MSWord and then copy from MSWord and paste it to Indesign.
It doesn't matter how I paste it. After I apply the IndicPlus character/paragraph style so that the sanskrit looks good in InDesign, when I try to export it to a PDF. The PDF does not display the ligatures currectly. It just lists all the characters in order without assembling.
I've spent a lot of money buying CS5, IndicPlus and then I can't even create a simple PDF document from InDesign. It is very frustrating.
Has anyone been able to successfully export a sanscrit document from InDesign PDF ?
(Please let me know if my problem description needs more fleshing out).
I could create the PDF from MSWord directly but I'm trying to use indesign to layout my book. If InDesign cannot export to PDF I'll just have to use MSWord for my book layout. I've spend probably scores of hours trying to learn InDeisn and formatting my book content - seems like it is all going to be waste.
Is MSWord the best choice or only choice for laying out books that have sanskrit text in them?
-RaviHas anyone been able to successfully export a sanscrit document from InDesign PDF ?
Not Sanskrit, no, but plenty of Hindi, Nepali, Marathi, and other languages written in Devanagari script - so it should be possible. I don't even use IndicPlus, which by most accounts makes working with Indic text much easier.
1) Itranslator
I've never seen this, but a quick Google led me to the homepage of ITranslator for Windows, where I saw this:
Itranslator 99 (Build 1.3.0.86) & New Beta Version
uses 8-bit true type fonts and is compatible
with Windows 95/98/ME/NT/2000/XP.
For more information, click here.
Itranslator 2003 (Build 2.0.0.38) & New Beta Version
uses 16-bit Unicode-compatible fonts and is working
only on Windows 2000 / XP / Server 2003.
For more information, click here.
So, if you're using ITranslator 99, there's the problem - those "8-bit true type fonts" won't work in InDesign. Can you post a sample of the text you're trying to paste into InDesign? Name the font(s) you are using, both in Word and in Indesign, and if possible make a small sample of the text available for us to test. It's also possible that InDesign is using a substituted font, which could cause this problem. So, if the font name in InDesign has brackets around it, you know that InDesign doesn't actually have that font installed and is auto-substituting. Also, if you go to View -> Screen Mode -> Normal and the text is highlighted pink, you know that the font has dropped. (Unless the highlighting for dropped fonts was turned off - check in Edit -> Preferences -> Composition and make sure that "Substituted Fonts" is checked.
Also, for what it's worth, is there any way you could Place your text instead of copying and pasting? This may be cause of your problem - but even though it probably isn't, it's still worth a try.
Lastly - no, I've found InDesign to be superior for typesetting for almost all languages, but the learning curve is pretty steep, and many of the problems faced by people working in non-English languages are not easy to research when you have a problem. -
After updating my iPhone 4 to 5IOS my letters from my mail(i use google) does not send
After updating my iPhone 4 to 5IOS my letters from my mail(i use google) does not send
I tried that but I still got the message "Unable to verify account information." I saved it anyway and when I go to the Exchange email account it says "Cannot Get Mail" "The connection to the server failed." We are running Microsoft Exchange 2010 and I was always able to sync my calendar and email before I upgraded to IOS 6.
-
Using revelation does not open
Good morning , I'm having trouble using my ligtroom when using revelation does not open saying that the module was disabled reveal , please return me because depend upon him for my work. Already renewed and still does not work
the message goes like this : renew your subscription to activate the module
reveal
Célia Rocha
Fotografia
2015-03-22 10:28 GMT-03:00 JimHess <[email protected]>:
using revelation does not open created by JimHess
<https://forums.adobe.com/people/JimHess> in Photoshop Lightroom - View
the full discussion <https://forums.adobe.com/message/7327114#7327114> -
Hello,
Today i tried accessing transitbux.com with mozilla, but i'm getting this kind of a error as mentioned below:
Unknown Host
Description: Unable to locate the server requested --- the server does not have a DNS entry. Perhaps there is a misspelling in the server name, or the server no longer exists. Double-check the name and try again.
Can anyone help me please, and the same website is accessible with my phone.
Help me please. :(
Regards
-Try http://www.transitbux.com/
Clear the cache and remove cookies only from websites that cause problems.
"Clear the Cache":
*Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
"Remove Cookies" from sites causing problems:
*Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: "Show Cookies" -
Domaindnszones Forestdnszones exists but does not show in Dns
Guys I have a weird situation where the Domaindnszones and Forestdnszones partitions exists but does not show in dns.
If I try to recreated the partition in DNS it says "partition already exists".
I try Recreating it in DNS by creating a new domain under the "mydomain" zone but it never gets populated.
Replication seems to be working fine between my DC's
This domain was created from way back in the NT days and has just been upgraded over the years..
currently we have 1 2003 Dc and 2 2008 r2 Dc. we want to retire the 2003 dc. all 3 dc are DNS, and GC servers.
at this point should i even worry about this two partitions. ( Domaindnszones, Forestdnszones).
I think Dns was never configure correctly when we went from 2000 to 2003
thanksHI.
Correction. the 2003 dns and dc is no loger in the environment. It was the Primary FSMO role holder.looks like all the roles has been transfer over to the new 2008 r2 dc.
I did not set this domain up. but are trying to clean it up.
I notice in dns there was only one AD integrated zone (mydomain). that the (Domaindnszones and forestdnszones) are not visible. I tested replication between the DC via sites and services and replication is ok.
I created and AD integrated Zone in DNS called _msdcs.mydomain and it looks like it populated it with all the corrected corresponginng zones.
_mcdcs.mydomain
----------dc
----------domain
-----------gc
-----------pdc
when i try in dns to Create default application directory partition, it tells me the "partition exists"
using adsiedit connecting to DC=domaindnszones. dc=mydomain I can see the partition same is true for Dc=forstdnszones, dc=mydomain
so digging around i found this similiar thread:
http://social.technet.microsoft.com/Forums/windowsserver/en-US/b5551ad5-65ec-48f7-81b2-2a00bbd93def/msdcs-doesnt-exist?forum=winserverNIS&prof=required
I followed solution suggested by ACE. which did allow me to delete and create the new (domaindnszones and forestdnszones) partitions. but sitll not showing in dns.
some more research showed this link..
http://blogs.technet.com/b/the_9z_by_chris_davis/archive/2011/12/20/forestdnszones-or-domaindnszones-fsmo-says-the-role-owner-attribute-could-not-be-read.aspx
and indeed the script did clean up the deleted 2003 Dc/dns server. and assigned the new 2008 r2 dc/dns server
still the Domaindnszones and Forestdnszones are not visible.
Manually Creating a delegation under Mydomain (domaindnszones forestdnszones) only yield Grayed out folders
Manually Creating 2 domains under Mydomain (domaindnszones forestdnszones) shows the folders. but once I restart netlogon and restart dns
the folders disappear...
any suggestion solutions will be greatly appreciated... -
Command button does not commit unless hit twice
I'm using ADF/BC, 10.1.3.2 jdev. I have the following code in my backing bean:
public String cardLost() {
inputText12.setValue("1");
BindingContainer bindings = getBindings();
OperationBinding operationBinding =
bindings.getOperationBinding("Commit");
Object result = operationBinding.execute();
if (!operationBinding.getErrors().isEmpty()) {
return null;
return null;
The command button is defined as follows:
<af:commandButton
text="Save" disabled="false"
binding="#{find_student_mb.commandButton4}"
id="commandButton4"
action="#{find_student_mb.cardLost}"
immediate="false"/>When I hit the Save button the first time, the input text field (inputText12) changes to 1, but the data does not get commited to the database. (I have verified this in the database) If I hit the Save button again, the data gets committed.
Is there a way to update the field and commit the data with one button?
Thanks,
BobHi,
commit doesn't execute before a field is submitted. So what you do is you submit a page then update the field (which then is not yet reflected in the submit) an call commit, which basically executes on no new data. In the second call you now submit the data shown in the field that then also gets commited. To get it commited on the first button press, set the field value to the binding layer (attribute binding or iterator binding )
Frank -
Re : Powershell does NOT return errorcode to CMD file thats invoking PS
Hello there,
I am trying to return the exit code from PS back to CMD file that invokes the PS. Funny thing is PS does print exit code as 1 but CMD files still shows errorlevel as 0..... not sure what is causing it. The catch block in PS , I attempted to make generic
and seems catch the exception correctly and is also printing the errorcode as 1 in PS. but upon exit 1 in PS , CMD file still shows %ERRORCODE% as 0 !
Appreciate suggestions on this.
CMD File
:DBLOGIN
CALL login.cmd username
if %errorlevel% == 1 goto badend
SET PWORD=%PASS_WORD%
:ADLOGIN
CALL AD_login.cmd %5
if %errorlevel% == 1 goto badend
SET AD_PWORD=%AD_PASS_WORD%
SET PS_DIR=%1
SET ROOT_DIR=%2
SET UNAME=%3
SET CONNSTR=%4
SET ELE_UNAME=%5
SET GROUPNAME=%6
SET GROUPDOMAINNAME=%7
SET DIR=%8
d:
cd %ROOT_DIR%
%PS_DIR% -File "%ROOT_DIR%\adsync.ps1" %UNAME% %PWORD% %CONNSTR% %ELE_UNAME% %AD_PWORD% %GROUPNAME% %GROUPDOMAINNAME% %DIR% 2>&1 | more
echo error level is %ERRORLEVEL%
if %ERRORLEVEL% NEQ 0 GOTO badend
GOTO ENDPROC
:badend
REM BAD END %ERRORLEVEL%
@ECHO OFF & ECHO. & DATE /T & TIME /T & ECHO. & @ECHO ON
exit /B 55
:ENDPROC
REM ACCEPTABLE RETURN CODE FOUND
REM Error Level - %ERRORLEVEL%
@ECHO OFF & ECHO. & DATE /T & TIME /T & ECHO. & @ECHO ON
EXIT /B 0
The powershell code is :
Import-Module ActiveDirectory
$returncode =0;
try
$forestName = ([System.DirectoryServices.ActiveDirectory.Forest]::GetCurrentForest()).Name
$ADsPath = [ADSI]"GC://$forestName"
$Search = New-Object System.DirectoryServices.DirectorySearcher($ADsPath)
$OraClientDir=$args[7];
echo $OraClientDir;
[Reflection.Assembly]::LoadFile("$($OraClientDir)Oracle.DataAccess.dll")
$DBUserName=$args[0];
$DBPassword=$args[1];
$DBSourceName=$args[2];
$eleuser=$args[3];
echo $eleuser;
$elepword=ConvertTo-SecureString -String $args[4] -AsPlainText -Force;
echo $elepword;
$Credentials=New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $eleuser,$elepword;
echo $Credentials;
$ADGroupName=$args[5];
echo $ADGroupName;
$ADGroupServerName=$args[6];
echo $ADGroupServerName;
$ADGroupServerString="$($ADGroupName) -server ""$($ADGroupServerName)""" ;
echo $ADGroupServerString;
Write-Host \n;
echo " Start time is : $(Get-Date -format "yyyy:MM:dd hh:mm:ss:tt") ";
$con=New-Object Oracle.DataAccess.Client.OracleConnection("Data Source=$DBSourceName;User Id=$DBUserName;Password=$DBPassword")
$con.open()
$cmd=$con.CreateCommand()
$cmd.CommandText="SELECT blah blah SQL"
$rdr=$cmd.ExecuteReader()
$found= $false;
$counter=0;
$counterNew=0;
$group=Get-ADGroup $ADGroupName -server $ADGroupServerName;
$members = @()
Get-ADGroupMember -Identity $group | Select-Object -ExpandProperty sAMAccountName |ForEach-Object {$members += $_};
$path="\logs\log_$(Get-Date -format yyyy_MM_dd_hh_mm_ss_tt).log";
Write-Host "The total members in group " $group " are " $members.length;
Add-Content -Path $path -Value ("The total members in group " + $group + " are " + $members.length ) -Force;
while ($rdr.Read())
for ($i=0;$i -lt $rdr.FieldCount ; $i++)
$found= $false;
$s=$rdr.GetValue($i);
$Search.Filter = "(&(objectCategory=User)(SamAccountName=$s))"
if ($Search.FindAll().Count -eq 0)
Add-Content -Path $path -Value "The user $s does NOT exists in AD global catalog" -Force;
Write-Host "The user : " $s "does NOT exists in AD global catalog" ;
$counter++;
else {
try {
foreach ($res in $Search.FindAll())
$User = $res.GetDirectoryEntry();
Add-Content -Path $path -Value ("The user " + $User.SamAccountName + " Found in AD global catalog") -Force;
Write-Host "The user distinguished name is : " $User.DistinguishedName " Found in AD global catalog" ;
$DC = $User.DistinguishedName.ToString();
$DCString = $DC.SubString($DC.IndexOf("DC="));
$FQDN = $DCString.replace("DC=","").replace(",",".");
# Add-Content -Path $path -Value $FQDN -Force;
$found = $true;
if ( ($found) -and ($members -notcontains $s))
$checkuser= Get-ADUser $User.SamAccountName.ToString() -Server $FQDN ;
Add-ADGroupMember $group -Members $checkuser -Server $ADGroupServerName -Credential $Credentials;
Add-Content -Path $path -Value ("Added user: " + $User.SamAccountName ) -Force ;
Write-Host "Added user: " $User.SamAccountName;
$counterNew++;
} catch [Exception] {
Write-Host $_.Exception.Message "is inner catch";
$returncode =1;
Add-Content -Path $path -Value "Total of : $counterNew users users have been added " -Force;
Write-Host "Total of : $counterNew users users have been added to AD Group";
Add-Content -Path $path -Value "Total of : $counter users do NOT exist in Windows AD global catalog";
Write-Host "Total of : $counter users do NOT exist in Windows AD global catalog";
catch [Exception] {
Write-Host $_.Exception.Message "is outer catch";
$returncode =1;
Write-Host \n;
echo " End time is : $(Get-Date -format "yyyy:MM:dd hh:mm:ss:tt") ";
Write-Host "value of return code is " $returncode;
exit $returncode;Maybe the webpages below can help someone compose a workaround
https://connect.microsoft.com/PowerShell/feedback/details/750653/powershell-exe-doesn-t-return-correct-exit-codes-when-using-the-file-option
https://connect.microsoft.com/PowerShell/feedback/details/750653/powershell-exe-doesn-t-return-correct-exit-codes-when-using-the-file-option# -
Confirm using BAPI_PRODORDCONF_CREATE_TT does not print Goods Receipt Slip
We are having issue when perform co11n confirmation, goods receipt slip prints out fine, but calling BAPI_PRODORDCONF_CREATE_TT using the same production order/operation does not print the Goods Receipt Slip. The automatic goods movement works fine with BAPI & co11n.
Has anyone else had this problem?
Thanks
DavidNagarajan,
We have been using this BAPI in production environment for over a year now and basically it has worked just fine. From what I understand, the Goods Receipt Slip has never printed when using this BAPI, but since we only had small areas that were using this BAPI (until recently), these areas either did not need the printed Goods Receipt Slip or a Warehouse was specified, so a Transfer Order was produced instead of GRS.
I was thinking maybe we were not populating one of the BAPI input fields properly, but not sure which one it would be. We currently do not populate the "Posting Date" input field, so thought I would try populating that.
To answer your question, yes, we do the commit work.
Thanks -
I deployed an EJB Stateless and Container_Managed into 8i 8.1.7.
The bean contains a method with a simple SQLJ insert statement and works fine, except for no commit is triggered by the Bean Container when method call is finished.
I can see that the insert was done, because the counter for my table is increased!
So the fault has to be that there is no commit!
Why does the Bean Container not commit, as it states in the EJB Online Documentation??Is it NT or solaris 8.1.7 ?
On solaris it should have worked. On NT it wouldn't work, unless you explicitly lookup
the datasource and do a ds.getConnection(), the container doesn't know what to commit. In general, hereafter, the bean code needs to explicitly lookup datasources and call getConnection() on the datasource so that the datasource is enlisted. Using the default kprb connection isn't going to work unless you explicitly set default-enlist tag to true in the XML deployment descriptor. -
Call to concurrent program in a pl/sql block does not COMMIT data to table
I have the following PL/SQL block.
apps.create_po(x_org_id,x_document_num,x_agent_name,x_vendor_id,x_vendor_site_id,x_ship_to_location,x_bill_to_location,x_creation_date,new_isbn,new_print_key,new_unit_setup_cost,new_unit_run_cost,x_item,x_category_id,x_item_description,x_unit_of_measure,x_quantity,x_unit_price,x_ship_to_org_id,x_promise_date,x_qty_rcv_tolerance, x_deliver_to_location,x_destination_org_id, x_destination_subinventory,x_segment2,x_segment4);
COMMIT;
FND_GLOBAL.APPS_INITIALIZE(v_user_id,v_resp_id,201);
v_po_req_id := apps.fnd_request.submit_request('PO','POXPOPDOI',NULL,NULL,NULL,
NULL,'STANDARD',NULL,'Y',NULL,'APPROVED',NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL
DBMS_OUTPUT.PUT_LINE('Request ID is:' || v_po_req_id);
IF v_po_req_id <> 0 THEN
dbms_lock.sleep(60);
dbms_output.Put_line('Sleep executed');
COMMIT;
select PHASE_CODE,STATUS_CODE INTO v_phase_code,v_status_code
FROM FND_CONCURRENT_REQUESTS
WHERE REQUEST_ID = v_po_req_id;
dbms_output.put_line('After commit Phase and status codes are = '||v_phase_code || v_status_code);
ELSE
ROLLBACK;
END IF;
dbms_output.put_line('New Po is' || x_document_num);
dbms_output.put_line('Quantity Is'|| x_quantity);
apps.receive_po(x_document_num,x_quantity);
v_rcv_req_id := apps.fnd_request.submit_request('PO','RVCTP',NULL,NULL,NULL,
'BATCH',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL
DBMS_OUTPUT.PUT_LINE('Request ID is:' || v_rcv_req_id);
IF v_rcv_req_id <> 0 THEN
COMMIT;
DBMS_OUTPUT.PUT_LINE('COMMITED RECEIVING');
ELSE
ROLLBACK;
END IF;
Presently when this block runs, i can see the new PO number created. Commit is also successfully executed. The last output for the program is
New Po is 20651
Quantity Is 450
But due to some reason, the receiving program(receive_po) cannot retrieve the same PO from the base table.
But once this pl/sql block is complete, and i call the receving procedure from a different session, the Po is retrieved and receiving against the PO is executed successfully.
Can someone please suggest a work around ? Is the code missing something ? Since POXPOPDOI is a concurrent program which is executed as an asyncronous process, the commit statement after the call to concurent program does not work but the commit is executed only after it exits the pl/sql block.Thanks for responding.
receive_po() program just inserts the data into RCV_HEADERS_INTERFACE and RCV_TRANSACTIONS_INTERFACE tables based on the PO that is created in the previous step. So basically the new PO created has to be received and the receive_po() just inserts data into the interface tables so that RVCTP can be called after that for receiving.
Here is the code for the procedure.
SET SERVEROUTPUT ON;
--FND_GLOBAL.APPS_INITIALIZE(3,20707,201);
--Procedure for receiving interface to load data to RCV_HEADERS_INTERFACE and RCV_TRANSACTIONS_INTERFACE
CREATE OR REPLACE PROCEDURE receive_po (x_ponum IN VARCHAR2,x_quantity IN NUMBER) AS
v_vendor_site_id NUMBER;
v_vendor_id NUMBER;
v_agent_id NUMBER;
v_ship_to_organization_id NUMBER;
v_item_id NUMBER;
v_uom_code varchar2(25);
v_subinventory varchar2(25);
v_ship_to_location_id NUMBER;
BEGIN
--header information in variables
dbms_output.put_line('Entering Receiving Insert Procedure');
dbms_output.put_line('Po number ='||x_ponum||'$');
dbms_output.put_line('Quantity is ='||x_quantity||'$');
select pvsa.vendor_site_id into v_vendor_site_id
FROM po_headers_all pha,po_vendors pv, po_vendor_sites_all pvsa
where pha.vendor_id = pv.vendor_id
and pv.vendor_id = pvsa.vendor_id
and pha.segment1 = x_ponum;
dbms_output.put_line('Vendor Site ID is' ||v_vendor_site_id);
select pv.vendor_id into v_vendor_id
FROM po_headers_all pha,po_vendors pv, po_vendor_sites_all pvsa
where pha.vendor_id = pv.vendor_id
and pv.vendor_id = pvsa.vendor_id
and pha.segment1 = x_ponum;
dbms_output.put_line('Vendor ID is' ||v_vendor_id);
select plla.SHIP_TO_ORGANIZATION_ID into v_ship_to_organization_id
from PO_HEADERS_ALL pha, PO_LINE_LOCATIONS_ALL plla
where pha.PO_HEADER_ID = plla.PO_HEADER_ID
and pha.segment1 = x_ponum;
dbms_output.put_line('Ship to org is' ||v_ship_to_organization_id);
select agent_id into v_agent_id
FROM po_headers_all
WHERE segment1 = x_ponum;
dbms_output.put_line('Agent ID is' ||v_agent_id);
--printing header table information
dbms_output.put_line('vendor id is:'||v_vendor_id);
dbms_output.put_line('vendor site id is:'||v_vendor_site_id);
dbms_output.put_line('agent id is:'||v_agent_id);
dbms_output.put_line('ship to organization id is:'||v_ship_to_organization_id);
--line information in variables
--derive item id
select pla.item_id into v_item_id
from po_headers_all pha, po_lines_all pla
where pha.po_header_id = pla.po_header_id
and pha.org_id = pla.org_id
and pha.segment1 = x_ponum;
--derive uom
select pla.unit_meas_lookup_code into v_uom_code
from po_headers_all pha, po_lines_all pla
where pla.po_header_id = pha.po_header_id
and pla.org_id = pha.org_id
and pha.segment1 = x_ponum;
--derive subinventory
select pda.destination_subinventory into v_subinventory
from po_headers_all pha, po_lines_all pla,po_distributions_all pda
where pha.po_header_id = pla.po_header_id
and pla.po_header_id = pda.po_header_id
and pla.po_line_id = pda.po_line_id
and pha.org_id = pla.org_id
and pla.org_id = pda.org_id
and pha.segment1 = x_ponum;
--derive ship to location id
select ship_to_location_id into v_ship_to_location_id
from po_headers_all
where segment1 = x_ponum;
--printing transaction table details
dbms_output.put_line('item id is:'||v_item_id);
dbms_output.put_line('UOM is:'||v_uom_code);
dbms_output.put_line('subinventory is:'||v_subinventory);
dbms_output.put_line('ship to location id is:'||v_ship_to_location_id);
--insert data into the receiving interface header table
INSERT INTO RCV_HEADERS_INTERFACE
HEADER_INTERFACE_ID ,
GROUP_ID ,
PROCESSING_STATUS_CODE ,
RECEIPT_SOURCE_CODE ,
TRANSACTION_TYPE ,
LAST_UPDATE_DATE ,
LAST_UPDATED_BY ,
LAST_UPDATE_LOGIN,
CREATION_DATE ,
CREATED_BY ,
VENDOR_ID ,
VENDOR_SITE_ID ,
SHIP_TO_ORGANIZATION_ID ,
EXPECTED_RECEIPT_DATE ,
EMPLOYEE_ID ,
VALIDATION_FLAG
SELECT
RCV_HEADERS_INTERFACE_S.NEXTVAL,
RCV_INTERFACE_GROUPS_S.NEXTVAL,
'PENDING',
'VENDOR',
'NEW', -- 'CANCEL',
sysdate,
3,
3,
sysdate,
3,
v_vendor_id,
v_vendor_site_id,
v_ship_to_organization_id,
sysdate+5,
v_agent_id,
'Y'
FROM DUAL;
commit;
--insert data into the interface transaction table
for i in 1..1 loop
INSERT INTO RCV_TRANSACTIONS_INTERFACE
(INTERFACE_TRANSACTION_ID ,
HEADER_INTERFACE_ID ,
GROUP_ID ,
LAST_UPDATE_DATE ,
LAST_UPDATED_BY ,
CREATION_DATE ,
CREATED_BY ,
LAST_UPDATE_LOGIN,
TRANSACTION_TYPE ,
TRANSACTION_DATE ,
PROCESSING_STATUS_CODE ,
PROCESSING_MODE_CODE ,
TRANSACTION_STATUS_CODE ,
QUANTITY ,
UNIT_OF_MEASURE ,
ITEM_ID ,
AUTO_TRANSACT_CODE ,
RECEIPT_SOURCE_CODE ,
SOURCE_DOCUMENT_CODE ,
SUBINVENTORY ,
DOCUMENT_NUM ,
SHIP_TO_LOCATION_ID ,
VALIDATION_FLAG
SELECT
RCV_TRANSACTIONS_INTERFACE_S.NEXTVAL,
RCV_HEADERS_INTERFACE_S.CURRVAL,
RCV_INTERFACE_GROUPS_S.CURRVAL,
SYSDATE,
3,
SYSDATE,
3,
3,
'RECEIVE', --'RECEIVE', -- 'SHIP', --'06-JAN-1998',--question here
sysdate,
'PENDING',
'BATCH',
'PENDING',
x_quantity,
v_uom_code,
v_item_id,
'DELIVER', -- 'RECEIVE', --'DELIVER',
'VENDOR',
'PO',
v_subinventory,
x_ponum,
v_ship_to_location_id,
'Y'
FROM DUAL;
end loop;
commit;
END receive_po;
I am really stuck and looking out for work arond. Please help.
Thanks,
Natasha -
Excel File read using WebUtil does not work. Gives java.lang.NoSuchMethodEr
We have a form which reads from an Excel File. The form works in development env., but in the live env when we deployed the form it does not work. Form fails @ the 1st call to Client_OLE2 where we set the Excel file to read.
For both the envs. the values are given here:
(1.) Client Forms Version : Forms [32 Bit] Version 10.1.2.0.2 (Production)
(2.) Application Server Version : 10.1.2.0.2
(3.) AS Linux Version : (Live) RHEL 5.7 Tikanga / (Dev) Red Hat Enterprise Linux AS release 4 (Nahant Update 4)
(4.) Client Sun JRE Version :Version 1.5.0 (build 1.5.0_10)
(5.) Client Web Browser & Version: I.E 8.0.6001 or Mozilla 3.0.15
(6.) WebUtil Version: 1.0.6Both envs. are the same except the Linux version.
Works fine in Dev but does not work in Live. Other Webutil functions like file open dialog box works fine in live, only this Excel read is not working.
Full Error message
Java Plug-in 1.5.0_10
Using JRE version 1.5.0_10 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\dinesha.IIL
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
p: reload proxy configuration
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
RegisterWebUtil - Loading WebUtil Version 1.0.6
proxyHost=null
proxyPort=0
connectMode=HTTP, native.
Forms Applet version is : 10.1.2.0
Exception in thread "AWT-EventQueue-3" java.lang.NoSuchMethodError:
com.jacob.com.Dispatch.put(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;)V
at
oracle.forms.webutil.ole.OleFunctions.set_obj_property(OleFunctions.java:1216)
at
oracle.forms.webutil.ole.OleFunctions.setProperty(OleFunctions.java:333)
at oracle.forms.handler.ComponentItem.setCustomProperty(Unknown Source)
at oracle.forms.handler.ComponentItem.onUpdate(Unknown Source)
at oracle.forms.handler.JavaContainer.onUpdate(Unknown Source)
at oracle.forms.handler.UICommon.onUpdate(Unknown Source)
at oracle.forms.engine.Runform.onUpdateHandler(Unknown Source)
at oracle.forms.engine.Runform.processMessage(Unknown Source)
at oracle.forms.engine.Runform.processSet(Unknown Source)
at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
at oracle.forms.engine.Runform.onMessage(Unknown Source)
at oracle.forms.engine.Runform.processEventEnd(Unknown Source)
at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)We connected to Live AS server via VPN and ran the Form in a client machine (where the Dev. is working) but same problem.
Any help would be greatly appreciated.Channa,
I sounds like you might have missed a configuration step on your Linux application server (AS). I recommend you go back through the configuration of your AS and verify each step of the WebUtil Runtime Setup Checklist was completed correctly. Seach the Forms Help system on "Runtime Setup Checklist" for a copy of the checklist.
Hope this helps,
Craig B-)
If someone's response is helpful or correct, please mark it accordingly. -
Modeless window using "palette" does not stay up in CS5
I am having trouble running a modeless dialog with CS5 (on Windows 64-bit). My own script does not stay up and neither does the SnpCreateDialog.jsx snippet that comes with the ESTK and is supposed to demonstrate modeless dialogs. I have tried:
Running from the Scripts panel
Add #target photoshop
Being sure the drop-down menu says Photoshop, not CTSK
as suggested in an older discussion at http://forums.adobe.com/message/3008230#3008230. (I decided to make a new discussion as that one was marked answered.)
It also does not stay up when moved into the Photoshop Scripts folder and run from the File menu in Photoshop.
The relevant code in SnpCreateDialog.jsx is:
function SnpCreateDialog()
this.windowRef = null;
Functional part of this snippet.
Create a window of type "palette" (a modeless dialog) and display it.
@return True if the snippet ran as expected, false otherwise.
@type Boolean
SnpCreateDialog.prototype.run = function()
// Create a window of type palette.
var win = new Window("palette", "SnpCreateDialog",[100,100,380,245]); // bounds = [left, top, right, bottom]
this.windowRef = win;
// Add a frame for the contents.
win.btnPanel = win.add("panel", [25,15,255,130], "SnpCreateDialog");
// Add the components, two buttons
win.btnPanel.okBtn = win.btnPanel.add("button", [15,65,105,85], "OK");
win.btnPanel.cancelBtn = win.btnPanel.add("button", [120, 65, 210, 85], "Cancel");
// Register event listeners that define the button behavior
win.btnPanel.okBtn.onClick = function() {
$.writeln("OK pressed");
win.close();
win.btnPanel.cancelBtn.onClick = function() {
$.writeln("Cancel pressed");
win.close();
// Display the window
win.show();
return true;
"main program": construct an anonymous instance and run it
as long as we are not unit-testing this snippet.
if(typeof(SnpCreateDialog_unitTest) == "undefined") {
new SnpCreateDialog().run();
If I put a breakpoint on the "return true;" line, then I can see that the dialog has, in fact, been created and is visible, but it has returned from win.show() and will go away as soon as the script continues.
Any help would be appreciated.Kenneth Evans wrote:
The advantage of a modeless dialog is that you can continue to do things in Photoshop while the dialog is up. At least I presume so, since I haven't got one to work, including the ESTK example.
Sorry but no, most of the Photoshop UI is disabled while a script is running even if the script displays a palette window.
A dialog window does wait for show() to complete. That is what makes dialogs modal. A palette window does not wait for show() to complete. It runs the rest of the script.
In the example you posted all the script does after showing the window is return true then ends. Which is why all it does is flash the window. If you put a $.sleep(1000) line before the return true line the windows will display until sleep timeouts then the script will end and the window will close. That is why with Photoshop palette windows are really only useful for progress bars or other script status type windows.
Although palette windows may allow the user to intreact with the app UI while the window is displayed that doesn't work with Photoshop. The window only displays while the script is running and a running script limits Photoshop UI interaction.
I have tested palette windows in CS2, CS3, CS4, and CS5 with the same results. The window only shows while the script is running.
With Photoshop if you want the user to interact with the UI you have to create a panel. -
Reply to all using ItemReply does not work when specifying messageid
Hello everyone,
I am trying to use the ItemReply token to perform a "Reply to All"
action on a mail item with a known message identifier and include the
original message text in the response. According to the documentation,
the call should be:
ItemReply(7;1;"message-id")
Still, when I execute this token, apparently only a normal reply action
is performed because only the original sender is listed as recipient.
(The message text is properly included)
However, when I manually select the message in the GroupWise client
first and then execute the same call without specifying the message id,
all recipients of the original mail are listed in "To:" as expected:
ItemReply(7;1)
Could it be that the "ReplyTo" parameter is ignored or does not work
when a message id is specified as parameter? (Setting "IncludeText" to 0
does not change anything)
Thanks in advance and best regards,
Peter HoferWorth bumping this message. I find the exact same behaviour as mentioned 5 years ago. Using both GW8 and GW2012.
According documentation, when MessageId is not specified it defaults to the command ItemReplyOpenItem(). I assume that the reason "Reply To all" works without a MessageID is because of that. Someone needs to give a look to ItemReply(). -
Mapping drive using GPO does not obey to Item-level targeting
Dear all,
We are mapping drive using Item-level targeting based on security group (User Configuration > Preferences > Windows Settings > Drive Maps) with the following settings:
Action: Replace
Run in logged-on user's security context: <Checked>
Item-level targeting: <Checked>
So if user is member of Group_X then he/she will have drive X mapped on his computer.
Problem now is that (even if reconnect is unchecked), drive will stay mapped when we remove a user from this group.
Is this the normal behavior ? did I missed something ?
or even worst, imho, should I add a new drive properties which would say to delete the drive if user does not belong to the relevant group ?
-> double targeting query for a single drive
-> what's the point of Replace / Reconnect then ?
Thanks in advance for your opinions!
/behd
[EDIT: Forgot to specify Win2008R2 AD, Win7 Pro clients but doubt that it'll be of any interest for this case]Drive mapping should not remain after you remove the user from the group.
What I suspect is, that at first, the "reconnect" was checked then the user got the policy and tattooed the reconnect value. after that it doesn't matter that "reconnect" was removed.
Try the following:
Logon with test user, make sure no drive mapping exist (disconnect if necessary).
Create a new policy with drive map - make sure reconnect is not checked, and apply it for the test user.
Make sure no other drive mapping policy exist for that user.
Login with the test user, make sure drive was mapped.
Log off that user, remove it from the group, wait for AD replication and log on again (sometimes another log off \ log on required).
Please take a moment to Vote as Helpful and/or Mark as Answer where applicable. Thanks.
Maybe you are looking for
-
Hello Experts, I have some doubts in Treasury of FICO. Can some one explain me clearly. 1) What are the topics that come under Treasury? 2) What is Value Date in Cash Position? 3) What is Memo Records in Cash Position? 4) What is Check Deposit in Cas
-
IC not work with new version of ID
My designer upgraded to the newest version of inDesign (through CC2014) When I tried to open any files, I got a message that I had to upgrade my IC or the plug ins. The list of plug ins is as follows: Spread.rpln Print.rpln Generic Page Item.rpln Doc
-
Hey there, just a quick question regarding this and Recycle.. someone had said they do the same thing and I wasn't sure.. is Recycle worth buying as well as Studio and do they work together well? Or should I just be using the EXS instead of spending
-
Display Yes / No instead of True or false for radio buttons in SSRS 2008R2
Hi All, I have one report with two radio buttons as parameters. In the report display I see True / false beside the radio buttons. Is there a way where I can display it as YES instead of True and NO for False beside radio buttons? Thanks, RH sql
-
Firefox ate my toolbar - where did it go?
When I awakened my I-Mac, the toolbar that has been on Firefox has disappeared. I cannot retrieve it.