Restrict the update of the data in the report as a table...

Hello
I have a tabular report in Oracle APEX 4.0 based on a db table in which some columns (Textarea element and text element) after inserted must be restricted (view only). Could someone help me how this can be achieved. While trying to create a tabular report if I give as view only; the user is unable to grasp the data itself. All entries will be very appreciated.


Thank you
Ahmed

I suggest that you do with APEX_ITEMS: http://docs.oracle.com/cd/E14373_01/apirefs.32/e13369/apex_item.htm

You will have to work with collections to pull this off. Load all your data into a collection of apex: http://docs.oracle.com/cd/E17556_01/doc/apirefs.40/e15519/apex_collection.htm

Now, you can create a simple select statement

select decode(c001, null, apex_item.text(1, c002), c002)
from apex_collections
where collection_name = your_collection;

C001 corresponding to the primary key that is inside your table and c002 the value you want to insert.

You must update c001 with the primary key from the moment that the row will be exist. Then just decode function will display it so it is no longer editable.

Add lines to the collection will add new lines to your tabular form. Clear lines of the collection deletes the lines in the tabular presentation.

If you are a beginner with this I suggest that you submit to the page whenever you click an insert/update/delete button.

Concerning

Nico

Tags: Database

Similar Questions

  • Generate the report using two tables

    Hello
    I have two tables: -.

    1 THE NAME OF THE TABLE:-EMP_LEAVE
    EMP_ID NUMBER;
    DATE DATE;
    LEAVE_TYPE VARCHAR2 (15)


    2 TABLE NAME:-EMP_ATT
    EMP_ID NUMBER;
    DATE OF ATT_DATE;
    ATT_STATUS VARCHAR2 (10);

    HERE'S
    Type of leave are SL, PL, CL
    ATT_STATUS contains only (P)

    ATT_STATUS column contains the value as this student (p) only and LEAVE_TYPE column contains the value as sickleave (SL), medicalleave (ML), Paidleave (PL).

    I see the value in the report as given form below the monthly or weekly or annual basis

    EmpID P SL ML PL
    1 24 1 2 3

    I try to create it but not give the accurate result.


    Thank you
    Nisha

    Hello

    You must use something like;

    WHERE SESION = :P168_SESSION AND TRIM(TO_CHAR(ATT_DATE,'MON'))=:P168_MONTH
    

    Note that fact P168 refers to the elements on my page - if you use another page, make sure that you change: P168_SESSION and: P168_MONTH for names that you use.

    I just updated my test page to add to the filter of the month: [http://apex.oracle.com/pls/otn/f?p=267:168]

    The SQL is now:

    select EMP_ID "Employee ID",
    SUM(DECODE(LEAVE_TYPE,'AL',1,0))"Annual Leave",
    SUM(DECODE(LEAVE_TYPE,'CL',1,0))"casual Leave ",
    SUM(DECODE(LEAVE_TYPE,'PL',1,0))"Paid Leave",
    SUM(DECODE(LEAVE_TYPE,'ML',1,0))"Medical Leave",
    SUM(DECODE(LEAVE_TYPE,'SL',1,0))"Sick Leave ",
    SUM(DECODE(LEAVE_TYPE,'MTL',1,0))"Maternity Leave",
    SUM(DECODE(LEAVE_TYPE,'WL',1,0))"Wedding Leave",
    SUM(DECODE(ATT_STATUS,'P',1,0))" Present",
    SUM(CASE WHEN ATT_STATUS in ('P') then 1 else 0 end) "TotalP",
    SUM(CASE WHEN LEAVE_TYPE in ('AL','CL','PL','ML','SL','MTL','WL') then 1 else 0 end) "Total"
    from (SELECT EMP_ID,
    ATT_DATE,
    ATT_STATUS,
    NULL LEAVE_TYPE,
    NULL LEAVE_CATEGORY,
    WORK_DURATION,
    LEAVE_SESSION,
    IN_TIME,
    OUT_TIME,
    SESION
    FROM EMPLOYEE_ATTENDANCE
    UNION ALL
    SELECT EMP_ID,
    DTE ATT_DATE,
    NULL ATT_STATUS,
    LEAVE_TYPE,
    LEAVE_CATEGORY,
    NULL WORK_DURATION,
    NULL LEAVE_SESSION,
    NULL IN_TIME,
    NULL OUT_TIME,
    SESION
    FROM EMPLOYEE_LEAVE)
    WHERE SESION = :P168_SESSION
    AND TO_CHAR(ATT_DATE,'MON') = :P168_MONTH
    GROUP BY EMP_ID
    ORDER BY EMP_ID
    

    Andy

  • Column of buttons in the report as a table radio

    Hello world
    I have a tabular report. I wanted to have the option button and check box in part of the field. Please take a look at my sample application.

    http://Apex.Oracle.com/pls/OTN/

    Workspace == > SHYIN
    username == > SHY
    password == > shy


    Application ID: 29879 - TabularForm

    On page 2 of the form details, I want to box in the column key contact person and the box in the status column. I would be grateful any suggession. Thank you.

    SHY

    Hello

    OK - now have an eye on your page.

    I made a few changes:

    1 - update SQL tabular form for:

    SELECT
    APEX_ITEM.HIDDEN(1, SEQ_ID) || APEX_ITEM.HIDDEN(2, C001) || APEX_ITEM.RADIOGROUP(3, C001, NULL, NULL, 'onclick="javascript:$x(''P2_SELECTED_ID'').value=' || C001 || '"') PRIMARY_CONTACT,
    apex_item.text(4,c002) name,
    apex_item.text(5,c004) phone,
    APEX_ITEM.HIDDEN(6, C006) || apex_item.text(7,c005) STATUS
    from apex_collections
    where collection_name = 'C_CONTACT_INFO'
    

    So all of the HIDDEN items are concatenated before the displayable items.

    2 - update your Update_Collections process to be unconditional. This is necessary because the page can be submitted by one of the following three ways - Save, update, and add a line - and the collection should be updated for all three

    3 - P2_SELECTED_ID modified to remove settings from the source

    4 created a process page (PL/SQL, On Load - before header):

    DECLARE
     vID NUMBER;
    BEGIN
     SELECT MIN(ID) INTO vID FROM CONTACTS WHERE PRIMARY_CONTACT = 'Y' AND CUSTOMER_ID = :P2_CUSTOMER_ID;
     IF vID IS NULL THEN
      SELECT MIN(ID) INTO vID FROM CONTACTS WHERE CUSTOMER_ID = :P2_CUSTOMER_ID;
      IF vID IS NOT NULL THEN
       UPDATE CONTACTS SET PRIMARY_CONTACT = 'Y' WHERE ID = vID;
      END IF;
     END IF;
     :P2_SELECTED_ID := vID;
    END;
    

    This just ensures that P2_SELECTED_ID has a value where possible - if no contact for the selected customer is marked as main, copy the following code will do. I assumed here that you need of each client to have a first contact - otherwise, you can remove the IF test. I found that it is better to set the value of a page element which is not directly connected to a column of data made using a calculation of page or process.

    Page seems to now work as I think that you need - but let me know if not

    Andy

  • The encapsulation of text in a classic report, bleeding in the next row with the report header template fixed.

    Hi all

    APEX 4.2.5

    XE 11.2

    Report Header fixed

    (25 and 26 theme)

    I have a classic report, and I use the fixed header template.

    If I set the width of a column unless the width of the text in the column, then the data encapsulates as it should, but instead to increase the height of the cell in the row to greet him, he bleeds into the rank and writes on the following lines.

    If I change the report to the standard model, it wraps correctly and increases the size of the cell to accommodate the text.  Not sure if it is a bug, or Im definition something wrong.

    If anyone can help to give advice on how to solve this Id be grateful.

    Ive set the maximum width of the CSS report report. and set the width of the column in the column report.

    I have reproduced it on APEX...

    workspace: VRS

    user: test/test

    Application: 291

    Page: 1

    Thank you very much

    Richard

    Richard Legge wrote:

    Hi all

    APEX 4.2.5

    XE 11.2

    Report Header fixed

    (25 and 26 theme)

    I have a classic report, and I use the fixed header template.

    If I set the width of a column unless the width of the text in the column, then the data encapsulates as it should, but instead to increase the height of the cell in the row to greet him, he bleeds into the rank and writes on the following lines.

    If I change the report to the standard model, it wraps correctly and increases the size of the cell to accommodate the text.  Not sure if it is a bug, or Im definition something wrong.

    This is because of rules CSS theme on cells and rows in the report fixed header table:

    {table.uReportFixedHeaders > tbody > tr}

    display: block;

    height: 28px;

    }

    {table.uReportFixedHeaders > tbody > tr > td}

    padding: 4px 8px;

    border-top: 1px solid #DDD;

    border-bottom: none;

    line-height: 20px;

    }

    I wouldn't really classify it as a bug, more as a hypothesis that the model would be used with data that will not be returned on multiple lines in a cell.

    It is easily fixed by substituting equal to line of table and the row height of the cells in the Inline CSS page, as indicated at page 586:

    {table.uReportFixedHeaders > tbody > tr}

    height: auto! important;

    }

    {table.uReportFixedHeaders > tbody > tr > td}

    line-height: inherit! important;

    }

  • adding table to the report: different column width

    Hello

    Is there a way to set different column width when the table is added to the report VI? As I understand it, the width is distributed in evently for the Table to add to the report VI.

    I have a table with 5 colunms and to set the width of each column differently for printing of the report.

    Thanks for your help

    H. Pham

    Dig into the Table to add to the report VI as a result of the entry of the column width, you will find the Table add to the report > add text table of report VI > tables.vi > Set Table column width VI. You will find a node invoke named SetColumnWidth. Simply enter the column number and the respective width for each column.

  • I HAV been trying to update my expiration date of credit card for 3 months.  When I go to lelien for "Update payment Details" and edit the expiration date and < click > save, I get an error saying my address in invalid.  I have several chat sessions

    Can someone please help...  Suggestions, how can I overcome this problem, in which case my Adobe Creative cloud subscription will expire today due to and credit card.

    I tried to update my expiration date of credit card for 3 months.  When I go to the "Update payment Details" link and change the expiry date then < click > save, I get an error saying my invalid address.  I had several chat sessions with support, called support and logged a ticket with support and every time they tell me to go to a particular link to update my contact information.  I do and I get the same error...   "My coordinates are not valid."  Now I'm in the position where my creative cloud membership will expire today everything simply because the Adobe address validation do not think that my address is valid.

    I got 'Cat' sessions with the support,

    I made a phone call to the support and

    I logged a ticket with support.  I'm really trying to pay my subscription.  Support ticket No. 0216009991

    Whenever I have contact the support they gave me a link to the site where I supposedly can I enter my credit card details.

    Whenever I went on the link provided, I'd get the same error.  "My coordinates are not valid."

    What I checked on my address.

    1. I look out the window and the view I get is the same as it was yesterday and the day, and in fact several years ago.

    2. I go out in the street, Yes, the street sign says the name of my street

    3. I go to my mailbox and it does not say the number of my mailing address

    4. yes I get the email to the address registered with Adobe

    5. yes I received the email from adobe delivered to the address

    6. I get the address of Google, yes I can find it on Google

    7. I converted to use the satellite view Google maps

    8. Yes, it's my house, with the 12 solar panels on the roof

    9. Yes, that's my black car in the driveway

    10. I check my reviews for my address Board rate, Yes, this is the address that I recorded with Adobe

    11. Yes, I had this same address registered at Adobe for the past 3 years.  So far I have not had a problem with my address

    12. I work with a software company that actually uses the address of Google, under license validation, built-in in their application.  I used this software to check to see if my address is recognized as valid.  You guessed it is recognized as valid.

    I did check my credit card

    12. Yes, I have, every time checked the status of my credit card with the Bank

    a. the card is valid

    b. the card's not over it's credit limit

    c. the card is not due

    d. the address registered to my credit card with the Bank is the same address that I recorded with Adobe

    Since the last link Adobe support gave me two weeks ago, to change my credit card details, I was able to key a new credit card in the fields (Yes it's good that I was forced to get a new credit card only for Adobe!   If I am that everything would be fine.

    But wait...   The details I provided this link have not been updated on the Adobe site.  (So I check the link... I was scammed to get my card number?)

    After investigation of the link, I'm fairly confident of the link provided is a true link to Adobe.  www.adobe.com/go/Secure

    Did anyone else had this type of problem when you try to update the expiration date of a credit card?

    The question is about to have an impact on my ability to process pictures for my photography business, it affects my ability to earn an income.

    So you could say I'm getting angry some of the stuffing!

    In summary...  I knew that my credit card had a new expiration date and I tried to update the expiration 3 months 3 months.

    Simply because the use of the validation of addresses, Adobe, has a few flaws, I was not able to update this information.  So Adobe today will stop my subscription.

    As I said in previous support tickets, chat sessions and telephone.  I'll be more disappointed if I am prevented from using software and Adobe cloud features.

    It is copied from an email I received during the night from Adobe...

    Continue to create with us

    Hi Thomas,

    Your Creative cloud membership will expire on August 23, 2015 (PT). We hope that you have been getting the best out of all that creative cloud has to offer. To extend your subscription, please update the billing for your account information, or add a prepaid card.

    Update your billing information (there is a link to where I can update the expiry date) pocztek sigh...   I still get the same error telling me that my address is not valid!

    Thank you for being a part of the creative cloud,

    The creative team Cloud

    Good creative team...  I REALLY WANT TO STAY IN THE TEAM, AS YOU CAN SEE FROM THE FOREGOING, THAT I REALLY TRIED TO SOLVE THIS PROBLEM SEVERAL TIMES OVER THE PAST 3 MONTHS.

    I tried to include as much information as possible in what I said earlier, I expressed in a way that will hopefully provide a little humor, but at the same time to portray the frustration I'm feeling right now.

    Honestly, I don't know what more I can do.  It seems that I have no other recourse start litigation for loss of income coming from Adobe address Validation errors.  There is a real chance that I will be litigated against because I won't be able to complete contracts.

    There must be a healthier solution of mind that court proceedings.

    Kind regards

    Thomas Croll

    (Tom)

    Tom, let me some time. I I will get these verified case and will contact you.

  • How to restrict the user to enter data into the PLUGS DO

    Hello

    I textinput in my page, I have to restrict the user to enter the data covers only.

    can someone help me on this.

    Knockaert

    Please go through this site.

    http://oracleanil.blogspot.com/2010/10/restrict-user-to-enter-data-in-caps.html

    Concerning
    Meher Irk

  • Restrict the metadata field during an update to a specific group of users

    Hi all

    I have some difficulty to find the best way to restrict permissions to change some fields of metadata for 2 different groups of users.

    I have two user groups, A and b. Group A will check in the documents that group B will then review for accuracy and quality. Group B will then update an optionlist field called "State" with "recommended" or "not recommended".
    This is not a situation of workflow as the scope requires that all documents are immediately available for research. I currently have a profile CheckIn and search for content to read write access for both groups A and B. The 'Status' field is hidden on the page of CheckIn. Can someone please suggest a good way to limit the 'Status' field on a page to update users to simply "B"? Groups A and B must be able to update all the fields except for the limited B field "Status".

    Thank you!

    Published by: user6750815 on June 2, 2010 16:11

    Hey rMac,.
    I understand in this way you have a profile for A and B groups of users. On this profile status field is hidden.

    If this is your problem, you can the two-step approach, while making the rule in order to hide the status field, use the activation of rule condition. Make active only for users with A role. This way even with the only profile some of the user with the role B will be able to see the status field.

    Alternatively, you can put a similar code to restrict the link of personalization where you make this hidden field editable and mandatory for users in B.

    see you soon,
    Sicard

  • Restrict the condition on the query data - help.

    I want to restrict the query with the following condition data. I can't get the syntax right. Any help is appreciated

    Select *...
    Of...
    where ps.name in ('black' or ('color' and not 'film') or ('film'))

    OAF - dev wrote:
    I want to restrict the query with the following condition data. I can't get the syntax right. Any help is appreciated

    Select *...
    Of...
    where ps.name in ('black' or ('color' and not 'film') or ('film'))

    select *
    from ...
    where ps.name in ('black', 'color', 'film')
    

    list of all the options that you want to match before 'film', to 'film' last.

    Published by: user142857 on November 16, 2009 13:04

  • Restrict the action of "correction" or "update" in HRMS

    Hello
    I want to restrict the use of "fixed" or "update" for the shape of people for various responsibilities, so that some users cannot submit a correction, but not updated and vice versa.
    Is it possible to do it through system profiles?

    Thank you.

    I don't think that this is possible. PL see MOS Doc 818925.1 (how to Force the user to choose Correction Instead Of Update button in Core HR forms?)

    HTH
    Srini

  • Disable the previous dating date picker in the column in a table

    can someone please help.

    on the date column in a table, need to disable previous dates.

    Current functionality. But when the validation page gets updated and the user is able to select earlier dates.



    To restrict the datePicker for new lines changed the URL of the button 'Add Row '.

    javascript:myAddRow();

    In the page edit, I added this to "Javascript > function and Variable global statement.

    function myAddRow()

    { apex.widget.tabular.addRow();

    $("td[headers='DETAIL_DATE'] input:last")

    .datepicker("option","changeMonth",false)

    .datepicker("option","minDate",$v("P2_MASTER_MONTH_MINDATE"))

    .datepicker("option","maxDate",$v("P2_MASTER_MONTH_MAXDATE")); };

    https://Apex.Oracle.com

    w/u/p: nani5048/test/test

    App 92603 5 page

    Thank you

    Nani

    I created a dynamic action

    the loading of the page

    $("td [en-têtes = 'STATUS_DATE'] entrée")

    . DatePicker ("option", "minDate", $v ("P5_MASTER_MONTH_MINDATE"));

    as well as the global javascript function

    function myAddRow() {}

    apex.widget.tabular.addRow ();

    $("td [en-têtes = 'STATUS_DATE'] entrée")

    . DatePicker ("option", "minDate", $v ("P5_MASTER_MONTH_MINDATE"));

    }

  • Where to put "DataLayout" (2D data in the report)?

    Hello

    IM using 2010 SP1 Teststand and Labview 2011. My question is about the plot of the data of the 2d tables in HTML Teststand report.

    I try to retrieve a table 2D x - y measurement data and it intrigues within the report file. Unfortuntly data is interpreted as "multiple-O", which means that each XY pair generates a new curve in the plot instead of have a curve following the x - y pairs. I found the following in TS documentation:

    http://zone.NI.com/reference/en-XX/help/370052J-01/tsref/infotopics/measurement_data/

    The problem is: I do not know WHERE to set the attributes of the property. Does anyone have a snippet of code running as an example defining the attributes at the right time and by generating a x-y-field correctly?

    Thanks for the help in advance.

    lv4ever

    lv4ever,

    I have consulted the documentation and I agree that it is not clear where the attributes must be added. I'll write a bug report for this problem.

    The approach recommended for you is to create local variables that have the appropriate attribute and use these local variables in expressions of value for each parameter.

    I have attached a files updated with the proposed solution.

    Concerning

    Anand jegou

    National Instruments

  • restrict the scaling axis in the xy graph

    Hi all

    After you apply due diligence in analyzing the context-sensitive help, labviewwiki and these fine forums, I couldn't find a hint on how to do this:

    I like tor would restrict the scale of only the value of a XY Chart axis. Or, to put it in other words, I want the user to be able to zoom and navigate a signal in the time domain, the realm of values must remain fixed to a pair of mini/maxi - assume that the 0-100% for simplicity. Ideally, I would like to use the graphic palette for this.

    Here's what I tried, with the result

    -disable the range => Y scale: no such property

    -catch the "Change of scale of measurement" event and game of scaling to a fixed value => glitter, the property cannot be changed AFTER that the GUI has already redesigned it

    -change the graphic palette of customization of the control is => not possible

    -set the Disabled State-online graphic palette no longer works

    Thanks for any input. I hope I'm missing something really basic here.

    I don't see an easy way to lock the pan function. You can set the minimum and maximum, but - as you said earlier - you get a jumpy (flashing) chart. Even if the update rate is very high.

    If I (or someone else) comes up with something, we'll let you know.

    Apart from the use of an ActiveX (ActiveX 2D chart) or .net component - they have their own unique problems. Perhaps that is a possibility.

    Rob

  • Report Builder 1.0 will not connect to the data source for Reporting SERVICES

    We have a few users who are unable to connect to SSRS on SQL Server 2008 using the Report Builder version 1.0

    (We will be updating soon, but it's a slow process, and now users have questions)

    Instead of disputed for their IDs, they are requested to select a data source.  This information is supposed to be filled automatically when the user starts the Reporting SERVICES report designer.

    Does anyone know where/how SSRS communicates information to start the application with one click Report Builder, and where, if anywhere, it stores?

    Hello

    The following forum seems most appropriate for your question:

    https://social.msdn.Microsoft.com/forums/en-us/home?Forum=sqlreportingservices

    You can get a faster response there.

    I hope this helps.

    Kind regards

    Alberto Morillo
    SQLCoffee.com

  • Restrict the automatic download at specific times of the day

    Is it possible in Windows 7 Home Premium for restrict the update of Windows automatic download at certain times of the day? I know I can set the time it INSTALLS updates, but I want the time it DOWNLOADS the updates...  Even with PIECES try to intelligently determine when is the right time to download updates, I would like to restrict them to download only during the first hours of the AM.

    N °

    That being said, you can change you updates automatic setting Automatic to download updates but let me choose whether to install them. After this, no updates will be installed without your approval. See http://windows.microsoft.com/en-us/windows7/Change-how-Windows-installs-or-notifies-you-about-updates

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

Maybe you are looking for