How to open new form with set value
I have two forms CLIENT and ORDERS who are connected by "client_id" in a one to many relationship [one client can have many orders]. What code to I put in the button so that that when I click on it from the CLIENT table, it goes to the ORDERS form with just the orders that match that "client_id"? The application is in oracle 9i developer using swing.
Here's what I have so far, code to open the form without the binding
//Open Order Form
FormIcdClientApplicationView frameTarget = new FormOrderApplicationView(getPanelBinding());
frameTarget.setVisible(true);
// Close this window
this.setVisible(false);
Hello,
This is the Forms forum. I am sure you will have more chance to get answer in the JDeveloper forum.
FRancois
Similar Messages
-
How to Open multiple form with only one screen painter file
Hi all ,
I want to reopen the form without closing the active form ,i want to use same srf file ..
I have already try it but form already exist error occur .
pl help me , how to do it ?
how to open multiple form with same srf file without closing active forms .
thanks in advance,
msw<?xml version="1.0" encoding="utf-16" ?>
<Application>
<forms>
<action type="add">
<form appformnumber="-1" FormType="-1" type="0" BorderStyle="0" uid="BOE" title="Bill of Entry" visible="1" default_button="1" pane="0" color="0" left="365" top="62" width="801" height="410" client_width="785" client_height="372" AutoManaged="1" SupportedModes="15" ObjectType="">
<datasources>
<dbdatasources>
<action type="add">
</action>
</dbdatasources>
<userdatasources>
<action type="add"/>
</userdatasources>
</datasources>
<Menus>
<action type="enable">
<Menu uid="1282"/>
</action>
<action type="disable">
<Menu uid="5890"/>
</action>
</Menus>
<items>
</items>
<ChooseFromListCollection>
<action type="add">
<ChooseFromList UniqueID="-1" ObjectType="-1" MultiSelection="0" IsSystem="1"/>
</action>
</ChooseFromListCollection>
<DataBrowser/>
<Settings Enabled="0" MatrixUID="" EnableRowFormat="1"/>
</form>
<form appformnumber="-1" FormType="-1" type="0" BorderStyle="0" uid="BOE1" title="Bill of Entry" visible="1" default_button="1" pane="0" color="0" left="365" top="62" width="801" height="410" client_width="785" client_height="372" AutoManaged="1" SupportedModes="15" ObjectType="">
<datasources>
<dbdatasources>
<action type="add">
</action>
</dbdatasources>
<userdatasources>
<action type="add"/>
</userdatasources>
</datasources>
<Menus>
<action type="enable">
<Menu uid="1282"/>
</action>
<action type="disable">
<Menu uid="5890"/>
</action>
</Menus>
<items>
</items>
<ChooseFromListCollection>
<action type="add">
<ChooseFromList UniqueID="-1" ObjectType="-1" MultiSelection="0" IsSystem="1"/>
</action>
</ChooseFromListCollection>
<DataBrowser/>
<Settings Enabled="0" MatrixUID="" EnableRowFormat="1"/>
</form>
</action>
</forms>
</Application> -
How to open new window with required size when clicking on image in a table
Hi,
There is an image column in advanced table. i want to open new window with required parameters(size, toolbar, status bar,etc..) and with that transaction context.
can any one help plzzzzzzzz?
Thanks
RajuYou can also use OAF js function to open modal pop up:
openWindow(self, '<url>','longTipWin', {width:900, height:400}, true); return false;
--Mukul -
How to create new record with old values
Dear all
i have creation page with 45 fields are there
user will enter all the fields and save it will call to non editable mode
if user will click on change button it will call to editable mode
in that my requirement is user wont change among those ites(45 items)clcik on save again it will call to view mode
in that user will change any one of the value among 45 items and click on save button i need to create one more record in database
if user wont edit any one of the field out of 45 items i dont want to create new record in database
how can we achieve thsi functionality
Regards
SreekanthHi Srikant,
When user may edit the record, the same row may get updated in vo. Thus over writing existing row instead of creating new row.
Approach1..
On the page where user may edit records, instead of presenting records of existing row, present copy of existing row. So
In AM... (Later on you can put vo logic to its proper place, i.e. vo java file)
public void viewPageCallSetup()
Row originalRow=vo.createRow();
Row dummyRowForEdit=vo.createRow();
//COPY THE ORIGINAL ROW TO DUMMY ROW. IF THERE IS DIRECT METHOD TO CREATE COPY OF EXISTING ROW, THAT MAY BE MUCH BETTER.
for(int i=0;i<vo.getAttributeCount()-1; i++)
dummyRowForEdit.setAttribute(i, originalRow.getAttribute(i));
vo.insertRow(dummyRowForEdit);
vo.setNewRowState(Row.STATUS_INITIALIZED);
vo.setCurrentRow(dummyRowForEdit);
call this method in contoller's processRequest..
string oid=pagecontext.getparameter("oid");
if(pageContext.getparameter("Purpose").equals("Edit")) //Means user clickED the edit button so we need to replicate the row
am. viewPageCallSetup(oid); //calling this method in am
else
In PFR...
if(pageContext.getparameter("Purpose").equals("Edit"))
am.xxcostedit(oid); //calling this method in am
in case user selects "Cancel" on edit form,we need to remove the duplicate row. So in AM write a method to remove the duplicate rowd on click of "Cancel" button on edit form.
Rest of the logic is same for "Save" button. Just say commit.
Abdul Wahid -
How to open new form and exit from the calling form on dual/multi language?
using form 10g 10.1.2.0.2.
i have dual language application 1 english & 1 arabic and i created forms identically each respectedly to call and switch every forms when user choose any language it uses.
say im in currently in english. how we can call the arabic module and exit totally in english module , vice versa?
also the form system messages. how we can switch it between two language?NEW_FORM() will totally replace the calling module.
Francois -
How to populate smart form with new values
Hi!
I am new to smart form . Can anybody help me in how to populate smart form with some new fileds. Actually i have to populate credit memo form with some customized values..Hello,
Please elaborate your query more in order to be comprehendable.
Regards,
Shehryar -
Safari keeps opening new taps with random website how do it get it to stop?
Safari keeps opening new taps with random website how do it get it to stop?
There is no need to download anything to solve this problem.
You may have installed the "VSearch" trojan. Remove it as follows.
Malware is always changing to get around the defenses against it. These instructions are valid as of now, as far as I know. They won't necessarily be valid in the future. Anyone finding this comment a few days or more after it was posted should look for more recent discussions or start a new one.
Back up all data before proceeding.
Step 1
From the Safari menu bar, select
Safari ▹ Preferences... ▹ Extensions
Uninstall any extensions you don't know you need, including any that have the word "Spigot," "Trovi," or "Conduit" in the description. If in doubt, uninstall all extensions. Do the equivalent for the Firefox and Chrome browsers, if you use either of those.
Reset the home page and default search engine in all the browsers, if it was changed.
Step 2
Triple-click anywhere in the line below on this page to select it:
/Library/LaunchAgents/com.vsearch.agent.plist
Right-click or control-click the line and select
Services ▹ Reveal in Finder (or just Reveal)
from the contextual menu.* A folder should open with an item named "com.vsearch.agent.plist" selected. Drag the selected item to the Trash. You may be prompted for your administrator login password.
Repeat with each of these lines:
/Library/LaunchDaemons/com.vsearch.daemon.plist
/Library/LaunchDaemons/com.vsearch.helper.plist
Restart the computer and empty the Trash. Then delete the following items in the same way:
/Library/Application Support/VSearch
/System/Library/Frameworks/VSearch.framework
~/Library/Internet Plug-Ins/ConduitNPAPIPlugin.plugin
Some of these items may be absent, in which case you'll get a message that the file can't be found. Skip that item and go on to the next one.
The problem may have started when you downloaded and ran an application called "MPlayerX." That's the name of a legitimate free movie player, but the name is also used fraudulently to distribute VSearch. If there is an item with that name in the Applications folder, delete it, and if you wish, replace it with the genuine article from mplayerx.org.
This trojan is often found on illegal websites that traffic in pirated content such as movies. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect more of the same, and worse, to follow.
You may be wondering why you didn't get a warning from Gatekeeper about installing software from an unknown developer, as you should have. The reason is that the Internet criminal behind VSearch has a codesigning certificate issued by Apple, which causes Gatekeeper to give the installer a pass. Apple could revoke the certificate, but as of this writing has not done so, even though it's aware of the problem. This failure of oversight has compromised both Gatekeeper and the Developer ID program. You can't rely on Gatekeeper alone to protect you from harmful software.
*If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination command-C. In the Finder, select
Go ▹ Go to Folder...
from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return. -
How to Open new screen for single click on ALV icon.
Hi All,
Can any body help me regarding the below ALV requirement.
I need to create a executable program ZPROGRAM with a table having field to store long text.The ALV report should display records according to the selection screen parameters with a icon in each record when clicked should open a new screen with present data in the field and must be able to save the entered long text.
Can any body give me the idea after displaying the simple ALV in the output,
How to open new screen(not the Pop-ups) after single click on the icon,
in that I should be able to modify & save the long text in my ZTABLE and
able to retrieve the same text for single clicked icon record.
which function modules/Classes/Methods can we use for this requirement.
And how retrieve the same text for this record.
Thanks in advance.
Regards,
Kalam A.*& Report ZTEST_ALV
REPORT ZTEST_ALV.
TYPE-POOLS slis.
DATA: gt_fieldcat TYPE TABLE OF slis_fieldcat_alv .
DATA: gs_layout TYPE slis_layout_alv.
DATA: gt_list_top_of_page TYPE slis_t_listheader.
DATA: gt_sortinfo_alv TYPE slis_t_sortinfo_alv.
DATA: gs_print_alv TYPE slis_print_alv.
DATA: gs_grid TYPE lvc_s_glay.
DATA: gt_event TYPE slis_t_event.
DATA: gs_event TYPE slis_alv_event.
DATA: BEGIN OF GT_DISPLAY OCCURS 100.
INCLUDE STRUCTURE MARA.
DATA: BOX.
DATA: END OF GT_DISPLAY.
START-OF-SELECTION.
SELECT * FROM MARA UP TO 50 ROWS
INTO CORRESPONDING FIELDS OF TABLE GT_DISPLAY.
End-of-Selection.
PERFORM build_alv.
PERFORM display_screen .
FORM build_alv .
DATA: ls_fieldcat LIKE LINE OF gt_fieldcat.
DATA: ls_top TYPE LINE OF slis_t_listheader.
DATA: ls_sort TYPE slis_sortinfo_alv.
CLEAR: ls_fieldcat, gt_fieldcat[], ls_top,gt_list_top_of_page[],
ls_sort,gs_grid,gs_print_alv,gt_sortinfo_alv[].
*&-----gs_layout definition.
gs_layout-zebra = 'X'.
gs_layout-detail_popup = 'X'. "ÊÇ·ñµ¯³öÏêϸÐÅÏ¢´°¿Ú
gs_layout-f2code = '&ETA'. "ÉèÖô¥·¢µ¯³öÏêϸÐÅÏ¢´°¿ÚµÄ¹¦ÄÜÂë,ÕâÀïÊÇË«»÷
gs_layout-no_vline = ' '. "ÉèÖÃÁмä¸ôÏß
gs_layout-colwidth_optimize = 'X'. "ÓÅ»¯Áпí
gs_layout-detail_initial_lines = 'X'.
gs_layout-coltab_fieldname = 'LINE_COLOR'. "Line_colorΪgt_displayµÄÒ»¸ö×Ö¶Î,¾ßÌåÑÕÉ«ÉèÖüûÏÂÃæ˵Ã÷.
gs_layout-hotspot_fieldname = 'MATNR'.
gs_layout-detail_titlebar = 'ÏêϸÄÚÈÝ'. "ÉèÖõ¯³ö´°¿ÚµÄ±êÌâÀ¸
gs_layout-group_change_edit = 'X'.
*&-----gs_grid definition.
gs_grid-top_p_only = 'X'.
*&-----gs_print_alv definition.
gs_print_alv-prnt_title = 'X'.
gs_print_alv-prnt_info = 'X'.
*&-----gt_sortinfo_alv definition. С¼Æ
ls_sort-fieldname = 'MTART'.
ls_sort-tabname = 'GT_DISPLAY'.
ls_sort-subtot = 'X'.
ls_sort-spos = 1.
ls_sort-up = 'X'.
ls_sort-group = 'UL'.
APPEND ls_sort TO gt_sortinfo_alv.
ls_sort-fieldname = 'AENAM'.
ls_sort-tabname = 'GT_DISPLAY'.
ls_sort-subtot = 'X'.
ls_sort-spos = 1.
ls_sort-up = 'X'.
ls_sort-group = 'UL'.
APPEND ls_sort TO gt_sortinfo_alv.
*&-----slis_t_listheader definition. title.
CLEAR ls_top.
ls_top-key = 'µ±Ç°ÈÕÆÚ:'.
ls_top-typ = 'S'. " H = Header, S = Selection, A = Action
CONCATENATE sy-datum0(4) '-' sy-datum4(2) '-' sy-datum+6(2) INTO ls_top-info .
APPEND ls_top TO gt_list_top_of_page.
CLEAR ls_top.
ls_top-key = 'title'.
ls_top-typ = 'S'. " H = Header, S = Selection, A = Action
ls_top-info = space.
APPEND ls_top TO gt_list_top_of_page.
*&-----gs_print_alv definition.
gs_print_alv-prnt_title = 'X'.
gs_print_alv-prnt_info = 'X'.
*&-----gt_fieldcat definition.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = sy-repid
i_internal_tabname = 'GT_DISPLAY'
i_structure_name = 'MARA'
I_CLIENT_NEVER_DISPLAY = 'X'
i_inclname = sy-repid
CHANGING
ct_fieldcat = gt_fieldcat[]
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
ls_fieldcat-hotspot = 'X'.
MODIFY gt_fieldcat FROM ls_fieldcat INDEX 2.
**-1. definition with macro.
DEFINE macro.
col_pos = col_pos + 1.
ls_fieldcat-tabname = 'it_typ_data'.
ls_fieldcat-fieldname = '&1'.
ls_fieldcat-seltext_l = &2.
ls_fieldcat-col_pos = col_pos.
ls_fieldcat-outputlen = '&3'.
ls_fieldcat-datatype = '&4'.
ls_fieldcat-do_sum = &5.
ls_fieldcat-edit = &6.
ls_fieldcat-checkbox = &7.
ls_fieldcat-key = &9.
ls_fieldcat-fix_column = &10.
ls_fieldcat-no_out = &11.
ls_fieldcat-ref_fieldname = &4. " System F4 Effect.
ls_fieldcat-ref_tabname = &5. " System F4 Effect.
ls_fieldcat-hotspot = &6.
append ls_fieldcat to gt_fieldcat.
clear ls_fieldcat.
END-OF-DEFINITION.
macro matnr 'matnr' 18 'MATNR' 'MARA' 'X'.
macro MTART 'MTART' 18 'MTART' 'MARA' ''.
macro AENAM 'AENAM' 18 'MAENAM' 'MARA' ''.
**-2. definition one-by-one.
CLEAR ls_fieldcat.
ls_fieldcat-fieldname = 'MATNR'.
ls_fieldcat-seltext_s = 'ÎïÁÏ'.
ls_fieldcat-ref_fieldname = 'ROLLNAME'.
ls_fieldcat-ref_tabname = 'DD03L'.
APPEND ls_fieldcat TO gt_fieldcat.
ENDFORM. "build_alv
FORM display_screen .
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = gt_event
EXCEPTIONS
list_type_wrong = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
READ TABLE gt_event INTO gs_event WITH KEY name = 'TOP_OF_PAGE'.
IF sy-subrc EQ 0.
gs_event-form = 'TOP_OF_PAGE'.
MODIFY gt_event FROM gs_event INDEX sy-tabix.
ENDIF.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
i_callback_program = sy-repid
i_callback_pf_status_set = 'PF_STATUS_SET '
i_callback_user_command = 'USER_COMMAND'
i_callback_top_of_page = 'TOP_OF_PAGE'
I_CALLBACK_HTML_TOP_OF_PAGE = 'HTML_TOP_OF_PAGE'
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = 'ALV_BACKGROUND' "When top-of-page is initial.
I_GRID_TITLE =
I_GRID_SETTINGS =
is_layout = gs_layout
it_fieldcat = gt_fieldcat[]
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
it_sort = gt_sortinfo_alv[]
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = 'A'
IS_VARIANT =
IT_EVENTS = gt_event
IT_EVENT_EXIT =
IS_PRINT = gs_print_alv
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
I_HTML_HEIGHT_TOP = 0
I_HTML_HEIGHT_END = 0
IT_ALV_GRAPHICS =
IT_HYPERLINK =
IT_ADD_FIELDCAT =
IT_EXCEPT_QINFO =
IR_SALV_FULLSCREEN_ADAPTER =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = gt_display
EXCEPTIONS
program_error = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. "display_screen
FORM user_command USING ucomm LIKE sy-ucomm
selfield TYPE slis_selfield.
Data ref1 type ref to cl_gui_alv_grid.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR' "Check Box need fieldcat-checkbox, input and edit.
IMPORTING
E_GRID = ref1.
CASE ucomm.
WHEN '&IC1'. " SAP standard code for double-clicking
READ TABLE gt_display INTO gs_display INDEX slis_selfield-tabindex.
CHECK sy-subrc = 0.
CASE selfield-fieldname .
WHEN 'PLNUM'.
SET PARAMETER ID 'PAF' FIELD gs_display-plnum.
CALL TRANSACTION 'MD12' AND SKIP FIRST SCREEN.
WHEN 'POSNR'.
SUBMIT rvscd100 USING SELECTION-SCREEN '1000' WITH vbeln = gs_display-vbeln
WITH posnr = gs_display-posnr
WITH zinfo = 'X'
AND RETURN.
ENDCASE.
IF selfield-sel_tab_field = 'OUT_ITAB-PI_SL'. " Line detail.
READ TABLE i_output INTO pisl_itab INDEX selfield-tabindex.
IF sy-subrc EQ 0.
ENDIF.
WHEN 'CHANGE'.
CALL METHOD ref1->check_changed_data.
CALL METHOD ref1->refresh_table_display.
*5´Ë´¦´úÂë×èÖ¹'REUSE_ALV_GRID_DISPLAY´´½¨ÐµÄÆÁÄ»£¬Ôì³ÉÆÁÄ»¶à²ã
selfield-refresh = 'X'.
WHEN 'SWITCH'.
PERFORM switch_edit_mode.
WHEN OTHERS.
ENDCASE.
ENDFORM. "user_command
Add your code in user_command form.
WHEN you click matnr ucomm eq '&IC1'.
Message was edited by:
Chunhai Hu -
Opening a form with detail information
Hi all,
i have create a matrix contain all Draft is Open and i make double click event on row to view detail form.
If omatrix.IsRowSelected(i) = True Then
Dim Docnum As Integer = omatrix.Columns.Item(1).Cells.Item(pVal.Row).Specific.value
Dim Doctype As String = omatrix.Columns.Item(2).Cells.Item(pVal.Row).Specific.value
Select Case Doctype
Case "Sale Order"
'open Sales order Form on Docnum with detail information
Case "Delivery"
'open Delivery Form on Docnum with detail information
End Select
End If
+ please show me how to open exactly form which i want to open
+ how to format an column in matrix is currency.
+ how to make total in the end of column.
Sympathize for my English.
Thanks.Hi
If you are using SAP Business One PL 19 or above you can try the following for opening a form
Dim formType As SAPbouiCOM.BoFormObjectEnum
'default: fo_None
Dim strUDOObjectType As String
Dim strObjectKey As String
'For UDO objects, set the system form enum to be "fo_UserDefinedObject" at first.
formType = BoFormObjectEnum.fo_UserDefinedObject
strUDOObjectType = "myUDO"
'UDO type
strObjectKey = "udoKey"
'Code
Dim oForm As SAPbouiCOM.Form = oApp.OpenForm(formType, strUDOObjectType, strObjectKey)
'For system objects. set system form enum for "BusinessPartners" at first.
formType = BoFormObjectEnum.fo_BusinessPartner
strUDOObjectType = "testUDO"
'Will be ignored in this case.
strObjectKey = "C00001"
'primary key of "BusinessPartners" object.
oForm = oApp.OpenForm(formType, strUDOObjectType, strObjectKey)
If oForm Is Nothing Then
'No form opened with the input parameters, add your own logics here...
Else
'Form opened successfully, do your own work here...
End If
Summary Column is available in 8.81 only
Hope this helps
Regards
Arun -
How to open labview program with Quit Labview function inside?
Hi Any idea how to open labview program with Quit Labview function inside?
I forgot to add and set the condition of the type for this program.
If the program is an application, it would close straight away.
If it is still labview work, it will go straight to editing program without closing.
So I need to recover, open it and make some changes.
Clement
Solved!
Go to Solution.Put the VI in a project and open it from there, then it shouldn't autorun. You can use App.kind property of application to decide whether to close or not.
/Y
LabVIEW 8.2 - 2014
"Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
G# - Free award winning reference based OOP for LV -
Dear all.
How can i open new FORM, when i double click at (tree) node.
Best Regards
node
|__node1
|__node11 <-- double click and open new FORM
|__node12
|__node2
|__node21
Message was edited by:
First_StepWhe-tree-node-activated trigger
declare
pl_id paramlist;
value1 varchar2(100) ;
begin
-- Checks whether the trigger node is a leaf not or not if yes
-- Call the Corresponding form else do nothing
if (Ftree.Get_Tree_Node_Property('tree_block.tree1', :SYSTEM.TRIGGER_NODE, Ftree.NODE_STATE)= 0) THEN
--CREATE PARAM LIST FOR CALL_FORM
pl_id:=get_parameter_list('userparam');
if(id_null(pl_id)) then
pl_id:=create_parameter_list('userparam');
else
destroy_parameter_list(pl_id);
pl_id:=create_parameter_list('userparam');
end if;
--ADD NEEDED PARAMETERS
add_parameter(pl_id,'user_name',text_parameter,:parameter.user_name);
--HERE NODE VALUE IS FORM NAME
value1:=Ftree.get_tree_node_property('tree_block.tree1', :system.trigger_node,ftree.node_value);
call_form(value1,hide,no_replace,no_query_only,pl_id);
END IF;
end;
jeneesh -
Error opening new form via Call_form
I wrote a forms that captures error code from the calling forms and shows message_text, cause and action for that error.
When calling form causes a ORA-00054 error (lock record), I cannot call the form that displays because focus is not passed to called form.
What can I do? I need to call this form to show message_text, cause and action.Hi Archana,
There are many ways to pass values between forms.
1. You define a global variable before issuing a call/open/new form and use the value in the called/opened form.
2. Create a database package spec and define variables there. Use them to set values and read from other forms.
3. Create a parameter list and pass the list to the call/open/new form built-in and read from there.
If you explain your usecase more, we can suggest you a good way to implement it.
-Arun -
Hi,
After opening new form in separete module,
I want to pass the values of one form to another form , through a global variable.
Help me.
Archana V.
Edited by: Archana V on Dec 28, 2009 10:11 AMHi Archana,
There are many ways to pass values between forms.
1. You define a global variable before issuing a call/open/new form and use the value in the called/opened form.
2. Create a database package spec and define variables there. Use them to set values and read from other forms.
3. Create a parameter list and pass the list to the call/open/new form built-in and read from there.
If you explain your usecase more, we can suggest you a good way to implement it.
-Arun -
Dynamic action with set value on date field
Hi,
I'm using APEX 4.02
I'm trying to calculate the age based on the date of birth dynamically on a form. I'm trying to do this with a (advanced)dynamic action with set value.
I'm able to get this kind of action working based on a number field etc, but NEVER on a date field.
I've read all posts on this subject but so far no solution. Even if I try to simply copy the value over to another date field or typecast it to a string ( to_char function ) it does not work. So for me the problem seems to be in the source field being a date field.
I've tried using the source value as is in a select statement :
select :P33_GEBOORTEDATUM from dual;
and also type casted based on the date format :
select TO_DATE(:P33_GEBOORTEDATUM,'DD-MON-YYYY') from dual
but still no luck.
On the same form I don't have any issues as long as the calculation is based on number fields, but as soon as I start using dates all goes wrong.
Any suggestions would be greatly appreciated. If you need any extra info just let me know.
Cheers
Bas
b.t.w My application default date format is DD-MON-YYYY, maybe this has something to do with the issue .... ?
Edited by: user3338841 on 3-apr-2011 7:33Hi,
Create a dynamic action named "set age" with following values.
Event: Change
Selection Type: Item(s)
Item(s): P1_DATE_OF_BIRTH
Action: Set value
Fire on page load: TRUE
Set Type: PL/SQL Expression
PL/SQL Expression: ROUND( (SYSDATE - :P1_DATE_OF_BIRTH)/365.24,0)
Page items to submit: P1_DATE_OF_BIRTH
Selection Type: Item(s)
Item(s): P1_AGE
Regards,
Kartik Patel
http://patelkartik.blogspot.com/
http://apex.oracle.com/pls/apex/f?p=9904351712:1 -
How to open new window and generate oracle report from apex
Hi,
I had created an application that generates PDF files using Oracle Reports, following this Guide.
http://www.oracle.com/technology/products/database/application_express/howtos/howto_integrate_oracle_reports.html
And I followed 'Advanced Technique', so that users can't generate PDF file by changing URL and parameters. This is done for security reasons.
But in this tutorial, when 'Go' button is pressed, the PDF file is displayed on the same window of apex application. If so, user might close the window by mistake. In order to avoid this, another window have to be opened.
So, I put this code in the BRANCH - URL Target. (Note that this is not in Optional URL Redirect in the button property, but the branch which is called by the button.)
javascript:popupURL('&REPORTS_URL.quotation&P2100_REP_JOB_ID.')
But if the button is pressed, I get this error.
ERR-1777: Page 2100 provided no page to branch to. Please report this error to your application administrator.
Restart Application
If I put the code 'javascritpt ....' in the Optional URL Redirect, another window opens successfully, but the Process to generate report job is not executed.
Does anyone know how to open new window from the Branch in this case?G'day Shohei,
Try putting your javascript into your plsql process using the htp.p(); procedure.
For example, something along these lines should do it:
BEGIN
-- Your other process code goes here...
htp.p('<script type="javascript/text">');
htp.p('popupURL("&REPORTS_URL.quotation&P2100_REP_JOB_ID.")');
htp.p('</script>');
END;
What happens is the javascript is browser based whereas your plsql process is server based and so if you put the javascript into your button item Optional URL Redirect it is executed prior to getting to the page plsql process and therefore it will never execute the process. When you have it in your branch which normally follows the processes, control has been handed to the server and the javascript cannot be executed and so your page throws the error "Page 2100 provided no page to branch to"... By "seeding" the plsql process with the embedded javascript in the htp.p() procedure you can achieve the desired result. You could also have it as a separate process also as long as it is sequenced correctly to follow your other process.
HTH
Cheers,
Mike
Maybe you are looking for
-
Error while uploading data!!its urgent
Hi, this is vijay when iam uploading data(transactional data)through flatfile iam getting the error like error in abap program it could not be executed cx_sy_conversion_no_ number the data is not loading into psa also iam doing in developmentside. i
-
How can I get my money back on an app I purchased that is no longer in service
i bought the app called justin.tv and it costed me 5 dollars. Recently it was bought by another company so it is no longer in service. And I really want my money back!! Please help!
-
Photoshop Starter Album 3.2
I have years of photos stored in Photoshop Starter Album 3.2. I'm told they cannot be migrated into Adobe Revel. How can I save them in an Adobe-supported site so I don't lose them when I have a different computer?
-
EN488AA docking station - not charging
Hi all, this is my first post on this forum (i dont work for HP) so be nice We have had a few docking stations (EN488AA) which have stopped charging the laptop's when they are docked. As an electronics engineer my interest was tweaked and I had to ta
-
Reservation with movement type 541
Hello Experts, I am making reservation with mov type y41 (copy of 541) by allowing transaction MB21 in its customizing.My problem is at the time of making reservation system is not reflecting vendor field, whereas in t code MB1B vendor field is appea