Priocntl system call returning values not in man page

If you look at the man page for priocntl(2) it says that pc_clname in pcinfo_t will only contain the following values:
RT for realtime
TS for time-share
FX for fixed-priority
but I've also seen the following returned
FSS presumably for Fair share
IA presumable for Interactive
Is this just a doc bug or is priocntl not supposed to be passing these back. The way priocntl(1) and (2) read I was inferring that the difference was somewhat on purpose in that Interactive mode is just a special Time Share mode and thus would show up as TS when queried using priocntl(2).
You may ask who cares but we use a third party class library (RW) and the version of the code we have, which I will admit is old, only handles TS and RT coming back from priocntl, exceptions when IA comes back.
On a related note, does anyone know if a "workstation" machine will somehow default to Interactive mode for some processes, namely the ones not started at boot time? On a server box, e450, if you run 'priocntl -d -i all. All the processes show up under Time Share but if I run the same
command on a workstation box, sparc 5, I get that some are in Time Share and others are in Interactive.
Thanks.

Or you can use one of these in the JSP page:
<jsp:usebean id="var_name" class="class_name" scope="request">Only thing to remember is that if it can't find the variable name then it will call the default constructor to create a new instance, and if that doesn't exist then you will get a runtime error in your JSP page which looks pretty ugly.

Similar Messages

  • LOV does not return value to the base page sometimes

    Hi,
    I have created messageLOV type items. These LOVs do return value to the base page usually. We have a user in Uruguay who is trying to use the page which has the LOVs. He says the LOV takes a long time to return to the main page after he clicks on quick select and also the value does not get populated in the main page.
    We have not been facing any such problem here in India. The LOV has been tested rigorously with no issues as such.
    Can you please suggest a reason why such a problem is occuring? Expecting your replies soon
    Thanks,
    Priya

    Thiyaga, did you read the devguide or the tutorial ?
    Can you please give me the inputs about the creation of LOV and it requires how many lov mappings as mandatory?
    This is there in the devguideHow to identify the mapping fields of an LOV which is already existing in the base page to reproduce in a similar way and need to do a customization on top of it ?
    Open the page XML and you can find the LOV mappings.Tapash

  • How to get the return values from a web page

    Hi all :
       how to get the return values from a web page ?  I mean how pass values betwen webflow and web page ?
    thank you very much
    Edited by: jingying Sony on Apr 15, 2010 6:15 AM
    Edited by: jingying Sony on Apr 15, 2010 6:18 AM

    Hi,
    What kind of web page do you have? Do you have possibility to for example make RFCs? Then you could trigger events (with parameters that could "return" the values) and the workflow could react to those events. For example your task can have terminating events.
    Regards,
    Karri

  • System.currenttimemillis() returns value ..can't decode it

    Does System.currenttimemillis() return milli seconds elapsed after Jan 1, 1970... does it have no relation with our current time...
    When i did it and print it out .. my millis were the last 3 digits and secs were the 2 dgits before miiliseconds..
    eg: XXXXXXXssmmm
    or was it just a mere coincidence...very confused..

    I was always taught to use Calendar to access individual fields (and DateFormats for formatting and parsings). One reason you aren't supposed to just take the timestamp value (System.currentTimeMillis()) is that there are complications: for example, because of Earth's wobbly orbit there are things called "leap seconds" that may be added to years, so you can't assume each day consists of exactly 24*60*60 seconds (even ignoring DST). But then I wrote this code:
    import java.text.*;
    import java.util.*;
    public class Currently {
        public static void main(String[] args) {
            long now = System.currentTimeMillis();
            Date date = new Date(now);
            SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS Z");
            TimeZone tz = TimeZone.getTimeZone("GMT");
            sdf.setTimeZone(tz);
            String output = sdf.format(date);
            System.out.format("%d --> %s%n", now, output);
            long millis = now % 1000;
            now /= 1000;
            long seconds = now % 60;
            now /= 60;
            long minutes = now % 60;
            now /= 60;
            long hours = now % 24;
            System.out.format("Directly from timestamp %02d:%02d:%02d.%03d%n", hours, minutes, seconds, millis);
    }I'm not suggesting one abandon Calendar and DateFormat, but where are the leap seconds since 1970?

  • The LOV modal window could not return value to the base page

    when practicing the "create1" task in tutorial, met an issue.
    when create an employee, manageName is a messageLovInput and managerID is a messageTextInput.
    The issue is the LOV modal window could not return value to the mangerName, but can return to managerID .
    If I remove the data boud porperties of the managerName (the bc4j porperties of view name-EmpFullVO and view attribute-MgrName), the lov works fine.
    What is the reason?

    James I would suggest to read the LOV topic in OAF developers' guide. Lov mappings are responsible for bringing pop up values to base page in LOV.
    --Mukul                                                                                                                                                                                                                                                                                                                                                   

  • FDM Lookup function returning value not = the current POV

    Is anyone having problems returning values for periods other than current POV.
    "The FDM Lookup function is used to return the value of any source account that resides in FDM.
    The function can be used within a logic function or a logic expression."
    Presently I can only return value in current POV.
    If anyone can return a source account value from a period other than the current POV let me know.
    Tom Peera
    Syntax
    | , , 02/28/2011 , 1535-000-000 |

    Here is the dirty fix, I'm heading off to sleep.
    If the function CurrentAdId doesn't return a number, then
    this will ensure it returns 0 (prevents your error, may not display
    an ad):
    <CFFUNCTION
    NAME="CurrentAdId"
    ACCESS="Private"
    RETURNTYPE="numeric"
    HINT="For internal use. Returns the Id of the current ad in
    rotation.">
    <!--- Return the adId from the current row of the
    GetAdIds query --->
    <cfset var returnVal = ListGetAt(THIS.AdList,
    THIS.CurrentListPos)>
    <cfif NOT IsNumeric(returnVal)>
    <cfset returnVal = 0>
    </cfif>
    <CFRETURN returnVal>
    </CFFUNCTION>

  • How to return values from a BSP page to Javascript

    Hi All,
    I want to call a BSP page which reads a single value from a table and returns that value I want the Javascript in the HTML code to get the value from the BSP page.
    Can you kindly let me know how I can return the value from the BSP page to JavaScript.
    Kindly please provide me a simple code of a BSP page and the Javascript
    Thanks
    Karen

    Hi,
    you need 3 elements to make the javascript code read the value in any field in the table: table´s name, line and column. This is how your code could look like:
    script language="javascript>
       var row = 0;
       function display(){
          row = row + 1;
          campo = 'tabla1_' + row + '_4';                 " <-- table, line, column
          valor = document.getElementById(campo).value;
    </script>
    ROW works as a counter. You have in variable valor the value of the field and can do with it what you want, perhaps display it with ALERT. I am reading the values from field 1 to n in column 4 in table TABLA1. Pay attention to the '_' in the concatenation of field´s name. The table in my BSP is very simple:
    <htmlb:tableView id                = "tabla1"
                           table             = "<%= mytable %>"
                           width             = "100%"
                           allRowsEditable   = "X"/>
    and somewhere I must call function display in my javascript code:
    <htmlb:button  id="boton" text="Texto aqui" onClientClick="display()" />
    So, give it a try.

  • Return values not seen in previous records

    I'd like to be able to return Code values below that have not occurred previously (ordered by ID).  I have a feeling it's going to involve a ROW_NUMBER() and CTE, but I can't quite put my finger on it.  See the example below.
    DROP TABLE #codes
    CREATE TABLE #codes (ID INT NOT NULL,
    Code VARCHAR(20) NOT NULL)
    ALTER TABLE #codes
    ADD CONSTRAINT pk_codes PRIMARY KEY (ID, Code)
    INSERT INTO #codes (ID,
    Code)
    VALUES
    (1, 'A'),
    (1, 'B'),
    (1, 'C'),
    (1, 'D'),
    (1, 'F'),
    (2, 'A'),
    (2, 'B'),
    (2, 'C'),
    (2, 'D'),
    (2, 'E'),-- not seen in #1 - return this record
    (3, 'B'),
    (3, 'C'),
    (3, 'D'),
    (3, 'E'),
    (3, 'F'),-- not seen in #2 but was seen in #1 so no need to return this record
    (3, 'G') -- not seen in #1 or #2 - return this record
    SELECT *
    FROM #codes
    ORDER BY ID, Code
    I need a query to return (2, 'E') and (3, 'G') because they did not occur in ID's prior to them.  Hope this makes sense.  Any help?
    Thanks!

    In case you have to consider any row that is present only for ID = 1 like (1, 'Z'):
    CREATE TABLE #codes (ID INT NOT NULL,
    Code VARCHAR(20) NOT NULL)
    ALTER TABLE #codes
    ADD CONSTRAINT pk_codes PRIMARY KEY (ID, Code)
    INSERT INTO #codes (ID,
    Code)
    VALUES
    (1, 'A'),
    (1, 'B'),
    (1, 'C'),
    (1, 'D'),
    (1, 'F'),
    (1, 'Z'),--You may need this value because it is not present 2 and 3 below
    (2, 'A'),
    (2, 'B'),
    (2, 'C'),
    (2, 'D'),
    (2, 'E'),-- not seen in #1 - return this record
    (3, 'B'),
    (3, 'C'),
    (3, 'D'),
    (3, 'E'),
    (3, 'F'),-- not seen in #2 but was seen in #1 so no need to return this record
    (3, 'G') -- not seen in #1 or #2 - return this record
    ;WITH CTE
    AS
    SELECT *, ROW_NUMBER() OVER (PARTITION BY Code ORDER BY id) rn
    FROM #codes
    SELECT id, Code
    FROM CTE
    WHERE rn = 1 AND ID <> 1
    --In case you need any row that is part of ID = 1 only: use with below code
    UNION ALL
    SELECT CTE.id, CTE.Code
    FROM CTE
    JOIN
    SELECT CODE FROM #codes WHERE ID = 1
    EXCEPT
    SELECT CODE FROM #codes WHERE ID <> 1
    ) T ON CTE.CODE = T.CODE AND CTE.ID = 1
    If this post answers your query, please click "Mark As Answer" or "Vote as Helpful".

  • Drop-down list formattedValue returning value, not text

    Hi all,
    I'm having a problem with a drop-down list. I can get the information I want in Reader 9, but we only have Reader 7.0.5 distributed at the moment.
    I need to pull out its text value and its specified value, but everything I try just pulls out the specified value.
    In Reader 9 formattedValue gives me the text and rawValue will give me the specified value.
    Anyone able to help me please?
    Thanks,
    Tom

    Tom:
    It's possible, but complicated. You need to look into the field definition where we store the listbox contents. Then you can correlate the display item from the bound item. I've done this before in another context. I've appended the script I used.
    John Brinkman
    http://blogs.adobe.com/formfeed
    function getDisplayValue(vField)
    var vBoundItems = saveItems(vField);
    var vDisplayItems = dispItems(vField);
    if (vBoundItems == null || vDisplayItems == null)
    return vField.rawValue;
    for (var i=0; i<vBoundItems.length; i++)
    if (vBoundItems.item(i).value == A.rawValue)
    return vDisplayItems.item(i).value;
    return "";
    * saveItems(vField)
    * Get the list of items that are bound to the data
    * @param vField -- the list field
    function saveItems(vField)
    for (var i=0; i<vField.nodes.length; i++)
    var vChild = vField.nodes.item(i);
    if (vChild.className == "items" && vChild.save == "1")
    return vChild.nodes;
    return null;
    * dispItems(vField)
    * Get the list of display items
    * @param vField -- the list field
    function dispItems(vField)
    <items>
    <text>aaa</text>
    </items>
    <items save="1" presence="hidden">
    <text>111</text>
    </items>
    for (var i=0; i<vField.nodes.length; i++)
    var vChild = vField.nodes.item(i);
    if (vChild.className == "items" && vChild.save != "1")
    return vChild.nodes;
    return null;

  • XI JDBC adapter - Can it be called & return values to XI ?

    Want to make an SQL request to database table and ruturn data back to XI.
    Flow:   SAP BW--rfc-> XI -jdbc request for data->  SAP BUS ONE
               SAP BW<----rfc--- XI  - jdbc return results--
      SAP BUS ONE
    1. XI-- request -- from> SQL Table  Select * from Sap_B1 where date > payload_date.
    2. Based on results pass those records back to XI to be mapped to inbound RFC for BW.
    Does XI JDBC provide this capability or is there other options?

    hey
    yes,receiver JDBC is capable of handling both request and response in a single interface so you can use it in your scenario without any problem.
    if you want to go with stored procedure way then the stored proc. needs to be on the database and the JDBC receiver communication channel from XI will pass data to it and get back response from it.get in touch with database guys to write stored proc.
    /people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures
    if you dont want stored proc,then you can give the conditions in the receiver message type itself,this will query the database and will send back the response.
    /people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
    both approaches are feasible,you just need to decide upon which one is more suited for u
    Thanx
    Aamir
    Message was edited by:
            Aamir Suhail

  • Crystal Reports For Eclipse - Multi-values not showing on page..

    Tried two different ways to set params, but to no avail.  Values seems to be set, but only one value appears on the report.The value is updated, so not an old value or anything.
    Also if I look at the values I can see the values are set!  The Field is set to multi=true and the height is big enough to display lots of date grow=true.
    <%@page import="com.businessobjects.samples.JRCHelperSample" %>
    <%@page import="com.crystaldecisions.report.web.viewer.CrystalReportViewer" %>
    <%@page import="com.crystaldecisions.reports.sdk.ReportClientDocument" %>
    <%@page import="com.crystaldecisions.sdk.occa.report.application.OpenReportOptions" %>
    <%@page import="com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase" %>
    <%@page import="com.crystaldecisions.sdk.occa.report.reportsource.IReportSource" %>
    <%@page import="com.crystaldecisions.sdk.occa.report.data.Fields" %>
    <%@page import="com.crystaldecisions.sdk.occa.report.data.ParameterField" %>
    <%@page import="com.crystaldecisions.sdk.occa.report.data.ParameterFieldDiscreteValue" %>
    <%@page import="com.crystaldecisions.sdk.occa.report.data.Values" %>
    <%@page import="com.crystaldecisions.reports.sdk.*" %>
    <%@page import="com.crystaldecisions.sdk.occa.report.lib.*" %>
    <%@page import="com.crystaldecisions.sdk.occa.report.data.*" %>
    <%
         // This sample code calls methods from the JRCHelperSample class, which
         // contains examples of how to use the BusinessObjects APIs. You are free to
         // modify and distribute the source code contained in the JRCHelperSample class.
         try {
              String reportName = "Report1.rpt";
              ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);
              if (clientDoc == null) {
                   // Report can be opened from the relative location specified in the CRConfig.xml, or the report location
                   // tag can be removed to open the reports as Java resources or using an absolute path
                   // (absolute path not recommended for Web applications).
                   clientDoc = new ReportClientDocument();
                   // Open report
                   clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);
                   // ****** BEGIN LOGON DATASOURCE SNIPPET **************** 
                        //     Database username and password
                        String connectString = "jdbc:oracle:thin:@localhost:1521:XE";
                        String driverName = "oracle.jdbc.OracleDriver";
                        String JNDIName = "";
                        String userName = "darren";
                        String password = "darren";
                        // logon to database
                        //JRCHelperSample.logonDataSource(clientDoc, userName, password);
                        // Switch all tables on the main report and sub reports
                        JRCHelperSample.changeDataSource(clientDoc, userName, password, connectString, driverName, JNDIName);
                   // ****** END LOGON DATASOURCE SNIPPET ****************           
                   // Store the report document in session
                   session.setAttribute(reportName, clientDoc);
                        // Create the CrystalReportViewer object
                        CrystalReportViewer viewer = new CrystalReportViewer();
                        //     set the reportsource property of the viewer
                        IReportSource reportSource = clientDoc.getReportSource();                    
                        viewer.setReportSource(reportSource);
                        // set viewer attributes
                        viewer.setOwnPage(true);
                        viewer.setOwnForm(true);
                        // MyParameter
                        String paramName = "MyParameter";
                        String theValue1 = "Hello";
                        String theValue2 = " World!";
    // Method 2
                        //We will be using the ParameterFieldController quite a bit through-out the rest of this function.
                        ParameterFieldController paramFieldController = clientDoc.getDataDefController().getParameterFieldController();
                        // MULTI-VALUE DISCRETE PARAMETERS.
                        Object[] multiVals = {theValue1, theValue2};
                        // sReportName - the report that contains the specified parameter field.
                        // sFieldName - the parameter field name.
                        // newValue - the collection of values to be stored in the parameter field.
                        paramFieldController.setCurrentValues("", paramName, multiVals);
    // Method 1
                        Values values = new Values();
                        values.add(theValue1);
                        values.add(theValue2);
                        ParameterField paramField = new ParameterField();
                        paramField.setName(paramName);
                        paramField.setAllowMultiValue(true);
                        paramField.setAllowCustomCurrentValues(true);
                        paramField.setCurrentValues(values);
                        Fields parameterFields = new Fields();
                        parameterFields.add(paramField);
                        viewer.setParameterFields(parameterFields);
                        viewer.setEnableParameterPrompt(true);
    // Show parameter values to console          
                        Fields fields = viewer.getParameterFields();
                           for (int i = 0; i < fields.size(); i++) {
                           ParameterField pf = (ParameterField)fields.get(i);
                           Values v = pf.getCurrentValues();
                           if (v.isEmpty()) {
                                System.out.println(pf.getName());
                           } else {
                                System.out.println("v.size(): " + v.size());
                                for (int j = 0; j < v.size(); j++) {
                                     ParameterFieldDiscreteValue pfdv = (ParameterFieldDiscreteValue)v.get(j);
                                    System.out.println(pf.getName() + " - " + pfdv.getValue());     
                        // Apply the viewer preference attributes
                        viewer.refresh();
                        // Process the report
                        viewer.processHttpRequest(request, response, application, null);
    Thanks in advance!

    This is not a support site but a community forum. For direct help purchase a case on line

  • Returning Values to a JSP Page

    I have a servlet that recives data from a form using POST. Once I've processed the data I need to pass my new data (and some of the original data) to a new JSP page.
    This was originally done using response.sendRedirect with all the data held within a parameter string.
    We've now been told that we've not to pass any data via URL's, Is there a way to secruley pass data back to a jsp page.
    I thought about using:-
    protected void transferToRD(String target, HttpServlet servlet, HttpServletRequest req, HttpServletResponse res)
    try
    RequestDispatcher rd = servlet.getServletContext().getRequestDispatcher(target);
    rd.forward(req, res);
    catch (Exception exc)
    exc.printStackTrace();
    But I don;t have a servlet to pass in as a parameter
    Any help would be appreciated

    Or you can use one of these in the JSP page:
    <jsp:usebean id="var_name" class="class_name" scope="request">Only thing to remember is that if it can't find the variable name then it will call the default constructor to create a new instance, and if that doesn't exist then you will get a runtime error in your JSP page which looks pretty ugly.

  • Visual Web Part Value not Selecting in Page Redirection

     Hi..
     I have a Visual Web Part having DropDown Controls and adding Webpart in 3 Web Part Pages .. When we redirect from 1 page to another, the  selected dropdown values are not coming in 2nd and 3rd page..
    Ravindranath

    You have added visual web part in three different pages, drop down value will not be selected when you redirect to page 2 or page 3 because they are separate pages and a separate web parts added on each page. Each page has a separate page life cycle.
    You can only set dropdown value by passing query string parameter.
    Adnan Amin MCT, SharePoint Architect | If you find this post useful kindly please mark it as an answer.

  • Lookup API - SPRAS value returned is not correct

    Hi All
    We are using the lookup API of XI to make a lookup in the SAP system and return values such as LAND1, and SPRAS. SPRAS has 2 kindoff value, one is the display value which is a 2 character value, and then the actual value which is a single character value. Internally a conversion routine takes care of converting this 2 character value to single character. For instance the countrykey of Poland is PL and its display SPRAS value is PL and actual value is L.
    While unit testing we get the correct value of 'L', but when we do the integration testing we get the display value of 'PL'. This is a problem we face when we use the Lookup API. But when I use a JCO call to make a lookup, I get the correct value being returned.
    This is a weird behavior, I am not sure if I overlooked something while using the lookup API. I even tried changing the function module to return a single char value, but still the wrong value is being returned with the lookup API. Could it be an issue with the Lookup API ??
    I used the code given in the following weblog,
    /people/francesco.bersani/blog/2007/03/05/data-lookup-optimized
    Any suggestion friends.
    regards
    Sameer

    Sameer,
    Using a single Function Module should not be an issue at all.
    Maybe there is some problem with,
    A) Either the logic of the Function Module written in R3
    B) Logic of your LookUp Code.
    It would be very difficult to say why you are facing this issue without looking at the code and the RFC but the way I see look up's if the FM code is valid and the Lookup Code is as per the corresponding Logic there should be no issue at all.
    I would suggest that you use the same test data that is causing the issue to test the FM in your R3 system and check what it returns . Is the output as expected. If yes, then time to look into your LookUP code.
    Add Trace statements and use this for debugging. Have found that they really help in real time to understand what is going wrong and why.
    Regards
    Bhavesh
    PS : Thanks for those encouraging words . It is also nice to see detailed questions on SDN that make life easy for everyone.

  • NoClassDefFoundError  running jsf page rendering datacontrol return value

    Hi all,
    For a fusion web application, I have created a java file and converted it to a data control .The file has the code to establish the connection to an external SES endpoint and fetching the results.Dragged the return value to a jsf page part of a bounded task flow. The project has the Oracle SOAP jar in the classpath.Still when I run the jsf page ,I get the java.lang.NoClassDefFoundError: oracle/soap/transport/http/OracleSOAPHTTPConnection exception in the console.Any ideas.
    Thanks
    Regards
    Deepak

    I guess I wondering whether issue lies with
    1. a "com.sun.faces.util.DebugUtil" that doesn't perform correctly...
    OR,
    2. a "rule" that says the component tree will not support multiple panelGrids on the same page.
    [For whatever reason, in the above example, "DebugUtil" does not appear to "see" the "id's" of the last panelGrid (i.e.,  id="panelGrid3"),  component or  its nested component  (i.e.,  id="panelGroup3" )]
    NOTE: I have neither been successful in referencing "panelGrid3" and "panelGroup3" using "FacesContext.getCurrentInstance().findComponet("panelGrid3") and "FacesContext.getCurrentInstance().findComponet("panelGroup3"), respectively.
    Could someone let me know? (My apologies if the answer is obvious ... I admit I am relatively new to JSF.)
    Thanks again!!!

Maybe you are looking for

  • Customer exit variable output error

    Hi gurus, I have created one customer exit variable. in the selection screen i am giving multiple plant and material value, my code is working for sigle plant and single material. when i have taken multiple value. i am getting error message error is

  • COPA - New value field defined as "Last Value"

    Hi experts: We have defined a new value field that it is integrated as a 'LAST VALUE' instead of 'SUM'. However, when posting different entries the amount continue to sum instead of showing the last value. The new value field has the same behaviour a

  • Unable to update flash player on Mac OS 10.6.8 with Firefox 22.0

    When attempting to update, or run the uninstaller as suggested by the FAQ, the follow message pops up. "Adobe Reader could not open 'uninstall_flash_player_osx.dmg' because it is either not a supported file type or because the file has been damaged (

  • Problem with printing in Snow Leopard

    Since upgrading to 10.6 I cannot select Duplex Printing for my Canon iP5200R from Mail, Safari or Microsoft Office. I can select Duplex from Adobe Photoshop Elements, Reader etc., Pages and Preview. I have downloaded the latest drivers. To print from

  • CSA and okclient.exe error during logons

    Hi, I am getting this error everytime we login to a W2K3 R2 SP2 system. I have tried the following: -Uninstall and re-install the CSA client -Checked Windows Services for the CSA service logon properties and it is set to local system account -Disbale