Issue with passing param's from ME POD to MII.

I have an interesting issue.   I have a customer with POD screen in ME that has a command button to open an MII screen.   The POD screen has the workstation ID in the URL.  The MII screen needs that workstation id.    Normally I would use window.opener.location.href in javascript but Iu2019m getting a "permission denied" from IE.   So IE thinks this is a cross domain call.  Although the POD and MII pages are on different machines, they are on the same domain.
POD url example:  (parent page)
http://MEmachine.mydomain.com:52600/manufacturing/com/sapdev/jsp/activity/pod/PODMain.jsp?WORKSTATION=TEST_POD&OPERATION=WA_123_L&RESOURCE=WA_123_L&ACTIVITY_ID=STATION1
MII url example: (pop up)
http://MIImachine.mydomain.com:55500/XMII/CM/Scrap/ScrapApplet.irpt?service=Personalization&j_user=MyUser&j_password=Mypassword
My suspicion is that although the two machines are on the same domain, the fact that they are on different ports is causing IE to think itu2019s a cross domain scripting call and forbidding it.    
The obvious workround would be to just send the workstation name as part of the opening url call, however Iu2019m not sure if the customer will be able to do that for each workstation.
Thoughts?

Below is an example of passing All(NULL), Single and Multi values using Oracle DB (I think you are on Teradata, so use equivalent syntax)
where (columnxxx in (:parameter) or least(:parameter) is null)
Here:
columnxxx in (:parameter) will take care passing single and multi-select
least(:parameter) is null will take care when ALL is selected (assuming you have chosen "Pass NULL" for ALL)

Similar Messages

  • Having an issue with passing the text of a link to a session variable.

    I am having an issue with passing the text from a link to a session variable. I am adding this html as a literal for each item in the list that i have populated with a query.
    List<Literal> lit = new List<Literal>();
    for (int i = 0; i < posts.Count; i+=4)
    Literal someLit = new Literal();
    someLit.Text=
    @"<div class='row'>" +
    "<div class='col-md-12'>" +
    "<div class='panel'>" +
    " <div class='panel-body'>" +
    " <!--/stories-->" +
    " <div class='row'> " +
    " <br>" +
    "<div class='col-md-2 col-sm-3 text-center' id='javascript'> <h3>" +
    " <a href='#' runat='server' onserverclick='UserProfile_Click'>" + posts[i + 3] + " </a>" +
    "</h3>" +
    " </div>" +
    " <div class='col-md-10 col-sm-9'>" +
    "<h3><a href='Thread.aspx' runat='server' onserverclick='MyFuncion_Click'> " + posts[i] + " </a></h3>" +
    " <div class='row'>" +
    " <div class='col-xs-9'> " +
    posts[i + 1] +
    " </div>" +
    "<div class='col-xs-3'></div>" +
    posts[i + 2] +
    " </div>" +
    "<br><br>" +
    " </div>" +
    " </div>" +
    " <!--/stories-->" +
    " </div>" +
    " </div>" +
    " </div><!--/col-12-->" +
    " </div>" +
    "</div>";
    lit.Add(someLit);
    for(int i=0; i<lit.Count; i++)
    this.Controls.Add(lit[i]);
    I use one of the list positions as the text for a link in two different spots. For now, lets only talk about the line:
    <a href='#' runat='server' onserverclick='UserProfile_Click'>" + posts[i + 3] + " </a>
    Since I am generating these controls at pageLoad, I can't make them <asp:Linkbutton>s. And since they are anchor elements, I don't have access to an onCommand attribute or onservercommand attribute.
    All I want to do is access the content from inside the specific link tags that I generate on link click and set it as a session variable. That's what I would like my UserProfile_Click function to do. I cant commandargs it in like i can with a linkbutton's
    OnCommnad attribute, however.
    My fear is that the onserverclick attribute resolves so something else on pageLoad normally and since I am generating it the way I am similar to the way a <asp:linkButton> resolves to a generated JavaScript.
    Any help?

    @Brunellus
    For questions related to ASP.NET use the ASP.NET forum http://forums.asp.net     
    You should get more, better and faster answers on the other forum.  Thanks, ahead of time.
    Best Regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Issue with Executing OS commands from Stored Procedure

    I am trying to execute the scripts provided at :
    http://github.com/xtender/XT_SHELL
    provided by xtender user.
    As required, I have asked my DBAs to grant privileges by executing the following scripts:
    Begin
      --change to needed permissions and execute
      dbms_java.grant_permission( 'ODS', 'SYS:java.io.FilePermission', '/var/factiva/ODS/bin/CVIM_Rpt_ExportCSVFile’, 'read,write,execute' );
    end;
    /where CVIM_Rpt_ExportCSVFile is my script residing in the Unix server where my Oracle is installed.
    The error I am facing when I try to execute the following command is:
    select * from table(xt_shell.shell_exec('/var/scripts/CVIM_Rpt_ExportCSVFile',100))
    Exception:the Permission (java.io.FilePermission /var/scripts/CVIM_Rpt_ExportCSVFile execute) has not been granted to ODS. The PL/SQL to grant this is dbms_java.grant_permission( 'ODS', 'SYS:java.io.FilePermission', '/var/scripts/CVIM_Rpt_ExportCSVFile', 'execute' )I have asked my DBA to also execute the following scripts: - But I still see the same error as above. I am not able to figure out whats going on. Can anyone pls help me out??
    EXEC Dbms_Java.Grant_Permission('ODS', 'SYS:java.lang.RuntimePermission', 'writeFileDescriptor', '');
    EXEC Dbms_Java.Grant_Permission(ODS', 'SYS:java.lang.RuntimePermission', 'readFileDescriptor', '');
    dbms_java.grant_permission( 'ODS', 'SYS:java.io.FilePermission', '/var/scripts/CVIM_Rpt_ExportCSVFile', 'execute' )

    DUPLICATE
    ===============================================================
    Issue with Executing OS commands from Stored Procedure
    ==============================================================

  • Is there an issue with streaming videos direct from itunes? I

    Is there an issue with streaming videos direct from itunes? I have good wifi but films just buffer , doesn't happen on flixster on netflix , wonder if there is any tweak to watch a film uninterrupted , because it is very frustrating? Thanks

    Apple appears to be having trouble with the iTunes Store servers right now.
    (81070)

  • Issue with passing parameters from JSP to Backing bean

    hi ,
    I have an issue in passing parameters from my JSP to backing bean. I want to fetch the parameter from my URL in backing bean .This is how i am coding it right now. But the parameter companyID returns me null.
    URL http://localhost:8080/admin/compadmin.jsp?companyID=B1234.
    In my backing bean
    FacesContext context = FacesContext.getCurrentInstance();
    String companyID = (String)context.getExternalContext().getRequestParameterMap().get("CompanyID");
         public void setCompanyID(String companyID)
              this.companyID=companyID;
         public String getCompanyID()
              return this.companyID;
    faces-config.xml :
       <managed-bean-name>admincontroller</managed-bean-name>
              <managed-bean-class>com.admin.controller.AdminController</managed-bean-class>
              <managed-bean-scope>request</managed-bean-scope>
              <managed-property>
                   <property-name>companyadminbean</property-name>
                   <property-class>com.admin.model.AdminBean</property-class>
                   <value>#{companyadminbean}</value>
                         </managed-property>
                        <managed-property>
                                 <property-name>companyID</property-name>
                              <value>#{param.companyID}</value>
                             </managed-property>Please let me know if iam missing something.Appreciate your help in advance
    Thanks

    Thanks very much for your input. I made changes to my bean accordingly. Actually the method getAdminType() is a not a getter of a property. It's just a method which iam calling in AdminController bean constructor to verify whether the person is System Admin or Client admin. So now the issue is inspite of making changes still the link "Copy Users" shows up for Client admin too which is incorrect.
    My Administrator bean:
    public class Administrator {
      boolean GSA=false;
      boolean SA=false;
      public Administrator(){}
    public boolean isGSA()
        return GSA;
      public boolean isSA()
        return SA;
      public void setGSA(boolean value)
        this.GSA=value;
      public void setSA(boolean value)
        this.SA=value;
    }My backing bean:
    public class AdminController {
    private AdminBean adminbean = new AdminBean();
    public AdminController(){
    int userID=1234;
    this.getAdminType(userID);           
    public void getAdminType(int userID)
             Administrator admin = new Administrator();
             if (userID<0) return;
             try{
                 if(Rc.isGlobalSystemAdmin(userID)){
                      admin.setGSA(true);
                              }else if(Rc.isClientSystemAdmin(userID)){
                      admin.setSA(true); // i could see these values setup correctly in the admin bean when i print them
                 adminbean.setAdmin(admin);
                  } catch (Exception e){ }
    Admin Bean:
    public class AdminBean {
    private Administrator admin; 
    public Administrator getAdmin()
                        return this.admin;
              public void setAdmin(Administrator admin)
                        this.admin = admin;
    faces-config.xml
    <managed-bean>
              <managed-bean-name>admincontroller</managed-bean-name>
              <managed-bean-class>com.controller.AdminController</managed-bean-class>
              <managed-bean-scope>request</managed-bean-scope>
              <managed-property>
                   <property-name>adminbean</property-name>
                   <property-class>com.model.AdminBean</property-class>
                   <value>#{adminbean}</value>
             </managed-property>
         </managed-bean>
         <managed-bean>
              <managed-bean-name>adminbean</managed-bean-name>
              <managed-bean-class>com.model.AdminBean</managed-bean-class>
              <managed-bean-scope>request</managed-bean-scope>
              <managed-property>
                   <managed-property>
                   <property-name>admin</property-name>
                   <property-class>com.model.Administrator</property-class>
                   <value>#{admin}</value>
                             </managed-property>
         </managed-bean>     My JSP:<h:outputLink id="ol1" value="/companyadmin/copyusers.jsp">
               <h:outputText id="ot1" value="Copy Users" rendered="#{adminbean.admin.isGSA}" /><f:verbatim><br/></f:verbatim>
               </h:outputLink>    so now the issue is thelink copy users is displayed even #{adminbean.admin.isGSA} is FALSE. please advise.
    Thanks
    Edited by: twisai on Oct 15, 2009 7:06 AM

  • Reporting an audio/video issue with a TV show from a Season Pass? How?

    I would like to report some audio/video issues with the latest The Unit and The Seeker episodes but I can't find them in my Purchase History??? I own a Season Pass for both. Any idea how to do it? I'm lost. Thanks!

    Is this the lack of audio on "Shadow Riders"? I've just got to that episode, and I tried to report the problem, but the whole series of hoops you have to jump through seems to have changed. Rather than get to the page where you add comments for the problems, it merely sends you to an internet link on apple that has no bearing on the problem.
    If you open your account information (store > View my account) you can click your purchase history there. The theory is that you find your program, click the arrow next to it, then click "report a problem" and it should allow you to enter a comment, or the problem... Anyone else having this troubvle?

  • Issue with passing expression to a hashmap key in a dataTable column

    hi all,
    Can someone help me with passing an expression like "123-456" to a hashmap key in my dataTable . In my dataTable i have t:columns tag which generates checkboxes for each row in the dynamic column .The value of checkbox must be identified by a combination of userID and accountID. So i want to set value of checkbox something like this'userID-account.ID' . But it never returns the right value since userID is taken as string instead i want the value of userID to be passed in that expression. Someone please help...iam struck with this issue from so long.Here is the code.
    page1.jsp:
    <t:dataTable id="groupuserlist"
                  var="user"            
                             value="#{manageuserscontroller.userList}"     // this is a list of userIDs
                 cellspacing="0"
                 preserveDataModel="false"
                 headerClass="topRow"
                 preserveSort="true"
                 summary="This table displays list of users for an accessgroup">
         <t:column>
          <f:facet name="header"><h:outputText value="User ID" /></f:facet>
          <t:outputText value="#{user.ID}" />
         </t:column>
         <t:column>
          <f:facet name="header"><t:commandSortHeader columnName="title" arrow="true"> <h:outputText value="Title"/> </t:commandSortHeader> </f:facet>
          <t:outputText value="#{user.title}" />
         </t:column>
          <t:columns var="cols" value="#{manageuserscontroller.selectedAGList}"> //selectedAGList is a list of accountIDs
          <f:facet name="header"><h:outputText value="#{cols.name}" /></f:facet>
          <h:selectBooleanCheckbox id="checkbox4" value="#{manageuserscontroller.selectedUserIds['user.ID-cols.ID]}" />
          </t:columns>
    </t:dataTable>Backing bean: In this selectedUserIds iam intentionally setting up key something like "userID-accountID" so that i can split the userID and accountID for later user
    private Map<String, Boolean> selectedUserIds = new HashMap<String, Boolean>();
             somebody please to my email. If you need further information iam very happy to provide any time. Also let me know if there is another way to get this job done..
    Thanks very much in advance

    Hi BalusC,
    I am very much thankful to you. I got my issue resolved only when i select one dynamic column. It doesn't seem to be working if i select multiple columns. Not sure where exactly my logic is going wrong. Here is a snippet of my code.. Please let me know if you find any mistake in it..Once again thanks very much..for your great help.
    jsp:
    <t:dataTable id="grouplist"
                  var="user"            
                   value="#{manageuserscontroller.userList}"     
                   styleClass="companyAdminMainTable ltgreen_Hrule marVertSml"
                 cellspacing="0"
                 preserveDataModel="false"
                 headerClass="topRow"
                 preserveSort="true"
                 summary="This table displays list of users for an account">
         <t:column>
          <f:facet name="header"><h:outputText value="User ID" /></f:facet>
          <t:outputText value="#{user.ID}" />
         </t:column>
         <t:column>
          <f:facet name="header"><t:commandSortHeader columnName="title" arrow="true"> <h:outputText value="Title"/> </t:commandSortHeader> </f:facet>
          <t:outputText value="#{user.title}" />
         </t:column>
          <t:columns id="dynamic" var="cols" value="#{manageuserscontroller.selectedAGList}">
          <f:facet name="header"><h:outputText value="#{cols.name}" /></f:facet>
          <h:selectBooleanCheckbox id="checkbox4" value="#{manageuserscontroller.selectedAGUserIds[user.ID][cols.accessGroupID]}" />
          </t:column>
          </t:columns>
    </t:dataTable>Backing bean:
    private Map<Integer, Map<Integer,Boolean>> selectedAGUserIds = new HashMap<Integer, Map<Integer,Boolean>>();
        private Map<Integer, Boolean> selectedAGIds = new HashMap<Integer, Boolean>();
    for(int j=0; j< selectedAGList.size(); j++){   //List of selected dynamic account columns
             for(int i=0; i < userList.size();i++){              // lisf of users
                   try {
                        int m = userList.get(i).getID();
                        int n = selectedAGList.get(j).getAccessGroupID();
                        selectedAGIds=(AccessGroupDAO.getUserMap1(userList.get(i).getID(),selectedAGList.get(j).getAccountID()));
                        selectedAGUserIds.put(userList.get(i).getID(),selectedAGIds);
                       System.out.println("hashmap value"+ selectedAGUserIds.get(m).get(n));
                        } catch (Exception e) {
                             // TODO Auto-generated catch block
                             e.printStackTrace();
                 System.out.println("outer hashmap size"+ selectedAGUserIds.size());
          }DAO:
    public static Map<Integer,Boolean> getUserMap1(Integer userID, int accountID) throws Exception {
         Map<Integer, Map<Integer,Boolean>> selectedUserAGIds = new HashMap<Integer, Map<Integer,Boolean>>();
                    Map<Integer, Boolean> selectedAGIds = new HashMap<Integer, Boolean>();
          String sql="  select iusermetaid,iaccountid from useraccountlist where iusermetaid = userID and iaccountid = accountID ";
             ResultSet rs = executeSQL(sql);
             if(rs!=null & rs.next()){
                  System.out.println("record found");
                  Integer aid = rs.getInt("iaccountid");
                        selectedAGIds.put(aid, true);
             else{
                  System.out.println("record not found");
                  selectedAGIds.put(accessGroupID, false);
                  System.out.println("get the key value"+ selectedUserAGIds.get(userID).get(accessGroupID));
            System.out.println("Exiting accessgroupDAO");
             return selectedAGIds;
    }

  • Issue with passing parameters through Java-JSP in a report with cross tab

    Can anyone tell me, if there's a bug in Java SDK in passing the parameters to a report (rpt file) that has a cross tab in it ?
    I hava report that works perfectly fine
       with ODBC through IDE and also through browser (JSP page)
    (ii)    with JDBC in CR 2011 IDE
    the rpt file has a cross tab and accpts two parameters.
    When I run the JDBC report through JSP the parameters are never considered. The same report works fine when I remove the cross tab and make it a simple report.
    I have posted this to CR SDK forum and have not received any reply. This have become a blocker and because of this our delivery has been postponed. We are left with two choices,
       Re-Write the rpt files not to have cross-tabs - This would take significant effort
    OR
    (ii)  Abandon the crystal solution and try out any other java based solutions available.
    I have given the code here in this forum posting..
    CR 2011 - JDBC Report Issue in passing parameters
    TIA
    DRG
    TIA
    DRG

    Mr.James,
    Thank you for the reply.
    As I stated earlier, we have been using the latest service pack (12) when I generated the log file that is uploaded earlier.
    To confirm this further, I downloaded the complete eclipse bundle from sdn site and reran the rpt files. No change in the behaviour and the bug is reproducible.
    You are right about the parameters, we are using  {?@Direction} is: n(1.0)
    {?@BDate} is: dt(d(1973-01-01),t(00:00:00.453000000)) as parameters in JSP and we get 146 records when we directly execute the stored procedure. The date and the direction parameter values stored in design time are different. '1965-01-01' and Direction 1.
    When we run the JSP page, The parameter that is passed through the JSP page, is displayed correctly on the right top of the report view. But the data that is displayed in cross tab is not corresponding to the date and direction parameter. It corresponds to 1965-01-01 and direction 1 which are saved at design time.
    You can test this by modifying the parameter values in the JSP page that I sent earlier. You will see the displayed data will remain same irrespective of the parameter.
    Further to note, Before each trial run, I modify the parameters in JSP page, build them and redeploy so that caching does not affect the end result.
    This behaviour, we observe on all the reports that have cross-tabs. These reports work perfectly fine when rendered through ODBC-ActiveX viewer and the bug is observable only when ran through Java runtime library. We get this bug on view, export and print functionalities as well.
    Additionally we tested the same in
        With CR version 2008 instead of CR 2011.
    (ii)   Different browsers ranging from IE 7 through 9 and FF 7.
    The complete environment and various softwares that we used for this testing are,
    OS      : XP Latest updates as on Oct 2011.
    App Server: GlassFish Version 3 with Java version 1.6 and build 21
    Database server ; SQL Server 2005. SP 3 - Dev Ed.
    JTds JDBC type 4 driver version - 1.2.5  from source forge.
    Eclipse : Helios along with crystal libraries directly downloaded from SDN site.
    I am uploading the log file that is generated when rendering the rpt for view in IE 8
    Regards
    DRG

  • Dropdown - issue with passing values to context

    Hi,
    After facing issue in:
    Webdynpro + alv + dynamic dropdown
    Now I've encountered another problem. Dropdown is created in alv, however once user select value from the list it shows selected value in the cell, however value in context remains unchanged.
    Here is the way I implemented dropdown:
    1) I added new field to the structure which is shown in the alv FIELD1 of WDR_CONTEXT_ATTR_VALUE_LIST type.
    2) I initialize the column, where dropdown is supposed to be:
    - first column
    l_col_name = 'COL1'.
    lr_column = lr_model->if_salv_wd_column_settings~get_column( l_col_name ).
    DATA: lr_drdn_by_idx_col1 TYPE REF TO cl_salv_wd_uie_dropdown_by_idx.
    CREATE OBJECT lr_drdn_by_idx_col1 EXPORTING selected_key_fieldname = l_col_name.
    lr_drdn_by_idx_col1->set_valueset_fieldname( value = 'FIELD1' ).
    lr_drdn_by_idx_col1->set_read_only( value = abap_false ).
    lr_drdn_by_idx_col1->set_type( if_salv_wd_c_uie_drdn_by_index=>type_key_value ).
    lr_column->set_cell_editor( lr_drdn_by_idx_col1 ).
    3) I load the data,
    Piece of code loading data into structure with dropdown:
    DATA:  ls_valueset     TYPE wdr_context_attr_value,
                lt_itab         LIKE TABLE OF ls_line.
          ls_valueset-value = 'KG'.
          ls_valueset-text = 'KG'.
          APPEND ls_valueset TO lt_itab[].
          ls_valueset-value = 'ST'.
          ls_valueset-text = 'ST'.
          APPEND ls_valueset TO lt_itab[].
    zstructure is type of the row show in the alv
    Data:
         ls_po_result TYPE zstructure.
         lt_po_result TYPE table of zstructure.
         ls_po_result-FIELD1[] = lt_itab[].
         APPEND ls_po_result TO lt_po_result[].
    Everything works so far good. The thing is that once I changed value from e.g. ST to KG, value in Attribute COL1 is still ST.
    I would appreciate your help,
    kind regards,
    Adam

    Hi Nithya,
    it could another issue with the SP, I will inform you if it's the case.
    Passing values comes up with function when I load data into alv.
    structure_name - alv columns structure
    DATA: l_name1        TYPE t001w-name1,
              ls_po_result   TYPE structure_name
              lt_po_result   TYPE table of structure_name,
    load data from DB into l_itab
      LOOP l_itab  AT ASSIGNING item.
    this method return value_set to field1
        CALL METHOD fill_single_dd
          EXPORTING
            i_id     = item-id
          IMPORTING
            rt_dd_table = ls_po_result-field1[].
        APPEND ls_po_result TO lt_po_result[].
      ENDLOOP.
    binding to node ....

  • Powershell : Issues with user input collection from Multiple InPutBox Form

    I am having issues with getting user input to pass from a form that a user fills out into variables that I can then use in other methods and commands. (ex; SQL Query, SQL Data Add, ... )
    I have attached the Powershell script I am using in it's designed form but I am having issues getting the DataCollection function to grab the content of the InputBox and send it to a variable for later use.
    Note: I'm running this at this time from the ISE so I can actually see what is going on.
    Any help would be appreciated.
    DAS
    [System.Reflection.Assembly]::LoadWithPartialName( “System.Windows.Forms”)
    [System.Reflection.Assembly]::LoadWithPartialName( “Microsoft.VisualBasic”)
    $FormDBA = New-Object System.Windows.Forms.Form
    $FormDBA.Size = New-Object System.Drawing.Size(300,500)
    $FormDBA.Text = "MIS Data"
    $FormDBA.StartPosition = [System.Windows.Forms.FormStartPosition]::CenterScreen;
    function DataCapture
    $SubSID = $InBoxSID.text
    ECHO $SubSID
    $InBoxTxtSID = New-Object System.Windows.Forms.Label
    $InBoxTxtSID.Location = New-Object System.Drawing.Size(25,15)
    $InBoxTxtSID.Text = "Sticker ID : "
    $InBoxSID = New-Object System.Windows.Forms.TextBox
    $InBoxSID.Location = New-Object System.Drawing.Size(130,10)
    $InBoxSID.Size = New-Object System.Drawing.Size(120,20)
    $InBoxTxtUSR = New-Object System.Windows.Forms.Label
    $InBoxTxtUSR.Location = New-Object System.Drawing.Size(25,55)
    $InBoxTxtUSR.Text = "User Name ; "
    $InBoxUSR = New-Object System.Windows.Forms.TextBox
    $InBoxUSR.Location = New-Object System.Drawing.Size(130,50)
    $InBoxUSR.Size = New-Object System.Drawing.Size(120,20)
    $InBoxTxtPCN = New-Object System.Windows.Forms.Label
    $InBoxTxtPCN.Location = New-Object System.Drawing.Size(25,95)
    $InBoxTxtPCN.Text = "PC Name : "
    $InBoxPCN = New-Object System.Windows.Forms.TextBox
    $InBoxPCN.Location = New-Object System.Drawing.Size(130,90)
    $InBoxPCN.Size = New-Object System.Drawing.Size(120,20)
    $InBoxTxtDPT = New-Object System.Windows.Forms.Label
    $InBoxTxtDPT.Location = New-Object System.Drawing.Size(25,135)
    $InBoxTxtDPT.Text = "Department : "
    $InBoxDPT = New-Object System.Windows.Forms.TextBox
    $InBoxDPT.Location = New-Object System.Drawing.Size(130,130)
    $InBoxDPT.Size = New-Object System.Drawing.Size(120,20)
    $InBoxTxtPCT = New-Object System.Windows.Forms.Label
    $InBoxTxtPCT.Location = New-Object System.Drawing.Size(25,175)
    $InBoxTxtPCT.Text = "PC Type : "
    $InBoxPCT = New-Object System.Windows.Forms.TextBox
    $InBoxPCT.Location = New-Object System.Drawing.Size(130,170)
    $InBoxPCT.Size = New-Object System.Drawing.Size(120,20)
    $InBoxTxtMAK = New-Object System.Windows.Forms.Label
    $InBoxTxtMAK.Location = New-Object System.Drawing.Size(25,215)
    $InBoxTxtMAK.Text = "Make : "
    $InBoxMAK = New-Object System.Windows.Forms.TextBox
    $InBoxMAK.Location = New-Object System.Drawing.Size(130,210)
    $InBoxMAK.Size = New-Object System.Drawing.Size(120,20)
    $InBoxTxtMOD = New-Object System.Windows.Forms.Label
    $InBoxTxtMOD.Location = New-Object System.Drawing.Size(25,255)
    $InBoxTxtMOD.Text = "Model : "
    $InBoxMOD = New-Object System.Windows.Forms.TextBox
    $InBoxMOD.Location = New-Object System.Drawing.Size(130,250)
    $InBoxMOD.Size = New-Object System.Drawing.Size(120,20)
    $InBoxTxtOPS = New-Object System.Windows.Forms.Label
    $InBoxTxtOPS.Location = New-Object System.Drawing.Size(25,295)
    $InBoxTxtOPS.Text = "O.S. : "
    $InBoxOPS = New-Object System.Windows.Forms.TextBox
    $InBoxOPS.Location = New-Object System.Drawing.Size(130,290)
    $InBoxOPS.Size = New-Object System.Drawing.Size(120,20)
    $InBoxTxtDIS = New-Object System.Windows.Forms.Label
    $InBoxTxtDIS.Location = New-Object System.Drawing.Size(25,335)
    $InBoxTxtDIS.Text = "Disposed : "
    $InBoxDIS = New-Object System.Windows.Forms.TextBox
    $InBoxDIS.Location = New-Object System.Drawing.Size(130,330)
    $InBoxDIS.Size = New-Object System.Drawing.Size(120,20)
    $button = New-Object System.Windows.Forms.Button
    $button.Location = New-Object System.Drawing.Size(150,400)
    $button.Width = 100
    $button.Text = “Ok”
    $button.Add_Click({DataCapture})
    $FormDBA.Controls.Add($button)
    $FormDBA.Controls.Add($InBoxTxtSID)
    $FormDBA.Controls.Add($InBoxTxtUSR)
    $FormDBA.Controls.Add($InBoxTxtPCN)
    $FormDBA.Controls.Add($InBoxTxtDPT)
    $FormDBA.Controls.Add($InBoxTxtPCT)
    $FormDBA.Controls.Add($InBoxTxtMAK)
    $FormDBA.Controls.Add($InBoxTxtMOD)
    $FormDBA.Controls.Add($InBoxTxtOPS)
    $FormDBA.Controls.Add($InBoxTxtDIS)
    $FormDBA.Controls.Add($InBoxSID)
    $FormDBA.Controls.Add($InBoxUSR)
    $FormDBA.Controls.Add($InBoxPCN)
    $FormDBA.Controls.Add($InBoxDPT)
    $FormDBA.Controls.Add($InBoxPCT)
    $FormDBA.Controls.Add($InBoxMAK)
    $FormDBA.Controls.Add($InBoxMOD)
    $FormDBA.Controls.Add($InBoxOPS)
    $FormDBA.Controls.Add($InBoxDIS)
    $FormDBA.ShowDialog()

    Change this:
    $button = New-Object System.Windows.Forms.Button
    $button.Location = New-Object System.Drawing.Size(150,400)
    $button.Width = 100
    $button.Text = “Ok”
    $button.DialogResult='Ok'  #<<<<<-------
    #$button.Add_Click({DataCapture})
    Remove function andrun like this:
    if('Ok' -eq $FormDBA.ShowDialog()){
        $FormDBA.Controls|%{$_.Text}
    With names you can get values by control name.
    ¯\_(ツ)_/¯
    This suggestion works for the purpose I needed. 
    If I could, I would attach the file instead of pasting the script so you can see what all I am using this to do.
    But in short, we have a main form we use to pull records from a database and call up an application at the click of a button for remote assistance.  However, we seem to now need the ability to have this application to edit and add new records into said
    database.  That's where this second form came in and also when I hit my issue with the information capture.
    At this time I'm getting this to format the information collected so that I can start using using it with SQL commands.

  • Issues with Synchronize to and from DB (version 3.3.0.747)

    Having an issue with syncing the model and the data dictionary is a very specific case:
    1. Reverse engineer an existing table (T1)
    2. Copy the table (in data modeler) - T2
    3. Rename the table, make changes (add columns and keys)
    4. Forward engineer the new table (i.e., export and run DD for T2L)
    5. Make additional changes to new table (T2) in data model.
    6. Run sync db with model - the sync routine compares my new table (t2) to the original table (T1) in the database! It cannot "find" my new table (T2) in the database to compare to.
    7. Alternatively try to sync the model with the db - this time it wants to sync the original table (T1) to itself (which has no change) and DROP my new table (T2) from the model.
    It appears that sync is looking at meta data one my new table (T2) that contains the original copied table's name (T1). And in fact if I look at the table Summary properties - the source db object property does list the original table name (T1).
    I also tried to reverse engineer the new table (T2) to the merge with the model, that has the same behavior as the sync.
    Is there a way to fix this short of dropping T1 from the schema?
    Edited by: Kent Graziano on May 20, 2013 2:37 PM

    Hi Kent,
    thanks for reporting the problem. I logged a bug and ER for that.
    Is there a way to fix this short of dropping T1 from the schema?Unnecessary information about source need to be cleared. Here is a script that will help on that:
    //array with 2 elements to illustrate different use cases - the first is used to have exact match on table name
    // the second one ("REGIO") can be used with following check in inList function
    //if(table.getName().startsWith(list)){
    var list = ["Regionsv1","REGIO"];
    function isInList(table){
         for(var i=0;i<list.length;i++){
              // different approaches to match table name can be used
              // be aware of letter case
              //if(table.getName().startsWith(list[i])){
              if(table.getName().equalsIgnoreCase(list[i])){
                   return true;
         return false;
    function clearSourceStampforTable(table){
         clearSourceStamp(table);
         cols = table.getElements();
         for(var i=0;i<cols.length;i++){
              clearSourceStamp(cols[i]);
         keys = table.getKeySet().toArray();
         for(var i=0;i<keys.length;i++){
              clearSourceStamp(keys[i]);
              if(keys[i].isFK()){
                   clearSourceStamp(keys[i].getFKIndexAssociation());
    function clearSourceStamp(object){
         object.setSourceConnName("");
         object.setSourceObjSchema("");
         object.setSourceObjName("");
         object.setSourceDDLFile("");
         object.setDirty(true);
    tables = model.getTableSet().toArray();
    for(var i=0;i<tables.length;i++){
         table = tables[i];
         if(isInList(table)){
              clearSourceStampforTable(table);

  • PHP email form - issue with who it's from

    Hi,
    I've got a referral page on my site where the user puts in their details and a friends details and the form fires off a email to the friend. The form is in HTML and posts it to a PHP file. The problem is I get in the email for who it's from:
    from
    "Scott Bradshaw"@server74.ukservers.net
    I don't want the
    @server74.ukservers.net
    in their.
    Is this an issue with PHP files and forms or is their a way round it? I know I could do a mailto: form but don't want to. What are my options?
    Thanks, Scott

    I'm making the website for someone and they had the hosting set up already but thanks for telling me. I think this is right what I've done:
    function detectSuspect($val, &$ok) {
      if (preg_match('/Content-Type:|Cc:|Bcc:/i', $val)) {
        $ok = false;
    $YourName = Trim(stripslashes($_POST['YourName']));
    $YourEmail = Trim(stripslashes($_POST['YourEmail']));
    $RefName = Trim(stripslashes($_POST['RefName']));
    $RefEmail = Trim(stripslashes($_POST['RefEmail']));
    $EmailFrom = $YourEmail;
    $Subject = $RefName;
    $EmailTo = $RefEmail;
    // validation
    $validationOK=true;
    detectSuspect($YourName, $validationOK);
    detectSuspect($YourEmail, $validationOK);
    detectSuspect($RefName, $validationOK);
    detectSuspect($RefEmail, $validationOK);
    if (!$validationOK) {
      print "<meta http-equiv=\"refresh\" content=\"0;URL=error.html\">";
      exit;
    // prepare email body text
    $Body = "Hi $RefName,
    $YourName thought you would be interested in viewing this online video called A
    tale of 2 customers (< 3 mins).
    www.easybench.org/ataleof2customers3";
    $Body2 = "";
    $Body2 .= "User Name: ";
    $Body2 .= $YourName;
    $Body2 .= "\n";
    $Body2 .= "User Email: ";
    $Body2 .= $YourEmail;
    $Body2 .= "\n";
    $Body2 .= "Referral Name: ";
    $Body2 .= $RefName;
    $Body2 .= "\n";
    $Body2 .= "Referral Email: ";
    $Body2 .= $RefEmail;
    $Body2 .= "\n";
    // send email
    $success = mail($EmailTo, $Subject, $Body, "From: $EmailFrom<$EmailFrom>");
    mail("[email protected]", "Referral details", $Body2, "From: [email protected]");
    // redirect to success page
    if ($success){
      print "<meta http-equiv=\"refresh\" content=\"0;URL=thankyou2.html\">";
    else{
      print "<meta http-equiv=\"refresh\" content=\"0;URL=error.html\">";
    ?>
    I've also got a feedback form thing too, the script above wouldn't work for it I guess as it's protecting against different thing but what's the best way to protect the feedback form? I've heard of a honeypot thing where create hidden form field.
    Thanks, Scott

  • Issue with opening pdf file from web browser

    I have Acrobat Pro ver 6 and Adobe Reader 9.1 on a computer.  when my user tries to open up a pdf from the web he is getting the following error message:
    "The Adobe Acrobat/Reader that is running can not be used to view PDF files in a WEb Browser.  Adbe Acrobat/Reader version 8 or 9 is required.  Please exit and try again."
    What also happens is that Acrobat Pro ver 6 opens up and nothing is there.
    I am not sure why he is getting that message since Reader 9.1 is installed.
    Can any one shed some light on this for me.
    This user needs to have Acrobat and Reader on his system.  I understand that there are issues with having both.
    Also he has it set up so that any PDF is opening using the Reader 9.1.
    Thanks,

    Your PC's default reader configuration for embedded PDFs has become confused, due to multiple Adobe PDF document solutions installed on one PC.
    Solution 1:
    Go to Start > Run
    Type regedit and click OK.
    Browse to the following key: HKEY_CLASSES_ROOT\Software\Adobe\Acrobat\Exe
    Make sure that the correct Default data value is set for the path where Adobe Reader or Acrobat are installed.
    The default installation values are:
    "C:\Program Files\Adobe\Reader 9.0\Reader\AcroRd32.exe"
    or
    "C:\Program Files\adobe\acrobat 6.0\acrobat\Acrobat.exe" (not sure about this path.  Check on your PC to be sure)
    depending on whether Adobe Reader or Adobe Acrobat is installed.
    Solution 2:
    Configure the browser to use Acrobat or Adobe Reader as a helper application.
    If you are using Firefox to browse the web, you can change this setting in Firefox by going to:
    Tools > Options
    Click on the "Applications" Tab.
    The first item in the list should be "Adobe Acrobat Document".  Under the Action list, click the drop down arrow and select the application you want to read PDFs within the web browser.  Click OK, and you should be done.
    If you're using Internet Explorer to view PDFs, try the below steps.
    After you configure Acrobat or Adobe Reader as a helper application, the browser starts the helper application in a separate window and displays PDF files within that window. Acrobat and Adobe Reader both include a preference that lets you specify Acrobat or Adobe Reader as the helper application.
    To configure Acrobat or Adobe Reader as a helper application:
    Start Acrobat or Adobe Reader.
    Choose Edit > Preferences.
    Select Internet on the left.
    Deselect Display PDF In Browser Using [Acrobat application], and then click OK.
    Quit Acrobat or Adobe Reader.
    The next time you select a link to a PDF file in the browser, a dialog box asks what you would like to do with the file. If you select Open It, the browser opens the PDF file in Acrobat or Adobe Reader (the helper application); if you select Save It To Disk, the browser saves the PDF file to your hard drive.

  • Issue with opening PDF files from the web Acrobat 8.1.4

    Hello everyone
    I just found out about this problem today, and it manifests in such a manner that when you try to open a PDF document on the web, it hangs for a while, and then the standard message about Adobe Acrobat not being able to open the document comes up, and after you OK away that you get the message that the program shuts down.
    If I download the PDF itself and open it locally it works. Is there any known issue with updates recently that creates this problem?
    The system is running on Windows 7 32-bits, and Adobe Acrobat is a part of the CS3 Master Collection.
    Greetings from Alexander

    Not supported file type can (but not always) mean the PDF was created with an old enough version of Acrobat, that it isn't comaptible with reader X or XI.
    Might have been damaged is pretty cut and dried in its meaning and interpretation.
    There's a known issue with Mac OS and Safari Browser "breaking" PDFs as they download, but it's not so common for Windows. Since these are files you already had, it would be even less applicable.
    You can try downloading an older version of Reader to check if it's a compatibility issue, but you'd have to uninstall the latest to do it and it'd be a lot of bother if they still don't open. It would also mean they are "broken" and cannot be repaired, that I know of.

  • Issue with sent items disappearing from Outlook

    We are having an issue with many of our users who have had their sent items disappear from Outlook. We are running Exchange 2010 SP2 with Rollup 8. All users on Windows 7 appear to be working fine, it is just users on XP that are having the issue. All
    PCs are SP3 with updates applied. The messages were there previously, but the Sent folder shows empty as of Monday. They show correctly in OWA, it is just in Outlook itself that is the problem. If we enable cached mode the items populate, but our standard
    policy is to run online with no local PST. We have tried running Outlook with /clearviews and in Safe Mode, but this does not resolve the issue.

    Hi,
    From your description, all the sent items are correct in OWA. So the Exchange Server is ok.
    About this issue, I recommend you install all the latest Windows updates and check the result.
    Hope it helps.
    If there are any problems, please feel free to let me know.
    Best regards,
    Amy
    Amy Wang
    TechNet Community Support

Maybe you are looking for

  • Cannot update ipod software

    i tried to update my ipod and it doesnt even connect to the ipod software update serve because it says it cant update because the firmware file could not found...i have no idea what happened...please help me out because i cant even sync more music to

  • Difference between report 3.0 and 6i

    Hi all, What is the major difference between report 3.0 and 6i and What is the major difference between report 6i and 9i. Please somebody Thanks, KK

  • Message during Process

    Dear All, i want to display a message like MESSAGE 'say something' TYPE 'S'. during a abap report is running. But messages like this are only displayed at the next screen. So how can i show them at the time when the command MESSAGE is processed? I on

  • How to load the JSP Source Code from Browser

    I have made a program using JSP ( one file ) and Java Beans ( 2 files ). The processed in those JavaBeans files and for output to Browser using JSP File. And I'm using JBuilder7 Software for building my applicaton. I already tested my source through

  • Is there a way to set new tabs to open on a certain page (ie. google)

    I would like new blank tabs to open on a search engine or other url, is there a way to make it so "new tab" opens a tab that isn't blank? I'm using Firefox 3.6.13 on a Macbook Pro thanks!