Reading UI mode and setting field mode in WebUI

Hi
Just getting into crm and I have some questions.
How do I determine if a UI view is in create or change mode?
How can i change a fields from input fields to display fields?
The reason is I need to close 2 fields for input on the screen in change mode. But they need to be open i Create mode. It is the same view that is used for Create and Edit mode.
Hope you can hint me in the right direction.
Sonny

Hi,
I suppose you are asking for ABAP statements.
How do I determine if a UI view is in create or change mode?
data: lv_displaymode type abap_bool.
lv_displaymode = view_group_context->is_view_in_display_mode( me ).
How can i change a fields from input fields to display fields?
view_group_context->set_view_editable( ).
If the view groupcontext is not used, you can set the state manually on the HTMLB tags on the .htm page.
Finetuning can be done in the GET_I methods of the context node.
cheers Carsten

Similar Messages

  • How to set input ready query to display mode and set edit mode in WAD?

    when I create A input ready query but not set query propery  start  query in change mode ,but I want to set this query in input ready mode ,how to set this in WAD?
    hope anyone can help me
    regard  by
    wenlong

    Hi,
          You can get all the info from this thread , try it out
           WAD - set data entry mode
           Hope it helps.
    Regards,
    Priya.

  • Is there api function to change access mode and set a passcode to recording in meeting?

    Is there api function to change access mode and set a passcode to recording in meeting?
    When I'm trying to use "action=acl-field-update&acl-id=SCO_ID_RECORDING&field-id=meeting-passcode&value=MY_PASSC ODE" it just clean the password and do not set it or change.
    And "action=permissions-update&acl-id=SCO_ID_RECORDING&principal-id=public-access&permission- id=view-hidden" do not work too.

    There is not a specific API for doing this. This was discussed in the other Connect forum here, Adobe Connect User Community.
    For you call I would make the second part differently. Instead of 'field-id=meeting-passcode&value=MY_PASSCODE' I would call 'meeting-passcode=MY_PASSCODE' and see if that worked better.

  • [Forum FAQ] Troubleshoot the error "The Remote Desktop Session Host server is in Per User licensing mode and No Redirector Mode"

    Symptom
    RD License server is a key component of RDS. It licenses users to access RDS servers.
    After purchase the required RDS CALs, we need to activate the RDS License server and install the purchased RDS CALs. However, during the installation or after installation, we may face errors
    about RDS License.
    In most cases, the following error may occur.
    Error:
    The Remote Desktop Session Host server is in Per User licensing mode and No Redirector Mode, but license server "Server name" does not have any installed licenses with the following
    attributes:
    Product version: Windows Server 2012
    Licensing mode: Per User
    License type: RDS CALs
    Troubleshooting
    1. Check whether the RD License Configuration is configured properly and there are no Warnings in the Event.
    2. The License Server should be part of 'RD Server License' group in Active Directory Domain Services.
    3. Check if the Licensing Mode is correct.
    - To change the Licensing Mode we can use RD Licensing diagnose, PowerShell cmdlet and Group Policy.
    Via PowerShell cmdlet:
    To change the licensing mode on RDSH/RDVH:
    $obj = get-wmiobject -namespace "Root/CIMV2/TerminalServices" Win32_TerminalServiceSetting
    $obj.ChangeMode(value)
    # Value can be 2 - per Device, 4 - Per user
    Via Group Policy
    Path: Computer Configuration -> Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Session Host -> Licensing
    Use the specified RD license servers = FQDN of server name
    Set the Remote Desktop licensing mode =
    Per User
    However, if issue persists, please provide detailed information and post the question in the
    Remote Desktop Services (Terminal Services) forum.
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Hi Richard,
    You need to uninstall Remote desktop session host feature. After removing it, you will default two connections which does not need to purchase RD CALs'.
    Thanks,
    Umesh.S.K

  • Macbook spontaneously goes into sleep mode and screen off mode

    Hi. My Macbook spontaneously goes into sleep mode and screen off mode with varying time between each instance. It usually goes for a few minutes or even hours without doing it and then will go through periods of fluctuation between the modes. I believe this to have started with a minor orange juice accident rather than it being anything software related.
    Any ideas as to how I might rectify the problem? Thanks very much in advance,
    Danny

    When you say it goes into sleep mode ...do you mean you actually see the white pulsing light?
    It may be that there is an application running (perhaps in the background) that is keeping your book awake. Printer software sometimes does this for example ...try logging out and seeing if it sleeps like that. If it does, then it very well may be a background process running.
    You may find some items in System Preferences/Accounts/Login Items that may be the culprit.

  • How to print Neat mode and Quick  & Draft Mode.

    Hi,
    How we can Print Neat Mode and Quick & Draft Mode. We are Using OKI DATA Micro LIne Dot Matrix Printers SAp B1 43 2005 B. Wethere we need to Install Drivers for Draft Mode.
    Please give me your Advise. if set Draft mode in Printers it automatically Changeing to another one how we can set in PLD's are Printers.
    Regds,
    Samapth Kumar Devunuri.

    Hi Samabth,
    please note that only specific matrix printers are supported for SAP Business One, for instance for 2007A those are: Citizen PROdot 300 and Epson FX-880.
    Please see the Administration Guide for this information.
    Rgds,
    Julius

  • AutoTrim & Include Subfolders From A Folder & Preserve Subfolder Structure & Auto Shut Down Computer - ALL In Batch Processing Mode And Match Volume Mode ?

    Hi! I salute you all!
    First of all I want to excuse my english (it's not my native language)!
    In 2014 we are dealing with thousands of files (video, audio, etc.), because of the present powerful technology, still... we are missing very important and useful parts for doing our jobs properly and very quickly!
    In this case is Adobe Audition too, in my oppinion!
    Adobe Audition is a great program, which help us to edit in many ways our audio files, but... unfortunatelly has major missing parts, which would be nice to be implemented as soon as possible!
    Some of them are are right below this line:
    1. AutoTrim (for removing silences from audio files, before and after)
    2. Include Subfolders From A Folder (when adding a folder for working with, we should have the possibillity to add its subfolders too)
    3. Preserve Subfolder Structure (when exporting a folder with its all subfolders, we should have the possibillity to export the exact structure like the original)
    4. Auto Shut Down Computer (when all the tasks/jobs are done, we should be able to auto close the program and auto shut down our desktop/laptop as well)
    When you will add these features which are so wanted, to have them all in Batch Processing mode and Match Volume mode as well, please?!
    Many other audio softwares have all of these "old" possibillities, like "GoldWave" for instance (I am not advertising it at all), but the Adobe Audition which is more complex...doesn't so far!
    I thank you all and I really wait for these very next future feature requests!
    Have a nice day!
    P.S.: Is this message/question read by Adobe stuff members (persons who can take decissions in this way) too, or only by us, the comunity members?!

    Hello Kavans,
    Thank you for the details of the issue you are experiencing with your MacBook Pro.  I recommend reviewing the following article for this issue:
    Mac OS X: Why your Mac might not sleep or stay in sleep mode
    http://support.apple.com/kb/HT1776
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • POP capabilities are gotten in authorization mode, and not transaction mode

    I am using Javamail in an email client that requires UIDL support for POP3 servers. There are some servers that return the UIDL capability only in transaction mode, not in authorization mode (eg. pop.aol.com). I am unable to connect to such servers once I upgraded to javamail 1.4.4, since it is now looking at the capabilities before executing the UIDL command. However, it gets the capabilities in authorization mode, and servers like the one above do not send the UIDL capability in this mode. If the capabilities were refreshed in transaction mode (once login was done), UIDL would be returned. This looks like a bug. Is there a workaround for this?

    This definitely looks like a bug in AOL's server, please report it to them.
    RFC 2449 says:
       A capability description MUST document in which states the capability
       is announced, and in which states the commands are valid.
       Capabilities available in the AUTHORIZATION state MUST be announced
       in both states.
       If a capability is announced in both states, but the argument might
       differ after authentication, this possibility MUST be stated in the
       capability description.
       (These requirements allow a client to issue only one CAPA command if
       it does not use any TRANSACTION-only capabilities, or any
       capabilities whose values may differ after authentication.)
    6.8.  UIDL capability
       CAPA tag:
           UIDL
       Announced states / possible differences:
           both / noThis says to me that the UIDL capability, if supported, must be announced in both states
    and must not change between states.
    You can set the session property mail.pop3.disablecapa to "true" to disable the use of the CAPA
    command, which will cause it to assume UIDL is supported.

  • Different display page layout in Display Layout mode and in Preview mode

    Hi everyone,
    can anybody help me to understand why it is different display page layout in
    Display Layout mode:
    I have 2 collumns
    and in Preview mode:
    I have only one column
    is there some option that I didn"t check in layout page properties?

    The only thing you can try, is to have a defined number of lines, where the last line only consists of a few words. That may(!) give enough room for different browser rendering. But there is definitely no guarantee.
    You may as well force the text frame to be converted to an image (Place one single character – point, space – out of a system font. This will force Muse to convert the text into an image – thus preventing txt reflow)

  • Phone rings even in silent mode and in vibrate mode

    Whenever I get a call on my xperia z1 compact it rings even when phone is in silent mode. I even tried to it in vibrate mode, still the phone rings. So every time I want my phone to be in silent mode I have to put the airplane mode on. It's very irritating. Plz help me.
    Solved!
    Go to Solution.

    Hi and welcome to the community! Since you're new please be sure that you have checked out our Discussion guidelines.
    Do you experience the same behaviour if you boot your phone into safe mode and uses it in silence/vibration mode?
    http://talk.sonymobile.com/t5/FAQ/How-to-boot-your-phone-into-safe-mode/m-p/348008
     - Official Sony Xperia Support Staff
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • Canon Vixia HV 40 HDV mode and HD 24f mode help

    Hi everyone,
    I just did a 2-camera shoot-- problem is, I shot in HDV mode, and my partner shot in HD24f.
    I am new to HD--how can I cut footage from both modes and not have them look different?
    Are there capture issues between the two modes? Thanks for your help!

    I'm not familiar with the cameras, but a quick look says both are HDV and likely either 30 or 24 fps.
    You should be able to Log and Capture using the appropriate HDV codec. Depending on the performance of your capture machine, you can either transcode on-the-fly to the ProRes codec of your choice or capture as HDV and subsequently transcode to ProRes codec of your choice.

  • Can a single Access Point support both bridge mode and Access Point mode at the same time

    Hi Guys
    Does anyone know which access point can work in both bridge mode and AP mode ?
    Cheers

    Well what are you trying to cover. If its really a large outdoor area, then look at the mesh AP. Those require a WLC. Autonomous or stand alone ap can perform bridging on one radio and client access on another. You can also look at AP that support indoor mesh that also controlled by a wlc. If your putting APs outdoors, then look at the outdoor mesh.
    Thanks,
    Scott Fella
    Sent from my iPhone

  • Frequent state between agressive mode and calming down mode

    I have a cisco 1841 router, on which ip inspection is enabled (IPS). The inspect max-incomplete for high is 500 and for low is 400. This is a gateway to an ISP (for internet) with 512K bandwidth. I get frequent transitions between aggressive and calming down modes, which is causing connection interruption. It was working fine, but it is happening currently. Can anybody help me with this?

    Hi, please review this doc for a discussion of IOS Firewall and IPS DoS protection configuration:
    http://www.cisco.com/en/US/prod/collateral/vpndevc/ps5708/ps5710/ps1018/prod_white_paper0900aecd804e5098.html

  • Retreiving and setting fields from pdf

    Hi Everyone,
    I hope that you may be able to help. I'm working on putting together an extention to my program to allow users to load a pdf file from a database, and also save what the user has entered into the pdf, into a database. I started out using the ActiveView sample app and have gotten it to load a seleted pdf into my app. I am currently trying to get the fields from the pdf. I am using the FormsAutomation sample as a reference. Here is some code :
    This funtion is used to open the pdf (just like in the ActiveView sample)
        Public Sub OpenChartFile(ByRef Filename As String, PatientId As String, ChartId As Integer, isNew As Boolean )
            Dim ok As Integer
            Dim fIndex As Short
            ' change mousepointer to an hourglass
            System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.WaitCursor
            ' change form's caption and display new text
            fIndex = FindFreeIndex()
            Document(fIndex) = New frmPDFView
            Document(fIndex).PatientId = PatientId
            Document(fIndex).ChartFileId = ChartId
            Document(fIndex).ChartFileName = Filename
            Document(fIndex).isNew = isNew
            Document(fIndex).Tag = fIndex
            Document(fIndex).Show()
            Document(fIndex).Text = UCase(Filename)
            Document(fIndex).MdiParent = gShell
            ' open the selected file
            AcroExchAVDoc(fIndex) = CreateObject("AcroExch.AVDoc")
            ok = AcroExchAVDoc(fIndex).OpenInWindowEx(Filename, Document(fIndex).Handle.ToInt32, AV_DOC_VIEW, True, 0, PDUseBookmarks, AVZoomFitWidth, 0, 0, 0)
            ' See IAC.bas and the Acrobat Viewer IAC Overview for information on the
            ' OpenInWindowEx open modes
            If Not ok Then
                MsgBox("Can't open file: " + Filename)
                Document(fIndex).Close()
                System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.Default
                Exit Sub
            End If
            FState(fIndex).Dirty = False
            Document(fIndex).Show()
            Document(fIndex).FillChart() 'Used to fill the pdf from the DB
            ' reset mouse pointer
            System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.Default
        End Sub
    Here is were I try and get the fields which is located in the PDFView form
        Public Sub FillChart()
            If Not pisNew then
                formApp = CreateObject("AFormAut.App")
                acroForm = formApp.Fields  '<-----******Errors here, "No document is currently open in the Acrobat Viewer"
                FillChartData( pPatientId,acroForm,pChartFileId, Me.tag )
            End If
        End Sub
    Here is where I plan to fill the pdf file (Located in a module file): I
    Public Sub FillChartData(PatientId As string, acroForm As AFORMAUTLib.Fields, ChartFileId As Integer, FormIndex As integer )
        Dim field As AFORMAUTLib.Field
    Try
        field = acroForm.Item("PatientName")
    Catch ex As Exception
        MsgBox(ex.Message, MsgBoxStyle.Critical, "ModChartSupport.FillChartData")
    End Try
    End Sub
    Is it possible to get the list of fields in the current setup using the ActiveView forms? If so, what am I missing? In the FormAutomation sample it seems to get the fields this way:
            avDoc = CreateObject("AcroExch.AVDoc")
            Dim file As String = System.Windows.Forms.Application.StartupPath & "\..\..\..\..\TestFiles\FormsAutomation.pdf"
            bOK = avDoc.Open(file, "Forms Automation Demo")
            'If everything was OK opening the PDF, we now instantiate the Forms Automation object.
            If (bOK) Then
                formApp = CreateObject("AFormAut.App")
                acroForm = formApp.Fields
            Else
                System.Runtime.InteropServices.Marshal.ReleaseComObject(avDoc)
                avDoc = Nothing
                MsgBox("Failed to open PDF Document. Aborting...")
                End
            End If
    The OpenChartFile function has already created the avDoc object for the form, so I think I'm alright there. What am I missing? Thanks for any help you can provide.

    So let's say you have the following fields in your file:
    Incident_Report
    ClientsName
    Date
    You can then add this code to the file's WillSave action (under Tools - JavaScript - Set Document Actions):
    var newFileName = this.getField("Incident_Report").valueAsString + "_" + this.getField("ClientsName").valueAsString + "_" + this.getField("Date").valueAsString + ".pdf";
    app.response("Please copy the text below and use it as the new file-name:","", newFileName)
    Of course, you can adjust the message to the user, and even the format of the file-name, although I've used the format you specified.

  • Problems using window.close() and setting fields

    Hi,
    I have two problems:
    First one is:
    I created a simple JSP with 'Save' and 'Exit' Buttons. In the Exit button on click event I invoked a function closeWindow, which calls teh window.close(). But on clicking Exit, the window does not close. Can anyone please tell me why.
    Second one is:
    The JSP also needs to get loaded with some values in the Textfields. Theses values are extracted from a text field using a Java class. I am able to see that these values are extracted from the text file and are loaded into Java vars, but when I am trying to set this value into a text field, it is NOT getting set.
    (filePathDetails is the instance of the class that extracts the text values)
    The entire code is posted below:
    <%@ page language="java" import="ftpScheduler.*" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
    <% FolderPathInfo filePathDetails = new FolderPathInfo(); %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>PATH DETAILS</title>
        <SCRIPT type="text/javascript">
         function setPaths(){
              with(document.pathDetails){
                   textAncPath1.value = <%=filePathDetails.localDirPath1 %>;
                   textAncPath2.value = <%=filePathDetails.localDirPath2 %>;
                   textArchivePath.value = <%=filePathDetails.archiveDirPath %>;
                   textLogPath.value = <%=filePathDetails.logFilePath %>;
         function closeWindow(){
              window.closeWindow();
        </SCRIPT>
    </head>
    <body bgcolor="#c0c0c0" onload="setPaths()">
         <FORM name="pathDetails" method="get" action="DetailsServlet.java">
         <FONT face="Arial" size="3"><STRONG>Directory Paths:</STRONG></FONT>
           <BR><BR>
           <TABLE border="0" cellspacing="" height="60" width="450"
                                                        style="FONT-SIZE: 10pt; FONT-FAMILY: Arial" align="center">
           <COLGROUP>
           <COL width="45%">
           <COL width="55%">
           </COLGROUP>
           <TR>
           <TD><LABEL>Ancillary Transmit Path1 :</LABEL></TD>
           <TD><INPUT type="text" name="textAncPath1" width="290" maxlength="350"/></TD>
           </TR>
           <TR>
           <TD><LABEL>Ancillary Transmit Path2 :</LABEL></TD>
           <TD><INPUT type="text" name="textAncPath2" width="290" maxlength="350"/></TD>
           </TR>
           <TR>
           <TD><LABEL>Archive Path :</LABEL></TD>
           <TD><INPUT type="text" name="textArchivePath" width="290" maxlength="350"/></TD>
           </TR>
           <TR>
           <TD><LABEL>Log File Path :</LABEL></TD>
           <TD><INPUT type="text" name="textLogPath" width="290" maxlength="350"/></TD>
           </TR>
           </TABLE>
           <P align="center">
              <INPUT type="submit" name="buttonSave" value="Save">
              <INPUT type="button" name="buttonExit" value=" Exit " onclick="closeWindow()">
              <BR>
           </P>
           </FORM>
    </body>
    </html>Please help me.
    Thanks in advance.

    Try the following..
    For problem 1:
    Use window.close() instead of window.closeWindow().
    For the second problem
    don't call the function setPaths() at onload. Rather
    call the function after the page is loaded. You can
    try like this.
    If it doesn't work then check whether the browser is
    giving any JavaScript error message.
    <SCRIPT type="text/javascript">
    setPaths() ;
         function setPaths(){
         alert(document.pathDetails.element[0].value);
    document.pathDetails.element[0].value =
    = <%=filePathDetails.localDirPath1 %>;
              alert(document.pathDetails.element[0].value);
              with(document.pathDetails){
    textAncPath1.value =
    e = <%=filePathDetails.localDirPath1 %>;
    textAncPath2.value =
    e = <%=filePathDetails.localDirPath2 %>;
    textArchivePath.value =
    e = <%=filePathDetails.archiveDirPath %>;
    textLogPath.value = <%=filePathDetails.logFilePath
    ath %>;
         function closeWindow(){
              window.closeWindow();
    </SCRIPT>Hi,
    Actually I did try window.close(), but I still am not able to close the current window.
    And as for the problem of setting up the field values, sorry the given solution doesnt seem to work. :-(..
    I have pasted the entire code, I dont know where teh flaw is. Please review the same and let me know.
    Your help is very much appreciated.
    <%@ page language="java" import="ftpScheduler.*" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
    <% FolderPathInfo filePathDetails = new FolderPathInfo();%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>PATH DETAILS</title>
         <SCRIPT type="text/javascript">
         function setPaths(){
              document.pathDetails.textAncPath1.value = "Anything";
              with(document.pathDetails){
                   textAncPath1.value = <%=filePathDetails.localDirPath1%>;
                   textAncPath2.value = <%=filePathDetails.localDirPath2%>;
                   textArchivePath.value = <%=filePathDetails.archiveDirPath%>;
                   textLogPath.value = <%=filePathDetails.logFilePath%>;
         function exitWindow(){
              window.close();
        </SCRIPT>
    </head>
    <body bgcolor="#c0c0c0">
         <FORM name="pathDetails" method="get" action="/FTPSchedulerApp/ftpScheduler/DetailsServlet.java">
         <FONT face="Arial" size="3"><STRONG>Directory Paths:</STRONG></FONT>
           <BR><BR>
           <TABLE name="tempTable" border="0" cellspacing="" height="60" width="450" style="FONT-SIZE: 10pt; FONT-FAMILY: Arial" align="center">
           <COLGROUP>
           <COL width="45%">
           <COL width="55%">
           </COLGROUP>
           <TR>
           <TD><LABEL>Ancillary Transmit Path1 :</LABEL></TD>
           <TD><INPUT type="text" name="textAncPath1" width="290" maxlength="350"/></TD>
           </TR>
           <TR>
           <TD><LABEL>Ancillary Transmit Path2 :</LABEL></TD>
           <TD><INPUT type="text" name="textAncPath2" width="290" maxlength="350"/></TD>
           </TR>
           <TR>
           <TD><LABEL>Archive Path :</LABEL></TD>
           <TD><INPUT type="text" name="textArchivePath" width="290" maxlength="350"/></TD>
           </TR>
           <TR>
           <TD><LABEL>Log File Path :</LABEL></TD>
           <TD><INPUT type="text" name="textLogPath" width="290" maxlength="350"/></TD>
           </TR>
           </TABLE>
           <div align="center">
              <INPUT type="submit" name="buttonSave" value="Save"/>
              <input type="reset" name="buttonReset" value="Reset" onclick="setPaths()"/>
              <button name="buttonExit" onclick="exitWindow()"> Exit </button>
              <BR>
           </div>
           </FORM>
    </body>
    </html>

Maybe you are looking for

  • Master on a View and Detail on a Table

    I have a master form and a detail tabular form attached to it - together, on the same page. Form is based on a view and the tab form is based on a table. Whenever an update needs to be done, then on the tabular form - detail record. If I try to creat

  • How can I get Juice 2.2 to run under Mavericks?

    Trying to install/use Juice 2.2 on a 2012 MacBook Pro w/16GB RAM and a Micron 980GB SSD. Juice runs perfectly on my 2010 Mac Mini running Snow Leopard, but on Mavericks it appears to install but won't run. Anyone out there have a solution?

  • Upload of chart of accounts at coa and company code level

    dear all can you tell me how it is best to upload a new chart of accounts both as a chart of accounts level and company code. i am planning to use lsmw but shoud i upload chart of accounts first then company code level? with many thanks Peter

  • After completing workflow execution, it was disappeared

    Hi Experts, I am using MDM 7.1.02.115 Version , I have problem with workflow, I have created workflow and i have lanuched it after workflow executed it completed all the steps. afte completing all the steps I am not able to see the status of it as co

  • Clicking on "click here to activate the adobe flash plugin" does not work

    "click here to activate the adobe flash plugin" clicking on this does not do anything. I am trying to get away from the WaterFox 'click to use' interface which is a pain in the neck as hardly anything works today. Now I have a similar problem in Fire