Active responsibilities program with post script format not working

Hi All,
Env.   ERP
11.5.10.2, DB: 9.2  OS: Solaris 9
Active responsilties report with format post script is completing with normal but when I view output for the request it doesn't contain any data its blank.....
any suggestion will be appreciated
Regards

Hi Reshma,
This is because the field v_tax1 is of currency type, which has a length of 16 (13,2). This is getting displayed right-aligned by default, and the leading spaces are always appearing.
You will have to deduct the no. of spaces that gets printed by writing v_tax1(8.2) or v_tax1(9.2) etc. First you should know what can be the maximum possible figure for this.
Another way-out is to convert this to a character variable. delete leading spaces from the character variable (functions: shift left deleting leading space, or condense) and then printing the variable right-aligned / left-aligned.

Similar Messages

  • Post Script fonts not working in yosemite! HELP!!!!!

    ARRRRRRGH!  I have a ton of Adobe postscript fonts on my mac, that were running FINE on yosemite 10.10.1, and now that I've upgraded they WONT WORK and I cannot install some of them!  The screen fonts all look like terminal files.  Font book is a joke and I've tried restarting the font cache, but nothing works.  Please help!  I cannot purchase all new fonts!

    Hi Dan,
    Going forward, if you are attempting to use Type 1 fonts, either MacOS or Windows flavors, you need to put the font files in the application-specific directories.
    For example, for InDesign, you need to go to
            Applications/Adobe InDesign [Version]/Fonts
    where [Version] is CS6, CC, CC 2014, etc. as appropriate. Similarly, you would need to do this for other Adobe applications as well using the other applications' particular private font directories. (Note that if you are dealing with a “packaged” InDesign or Illustrator document, Type 1 fonts in the appropriate fonts subdirectory still continue to work).
    Note that for Type 1 fonts, if you are using Windows-flavor Type 1 fonts, you must put both the .pfb and .pfm files in the directory. If you are using MacOS Type 1 fonts, you must put both the outline file and one of the corresponding screen fonts in the directory (the screen font contains font metrics used for layout).
    For better or worse, it is really a good time to accelerate migration to cross-platform OpenType fonts.
                - Dov

  • CAML Query with ECMA script, ORDERBY not working

    Hi, I'm trying to get this CAML query to order by created date.  Seems like no matter what I do, it shows me the oldest items first.  Here's my code:
    function retrieveListItemsInclude() {
        var clientContext = new SP.ClientContext();
        var oList = clientContext.get_web().get_lists().getByTitle('NewsItems');
        var camlQuery = new SP.CamlQuery();
        camlQuery.set_viewXml('<View><Query><Where><Neq><FieldRef Name=\'Deleted\' /><Value Type=\'Integer\'>1</Value></Neq></Where><OrderBy><FieldRef Name=\'Created\' Ascending=\'FALSE\'/></OrderBy></Query><RowLimit>10</RowLimit><ViewFields><FieldRef
    Name=\'Title\'/><FieldRef Name=\'Link\'/><FieldRef Name=\'Description\'/><FieldRef Name=\'PubDate\'/><FieldRef Name=\'Source\'/><FieldRef Name=\'Topics\'/><FieldRef Name=\'ImageTag\'/><FieldRef Name=\'ImageSource\'/><FieldRef
    Name=\'Created\'/></ViewFields></View>');
        this.collListItem = oList.getItems(camlQuery);
        clientContext.load(collListItem, 'Include(Title, Link, Description, PubDate, Source, Topics, ImageTag, ImageSource, Created)');
        clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));
    I tried ordering my ID, Created or Created_x0020_Date, and none of it changes the output at all.
    As a related question, how do I debug this CAML query?  Are there any tools? 

    Hi,
    Please change the CAML query as below:
    <where><neq><fieldref name=\'Deleted\' /><value type=\'Number\'>1</value></neq></where>
    The following code for your reference:
    string siteURL = "http://siteURL/";
    string listName = "CustomList";
    ClientContext context = new ClientContext(siteURL);
    //specific user
    NetworkCredential credentials = new NetworkCredential("username", "password", "domain");
    context.Credentials = credentials;
    List oList = context.Web.Lists.GetByTitle(listName);
    CamlQuery camlQuery = new CamlQuery();
    camlQuery.ViewXml = "<view><query><where><neq><fieldref name=\'Deleted\' /><value type=\'Number\'>1</value></neq></where><orderby><fieldref name=\'Created\' ascending=\'False\' /></orderby></query><rowlimit>10</rowlimit></view>";
    ListItemCollection collListItem = oList.GetItems(camlQuery);
    context.Load(collListItem);
    context.ExecuteQuery();
    foreach (ListItem oListItem in collListItem)
    Console.WriteLine("ID: {0}", oListItem.Id);
    If the issue still exists, please check the "Deleted" field type.
    Here is a CAML query tool for your reference.
    http://spcamlqueryhelper.codeplex.com/ 
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • Static analyzer fails on WIX custom install action project: .dll' could not be opened -- 'An attempt was made to load a program with an incorrect format'

    On our build system, we use the global setting to code analyze all projects. One of our projects is a C# WIX custom action. This projects causes the build to fail with:
    EACustomInstallActions.CA.dll' could not be opened -- 'An attempt was made to load a program with an incorrect format.
    The ...CA.Dll target seems to be created by a WIX custom action. Does anybody have already encountered this issue and found a workaround?
    Full build output:
    <target name="ContractDeclarativeAssemblyCS" success="false">
                  <message level="normal"><![CDATA[Build Declarative Contract Assembly for C# D:\EA_MAIN_DB\AMI\bin\Debug\GEHealthcare.Isip.EACustomInstallActions.dll]]></message>
                  <message level="high"><![CDATA[C:\Windows\Microsoft.NET\Framework\v3.5\Csc.exe /noconfig /nowarn:1701,1702 /pdb:obj\x86\Debug\Decl\GEHealthcare.Isip.EACustomInstallActions.pdb /errorreport:prompt /warn:0 /define:DEBUG;TRACE;CONTRACTS_FULL;CODE_ANALYSIS /reference:"C:\Program Files\Windows Installer XML v3\SDK\Microsoft.Deployment.WindowsInstaller.dll" /reference:"C:\Program Files\Microsoft SQL Server\100\SDK\Assemblies\Microsoft.SqlServer.ConnectionInfo.dll" /reference:"C:\Program Files\Microsoft SQL Server\100\SDK\Assemblies\Microsoft.SqlServer.Management.Sdk.Sfc.dll" /reference:"C:\Program Files\Microsoft SQL Server\100\SDK\Assemblies\Microsoft.SqlServer.Smo.dll" /reference:"C:\Program Files\Microsoft SQL Server\100\SDK\Assemblies\Microsoft.SqlServer.SqlWmiManagement.dll" /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Core.dll" /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Data.DataSetExtensions.dll" /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /reference:"C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Xml.Linq.dll" /addmodule:D:\EA_MAIN_DB\AMI\src\radstore\Installer\EACustomInstallActions\obj\x86\Debug\GEHealthcare.Isip.EACustomInstallActions.CA.dll /debug+ /debug:full /filealign:512 /keyfile:..\..\Common\EAKeyPair.snk /optimize+ /out:obj\x86\Debug\Decl\GEHealthcare.Isip.EACustomInstallActions.dll /target:library /warnaserror- ..\..\Common\GlobalAssemblyInfo.cs CustomAction.cs Properties\AssemblyInfo.cs Resource1.Designer.cs SqlServersSelector.cs SqlServersSelector.designer.cs "C:\Program Files\Microsoft\Contracts\Languages\CSharp\ContractDeclarativeAssemblyAttribute.cs"]]></message>
                  <error code="CS0009" file="CSC"><![CDATA[Metadata file 'd:\EA_Main_DB\AMI\src\radstore\Installer\EACustomInstallActions\obj\x86\Debug\GEHealthcare.Isip.EACustomInstallActions.CA.dll' could not be opened -- 'An attempt was made to load a program with an incorrect format. ']]></error>
                </target>

    This problem appears to be ongoing 5 years after this thread was started. I have just run into it.
    When WiX builds a custom action, the build proceeds as normal and produces a managed code output, say MyCustomActions.dll. Windows Installer doesn't support managed code in custom actions, so the managed code has to be wrapped in an unmanaged native code
    wrapper, so in a post-build step, it injects the managed output into the unmanaged wrapper and _that_ then becomes the project's build output and will be named MyCustomActions.CA.dll. I believe that Code Contracts may be trying to open the unmanaged wrapper
    file and discovering that it is not managed code ("invalid format").
    In order for CCRewrite to work here, it would need to run on the managed code _before_ it gets wrapped in the unmanaged wrapper. I am not sure how we can hook into the build process to get that to happen.
    It might be possible to somehow make a WiX Custom Action project by creating a standard C# class library, which would work correctly with CCRewrite, then somehow performing the WiX packaging as a post-build step. I'm not sure what is required though, exactly.
    Any ideas?
    --Tim Long
    Tim Long

  • Help with Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.

    This was all working yesterday, but this morning, I cannot run in the dev fabric, or even setting the website project as a startup project directly, I get the following error:
    Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.BadImageFormatException: Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Assembly Load Trace: The following information can be helpful to determine why the assembly 'msshrtmi' could not be loaded.
    === Pre-bind state information ===
    LOG: User = Andrew-VAIO\Andrew
    LOG: DisplayName = msshrtmi
    (Partial)
    WRN: Partial binding information was supplied for an assembly:
    WRN: Assembly Name: msshrtmi | Domain ID: 3
    WRN: A partial bind occurs when only part of the assembly display name is provided.
    WRN: This might result in the binder loading an incorrect assembly.
    WRN: It is recommended to provide a fully specified textual identity for the assembly,
    WRN: that consists of the simple name, version, culture, and public key token.
    WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
    LOG: Appbase = file:///C:/Users/Andrew/Desktop/Beko2011Azure/Website/
    LOG: Initial PrivatePath = C:\Users\Andrew\Desktop\Beko2011Azure\Website\bin
    Calling assembly : (Unknown).
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: C:\Users\Andrew\Desktop\Beko2011Azure\Website\web.config
    LOG: Using host configuration file:
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
    LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
    LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/cb955b02/eef106e2/msshrtmi.DLL.
    LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/Temporary ASP.NET Files/root/cb955b02/eef106e2/msshrtmi/msshrtmi.DLL.
    LOG: Attempting download of new URL file:///C:/Users/Andrew/Desktop/Beko2011Azure/Website/bin/msshrtmi.DLL.
    ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.
    Stack Trace:
    [BadImageFormatException: Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
    System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
    System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +39
    System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks) +132
    System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +144
    System.Reflection.Assembly.Load(String assemblyString) +28
    System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46
    [ConfigurationErrorsException: Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
    System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +618
    System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +209
    System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +130
    System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178
    System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +94
    System.Web.Compilation.BuildManager.CallPreStartInitMethods() +332
    System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +677
    [HttpException (0x80004005): Could not load file or assembly 'msshrtmi' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9079228
    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97
    System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +258
    Note that the dev machine is x64 Win7.
    I have not tried deploying this to staging since the issue started as I'm a bit nervous of touching the staging/live environment until this is solved.
    Removing the PlatformTarget element from the project file has no effect
    Removing the msshrtmi.dll file from the bin directory of the website project ends up with 
    'Could not load file or assembly 'Microsoft.WindowsFabric.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified'
    I have used Git to revert to the last working build to no effect (But I don't have the obj/bin folders in GIT), but it has atleast reset the project files etc.
    If I return msshrtmi.dll to the bin folder and switch the model and website projects to x64 there is no change
    If I switch both to x86 then I get an error Could not load file or assembly 'BekoModel2011' or one of its dependencies. An attempt was made to load a program with an incorrect format.
    which is the model project - presumably because to run on my x64 machine I need the 64bit version?
    I really need to be able to debug and then publish some changes ASAP.
    Andrew

    Hi,
    Is it true that you're using IIS to host the application? Could you check whether the process is x64 or x86 one via task manager or config in IIS manager?
    http://blogs.msdn.com/b/rakkimk/archive/2007/11/03/iis7-running-32-bit-and-64-bit-asp-net-versions-at-the-same-time-on-different-worker-processes.aspx
    Allen Chen [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • "An attempt was made to load a program with an incorrect format."

    Every so often, while in the middle of reading a document in PDF format, I get an error dialogue:
    "An attempt was made to load a program with an incorrect format."
    I've searched this forum for any previous related discussion, and I was unsuccessful in finding anything, so I decided to start discussion on this topic in this new post.
    I am using Adobe Acrobat 7.0 Professional
    Has anyone come across this and, if so, figured out what it's all about? It's frustrating!
    Thanks!
    JL

    I am having the same issue (after having installed Ill. CS3, but not before that install). Maybe someone knows something now that could help...?

  • Pdf reader X has problems with small pdf and printer with post script driver

    Hi friends.
    I have installed new Reader X and then i saw that, when i print a very small pdf with about 50 kb and i print it on a Laserjet 4000 printer the printer has problem with the amount of data that reader 10 produces.
    When i install a Postscript driver for the printer my computer makes up to 3.5MB printer data from a 50kb pdf.
    When i install a PCL driver for the printer my computer makes only 350kb from the same 50kb pdf file!!!!
    When i install Reader 9.3 the 50kb file becomes also only 350kb on the printer with post script driver, and i can print without problems also.
    my printer has 8 MB Ram and that should be enough for 3.5MB printer data.
    But when i print the pdf with 1 side only, the printer created a side who is only filled with 50% of the text, then there comes out a second page with the message.....not enough memory in the printer.
    i can not change the postscript driver to a pcl driver cause our ERP System can not handle printer with PCL drivers.
    Can someone help me please.........are there settings in Reader X who can solve my problem ???
    Thank you very much for help!

    put ? after rwcgi60.exe

  • Netsh export error "An attempt was made to load a program with an incorrect format"

    Got an error("An attempt was made to load a program with an incorrect format") when trying to export from DHCP running in Enterprise Server 2008 R2.
    Here is the command line: netsh dhcp server export c:\dhcp.txt all
    This server had been migrated years ago(Server 2003 to Server 2008) and old DHCP server was decommissioned already. I know this error has a fix for Windows Server 2003 using hotfix from Microsoft but I was not able to find any hotfix from Windows Server
    2008. Need your help guys as I'm seeing "X" on leases from DHCP and I need to resolve it! :(

    Hi,
    As a workaround, we may try to use netsh DHCP server dump >c:\DHCPdump.txt.
    For detailed information, please refer to the link below:
    http://support.microsoft.com/kb/962355
    Best Regards.
    Steven Lee Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • 32 bit Application calling 32 bit DLL "An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)"

    Hi,
    I am developing an application in visual c# which loads few DLLs.
    While loading the DLLs I am getting this error
    "An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)"
    Strange thing for me is that I don't get this error always. In most of the cases when I uninstall the application and reboot my PC again when I install again then problem is solved for few days.
    I have followed several threads all suggests that This error comes either "64 bit exe tries to load 32 dll" or "32 bit exe tries to load 64 bit dll". In my case i made sure that both the
    exe and dll are 32 bit.
    In Project property I selected Platform and Platform target to x86. But the problem still occurs.
    Some body please suggest some solutions and why this problem occur.
    Thanks
    Sujeet. 

    Hi,
    How do you load the DLLs? I assume you get an exception and do not call the LoadLibrary API function directly. The latter just returns NULL (Intptr.Zero) if you load a library with the wrong bitness. However, in this case, I do not get error 11 (= 0xB =
    ERROR_BAD_FORMAT), but I get error 193 (= ERROR_BAD_EXE_FORMAT), so I think something else is going on on your machine.
    So, do you get an exception, and which one? Can you catch and examine it? Does it provide details about which library can not be loaded?
    An option is using
    Process Explorer to find out which library can not be loaded by looking at which libraries are being accessed most recently.
    Another option is using Windbg.exe (from the Windows Debugging Tools). By default, it outputs all loaded modules so that the last one your application tries to load should be listed there, too. It should even be listed if it fails to load; at least that
    was the case in my tests.
    Sometimes, if no path is specified for the dll file, the dll can be loaded from the current directory. So depending on what happened at runtime before the library is being loaded, the current directory could have been changed so that you can get variable
    results during debugging.
    When you are saying "when I uninstall the application", do you mean your own application on your own PC? Does the problem (also) happen during debugging inside Visual Studio?
    Armin

  • Firefox has detected the server is redirecting the request for this address in a way that will never complete. This is happening in my email program with comcast but does not happen with IE e

    Question
    firefox has detected the server is redirecting the request for this address in a way that will never complete. This is happening in my email program with comcast but does not happen with IE e edit

    Thanks to cor-el for the suggestion given in the link. Sadly I have to report:
    1) It is not a bookmark problem and it makes no difference whether I put
    www.adobe.com or 192.150.18.117 in the address bar.
    2) Cookies are allowed and there are no exceptions set
    3) All cookies have been deleted
    4) network.http.sendRefererHeader is already set to 2
    That deals with the items in the linked document.
    Additional information:
    5) I can get into the adobe site from a clean "in memory" installation of PuppyLinux using Seamonkey using the same router and dhcp setup.
    6) un-installing all Mozilla products - rebooting and re-installing makes no difference even when I remove the mozilla folder from docs&settings.
    so as I said in previous post (as annonymous) not a lot makes sense.
    Bear in mind that I have no problem running tracert in a command window
    Tracing route to www.adobe.com [192.150.18.117] over a maximum of 30 hops:
    1 11 ms 10 ms 9 ms 10.0.0.1
    2 13 ms 12 ms 11 ms glo-2-dsl.as9105.net [212.74.111.191]
    3 13 ms 12 ms 11 ms ge1-2-27.glo0.as9105.net [212.74.106.106]
    4 14 ms 12 ms 13 ms pos0-0.bri1.as9105.net [212.74.108.162]
    5 17 ms 16 ms 17 ms ge0-0-0.he-lon0.as9105.net [212.74.109.14]
    6 17 ms 17 ms 16 ms 10.72.11.75
    7 16 ms 17 ms 17 ms xe-0-3-0-10.lon20.ip4.tinet.net [213.200.77.177]
    8 91 ms 92 ms 99 ms xe-5-1-0.was12.ip4.tinet.net [89.149.184.34]
    9 92 ms 92 ms 93 ms xe-0.equinix.asbnva01.us.bb.gin.ntt.net [206.223.115.12]
    10 162 ms 170 ms 162 ms as-3.r20.snjsca04.us.bb.gin.ntt.net [129.250.2.167]
    11 166 ms 166 ms 165 ms ae-1.r07.snjsca04.us.bb.gin.ntt.net [129.250.5.53]
    12 162 ms 163 ms 161 ms xe-0-2-0-3.r07.snjsca04.us.ce.gin.ntt.net [128.241.219.86]
    13 166 ms 163 ms 161 ms 192.150.18.11
    14 166 ms 166 ms 165 ms www.adobe.com [192.150.18.117]
    Trace complete.
    and I can ping the site.
    so where now ?

  • Error: An attempt was made to load a program with an incorrect format. (Exception from HRRESULT:0x8007000b)

    Hi All,
    I am trying to install 64 bit addon on SAP9 64 bit client.
    But i am getting following error:
    Error: An attempt was made to load a program with an incorrect format. (Exception from HRRESULT:0x8007000b)
    Please give some solution.

    Hi,
    Please refer this thread http://scn.sap.com/thread/1523397
    Thanks & Regards,
    Nagarajan

  • XML create script is not working in Photoshop.

    Hi All
    Below i have mentioned script is not working. Kindly check and advice. Please do this needful
    #target photoshop;
    var createDefaultXML, createPresetChild, defaultXML, initDDL, presetFile, presetNamesArray, readXML, resPath, win, windowResource, writeXML, xmlData,
      __indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
    windowResource = "dialog {  \
        orientation: 'column', \
        alignChildren: ['fill', 'top'],  \
        size:[410, 210], \
        text: 'DropDownList Demo - www.davidebarranca.com',  \
        margins:15, \
        controlsPanel: Panel { \
            orientation: 'column', \
            alignChildren:'right', \
            margins:15, \
            text: 'Controls', \
            controlsGroup: Group {  \
                orientation: 'row', \
                alignChildren:'center', \
                st: StaticText { text: 'Amount:' }, \
                mySlider: Slider { minvalue:0, maxvalue:500, value:300, size:[220,20] }, \
                myText: EditText { text:'300', characters:5, justify:'left'} \
        presetsPanel: Panel { \
            orientation: 'row', \
            alignChildren: 'center', \
            text: 'Presets', \
            margins: 14, \
            presetList: DropDownList {preferredSize: [163,20] }, \
            saveNewPreset: Button { text: 'New', preferredSize: [44,24]}, \
            deletePreset: Button { text: 'Remove', preferredSize: [60,24]}, \
            resetPresets: Button { text: 'Reset', preferredSize: [50,24]} \
        buttonsGroup: Group{\
            alignChildren: 'bottom',\
            cancelButton: Button { text: 'Cancel', properties:{name:'cancel'},size: [60,24], alignment:['right', 'center'] }, \
            applyButton: Button { text: 'Apply', properties:{name:'apply'}, size: [100,24], alignment:['right', 'center'] }, \
    win = new Window(windowResource);
    xmlData = null;
    presetNamesArray = [];
    resPath = File($.fileName).parent;
    presetFile = new File("" + resPath + "/presets.xml");
    defaultXML = <presets>
            <preset default="true">
                <name>select...</name>
                <value></value>
            </preset>
            <preset default="true">
                <name>Default value</name>
                <value>100</value>
            </preset>
            <preset default="true">
                <name>Low value</name>
                <value>10</value>
            </preset>
            <preset default="true">
                <name>High value</name>
                <value>400</value>
            </preset>
        </presets>;
    writeXML = function(xml, file) {
      if (file == null) {
        file = presetFile;
      try {
        file.open("w");
        file.write(xml);
        file.close();
      } catch (e) {
        alert("" + e.message + "\nThere are problems writing the XML file!");
      return true;
    readXML = function(file) {
      var content;
      if (file == null) {
        file = presetFile;
      try {
        file.open('r');
        content = file.read();
        file.close();
        return new XML(content);
      } catch (e) {
        alert("" + e.message + "\nThere are problems reading the XML file!");
      return true;
    createDefaultXML = function() {
      if (!presetFile.exists) {
        writeXML(defaultXML);
        void 0;
      } else {
        presetFile.remove();
        createDefaultXML();
      return true;
    createPresetChild = function(name, value) {
      var child;
      return child = <preset default="false">
                    <name>{name}</name>
                    <value>{value}</value>
                </preset>;
    initDDL = function() {
      var i, nameListLength;
      if (!presetFile.exists) {
        createDefaultXML();
        initDDL();
      xmlData = readXML();
      if (win.presetsPanel.presetList.items.length !== 0) {
        win.presetsPanel.presetList.removeAll();
      nameListLength = xmlData.preset.name.length();
      presetNamesArray.length = 0;
      i = 0;
      while (i < nameListLength) {
        presetNamesArray.push(xmlData.preset.name[i].toString());
        win.presetsPanel.presetList.add("item", xmlData.preset.name[i]);
        i++;
      win.presetsPanel.presetList.selection = win.presetsPanel.presetList.items[0];
      return true;
    win.controlsPanel.controlsGroup.myText.onChange = function() {
      return this.parent.mySlider.value = Number(this.text);
    win.controlsPanel.controlsGroup.mySlider.onChange = function() {
      return this.parent.myText.text = Math.ceil(this.value);
    win.presetsPanel.presetList.onChange = function() {
      if (this.selection !== null && this.selection.index !== 0) {
        win.controlsPanel.controlsGroup.myText.text = xmlData.preset[this.selection.index].value;
        win.controlsPanel.controlsGroup.mySlider.value = Number(xmlData.preset[this.selection.index].value);
      return true;
    win.presetsPanel.resetPresets.onClick = function() {
      if (confirm("Warning\nAre you sure you want to reset the Preset list?", true)) {
        createDefaultXML();
        return initDDL();
    win.presetsPanel.saveNewPreset.onClick = function() {
      var child, presetName;
      presetName = prompt("Give your preset a name!\nYou'll find it in the preset list.", "User Preset", "Save new Preset");
      if (presetName == null) {
        return;
      if (__indexOf.call(presetNamesArray, presetName) >= 0) {
        alert("Duplicate name!\nPlease find another one.");
        win.presetsPanel.saveNewPreset.onClick.call();
      child = createPresetChild(presetName, win.controlsPanel.controlsGroup.myText.text);
      xmlData.appendChild(child);
      writeXML(xmlData);
      initDDL();
      return win.presetsPanel.presetList.selection = win.presetsPanel.presetList.items[win.presetsPanel.presetList.items.length - 1];
    win.presetsPanel.deletePreset.onClick = function() {
      if (xmlData.preset[win.presetsPanel.presetList.selection.index][email protected]() === "true") {
        alert("Can't delete \"" + xmlData.preset[win.presetsPanel.presetList.selection.index].name + "\"\nIt's part of the default set of Presets");
        return;
      if (confirm("Are you sure you want to delete \"" + xmlData.preset[win.presetsPanel.presetList.selection.index].name + "\" preset?\nYou can't undo this.")) {
        delete xmlData.preset[win.presetsPanel.presetList.selection.index];
      writeXML(xmlData);
      return initDDL();
    initDDL();
    win.show();

    You should use the scripting forum. I only hack at Photoshop scripting when I need to.  What I put together is usually made from code I find on the web and modify to do what I want to do. When it come down to it I really don't know javascript.  Your javascript knowledge is way beyond mine.  To tell the truth I don'e even understand the syntax of you first statment after target Photoshop.
    I have a programming background but most of mine was was in design, debugging, and developing programming development tools.  I retired back in 2002.   I never got into Object orientated programming though it was in full swing as was C programming along with java.  Microsoft had given up on its object orientate desktop OS2 system sidetracking IBM with it.
    I did not look closely at your code.  That something you should do. You know more then I do.....
    In the scripting forum you will get better help then I can give you.   Many of the better scriptwriter seem to have left there becase of  frustration with Adobe support. However there are some that still visit there regularly.
    You may want to look into Xtools there open source and the author still visits the forum from time to time. I have use some of his scripts but have never gotten into his library I'm retired I only play a little to keep some brain function. ps-scripts - Browse /xtools at SourceForge.net

  • Java script is not working in custom tabular form

    hai all,
    i have changed my built in tabular form to custom tabular form.my java script is coding working fine in built in tabular form . But in my custom tabular form java script is not working ,since it is created as standard report(Display As).
    pls help me.
    with thanks and regards
    sivakumar.G

    Is the appostrophe function test(pthis) *'* present in your javascript code...
    If not can you post the same in apex.oracle.com and give the credential so that I can the why its not wroking
    Regards,
    Shijesh

  • PHP scripts are not working after deploying it on website

    Hi,
    I have recently deployed my flex application on a web hosting (000webhost.com) and now my application is getting launched properly. Visit (www.kpratik.webatu.com).
    I have used PHP script to interact with database MySQL. Locally everything was working fine but when I have deployed it to internet my PHP scripts are not working and any database opeartion is not getting performed. I have already chaned to host, username password in the PHP file as given my service provider.
    Please let me know if you have any input on this.
    Reponse will be highly appreciated.
    Regards,
    Pratik

    Hello,
    Ok let me explain you where exactly it is going wrong.
    I am constructing SQL query in my ActionScript code and I am passing this query to my PHP script using HTTPService. Now when I am hardcoing the query in PHP script i found it is working perfectly which means my query is not getting passed to PHP script.
    Please let me know what could be the reason.
    I am using POST method for HTTPService.
    Thanks,
    Pratik

  • Email Notification Script is Not Working in Windows Server 2012..

    Dears
    I have Server 2012 and I wants to make new task seclude for email notification, while any user is login to the
    server the server will send notification email about user name and IP address for the user, I have script it is working fine in windows 2008 and it is xml file, but the script is not working in 2012 because in task schedule in windows 2008 there is an option
    called send email but in windows 2012 this option is deprecated, I’m using start program to run the script in PowerShell instead of send email and I configured as an
     end-MailMessage
    -From [email protected]
    -Subject "Email Notification"
    -To [email protected]
    -SmtpServer mail.domainName.com
    But when I use this PowerShell I only receive email notification without any name and IP address, kindly I need
    your support and help, I’m using below script.
    <?xml version="1.0" encoding="UTF-16"?>
    < Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
      <RegistrationInfo>
        <Date>2013-11-27T11:16:32.3962177</Date>
        <Author>Company Name\User Name</Author>
        <Description>RDP Login V1</Description>
      </RegistrationInfo>
      <Triggers>
        <EventTrigger>
          <Enabled>true</Enabled>
          <Subscription>&lt;QueryList&gt;&lt;Query Id="0" Path="Security"&gt;&lt;Select Path="Security"&gt;*[System[(EventID=4624)]] and *[EventData[Data[@Name='LogonType'] and (Data=10)]]&lt;/Select&gt;&lt;/Query&gt;&lt;/QueryList&gt;</Subscription>
          <ValueQueries>
            <Value name="IpAddress">Event/EventData/Data[@Name="IpAddress"]</Value>
            <Value name="TargetUserName">Event/EventData/Data[@Name="TargetUserName"]</Value>
          </ValueQueries>
        </EventTrigger>
      </Triggers>
      <Principals>
        <Principal id="Author">
          <UserId>Company Name\User Name</UserId>
          <LogonType>Password</LogonType>
          <RunLevel>HighestAvailable</RunLevel>
        </Principal>
      </Principals>
      <Settings>
        <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
        <DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
        <StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
        <AllowHardTerminate>true</AllowHardTerminate>
        <StartWhenAvailable>false</StartWhenAvailable>
        <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
        <IdleSettings>
          <StopOnIdleEnd>true</StopOnIdleEnd>
          <RestartOnIdle>false</RestartOnIdle>
        </IdleSettings>
        <AllowStartOnDemand>true</AllowStartOnDemand>
        <Enabled>true</Enabled>
        <Hidden>false</Hidden>
        <RunOnlyIfIdle>false</RunOnlyIfIdle>
        <WakeToRun>false</WakeToRun>
        <ExecutionTimeLimit>P3D</ExecutionTimeLimit>
        <Priority>7</Priority>
      </Settings>
      <Actions Context="Author">
        <SendEmail>
          <Server>Name of the Server.com</Server>
          <Subject>RDP Login V1</Subject>
          <To>Sender Name</To>
          <From>Any Email.com</From>
          <Body>Login Alert on ServerName IP : $(IpAddress)  User: $(TargetUserName). Please take necessary action</Body>
          <HeaderFields />
        </SendEmail>
      </Actions>
    < /Task>

    Dears
    I have Server 2012 and I wants to make new task seclude for email notification, while any user is login to the
    server the server will send notification email about user name and IP address for the user, I have script it is working fine in windows 2008 and it is xml file, but the script is not working in 2012 because in task schedule in windows 2008 there is an option
    called send email but in windows 2012 this option is deprecated, I’m using start program to run the script in PowerShell instead of send email and I configured as an
     end-MailMessage
    -From [email protected]
    -Subject "Email Notification"
    -To [email protected]
    -SmtpServer mail.domainName.com
    But when I use this PowerShell I only receive email notification without any name and IP address, kindly I need
    your support and help, I’m using below script.
    <?xml version="1.0" encoding="UTF-16"?>
    < Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
      <RegistrationInfo>
        <Date>2013-11-27T11:16:32.3962177</Date>
        <Author>Company Name\User Name</Author>
        <Description>RDP Login V1</Description>
      </RegistrationInfo>
      <Triggers>
        <EventTrigger>
          <Enabled>true</Enabled>
          <Subscription>&lt;QueryList&gt;&lt;Query Id="0" Path="Security"&gt;&lt;Select Path="Security"&gt;*[System[(EventID=4624)]] and *[EventData[Data[@Name='LogonType'] and (Data=10)]]&lt;/Select&gt;&lt;/Query&gt;&lt;/QueryList&gt;</Subscription>
          <ValueQueries>
            <Value name="IpAddress">Event/EventData/Data[@Name="IpAddress"]</Value>
            <Value name="TargetUserName">Event/EventData/Data[@Name="TargetUserName"]</Value>
          </ValueQueries>
        </EventTrigger>
      </Triggers>
      <Principals>
        <Principal id="Author">
          <UserId>Company Name\User Name</UserId>
          <LogonType>Password</LogonType>
          <RunLevel>HighestAvailable</RunLevel>
        </Principal>
      </Principals>
      <Settings>
        <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
        <DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
        <StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
        <AllowHardTerminate>true</AllowHardTerminate>
        <StartWhenAvailable>false</StartWhenAvailable>
        <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
        <IdleSettings>
          <StopOnIdleEnd>true</StopOnIdleEnd>
          <RestartOnIdle>false</RestartOnIdle>
        </IdleSettings>
        <AllowStartOnDemand>true</AllowStartOnDemand>
        <Enabled>true</Enabled>
        <Hidden>false</Hidden>
        <RunOnlyIfIdle>false</RunOnlyIfIdle>
        <WakeToRun>false</WakeToRun>
        <ExecutionTimeLimit>P3D</ExecutionTimeLimit>
        <Priority>7</Priority>
      </Settings>
      <Actions Context="Author">
        <SendEmail>
          <Server>Name of the Server.com</Server>
          <Subject>RDP Login V1</Subject>
          <To>Sender Name</To>
          <From>Any Email.com</From>
          <Body>Login Alert on ServerName IP : $(IpAddress)  User: $(TargetUserName). Please take necessary action</Body>
          <HeaderFields />
        </SendEmail>
      </Actions>
    < /Task>

Maybe you are looking for

  • Looking for a simple database app.

    I have an Excel sheet that i use to store simple database data. Like a flat file database with only 4 columns, no relations, no calculations, just data storage. I don't want to download and install over a 100Mb of OpenOffice or NeoOffice just to be a

  • JDBC Receiver Communication channel Error

    Hi Friends, I am facing below error in JDBC Receiver Communication chnnel. Please shared your views. Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error processing request in sax parser: Error

  • IDVD picture quality poor

    When I burned a movie of photographs in iMovie06 to play on both computers and TV my movie looked lovely. Now in iMovie09 it looks bad. What am I doing wrong? Once I burn the movie onto a DVD the picture flickers. I am frustrated by poor quality movi

  • How do I save clips individually

    I'm somewhat new to GB, so this should be an easy one. I started working on a project, then decided that since I'll be importing many clips into a Final Cut Project, that I want all my clips to be saved/stored individually. I checked the package cont

  • How much space do I have in the cloud?

    Hi, I was just wondering how much space we have as an individual in the cloud? Thanks,