Example SDC statements

This appendix contains an example of each SDC statement.

// Test All SDC Softkey instructions (normal and terse forms)
softkey test1 : "long name" : "sname" {
                               backspace;
                               bksp;
                               Clear_call_buffer 2;
                               ccb 1;
                               clear_display;
                               clrd;
                               clear_user_input;
                               clrui;
                               delay 23;
                               delay 2;
                               delay 254;
                               dial_pulse_1;
                               dp1;
}
softkey test2 : "long name" : "sname" {
                              display_call_buffer1 3 lrci=c dc=b page=c;
                               display_call_buffer1 c3;
                               dcb 1 3 lrci=c dc=b page=c;
                               dcb 1 c3;
                               do_hookflash;
                               flash;
                               end_user_input;
                               eui;
}
softkey test3 : "long name" : "sname" {
                               go_down_by 3;
                               down 10;
                               go_offhook;
                               offh;
                               go_onhook;
                               onh;
                               go_up_by 31;
                               up 23;
}
softkey test4 : "long name" : "sname" {
                               go_to_line 4;
                               go_to_line c2;
                               goto 3;
                               goto c1;
                               page_down;
                               pgdn;
                               page_up;
                               pgup;
}
softkey test5 : "long name" : "sname" {
                               send_dtmf "*#0123456789ABD";
}
softkey test6 : "long name" : "sname" {
                               dtmf "*#0123456789ABD";
}
softkey test7 : "long name" : "sname" {
                               send_encoded_dtmf "qwertyasdfgh";
}
softkey test8 : "long name" : "sname" {
                               edtmf "qwertyasdfgh";
}
softkey test9 : "long name" : "sname" {
                               send_ldtmf "*#0123456789ABD";
}
softkey test10 : "long name" : "sname" {
                               ldtmf "*#0123456789ABD";
}
softkey test11 : "long name" : "sname" {
                               send_line_number;
                               lnum;
                               send_nothing;
                               noop;
                               send_user_input;
                               xui;
                               Set_info_flags INCC=1 INSK=0 INAL=1 INKP=1;
                               info INCC=1 INSK=0 INAL=1 INKP=1;
                               start_user_input;
                               sui;
                               switch_to_data;
                               swd;
                               switch_to_voice;
                               swv;
}
softkey test12 : "long name" : "sname" {
                               tab_to_primary;
                               tabp;
                               tab_to_secondary;
                               tabs;
                               tab_field;
                               tab;
                               wait_for_dial_tone;
                               wtdt;
}
// Test All SDC function instructions (normal and terse forms)
function func1 green red pink blue {
                               clear_call_buffer 1;
                               ccb 1;
                               clear_virtual_display;
                               clear_virtual_displaypage=i;
                               clrvd page=i;
                               clear_virtual_display_line 4 page=c;
                               Clear_virtual_display_line 23 page=i wi=1;
                               clrvdl 23 page=i wi=1;
                               clrvdl c3;
                               clear_soft_key_table;
                               clrskt;
                               clear_the_screen;
                               clrs;
                               clear_type_ahead;
                               cta;
                               connect_session 0x12345678;
                               connect_session 556;
                               connect_session ;
                               connect_session 0x98765432 0x23;
                               conn 1234;
                               disconnect_session;
                               disc;
                               Display_call_buffer 0 23 page=i dc=b;
                               Display_call_buffer 1 25;
                               dcb 1 25;
                               information INCC=0 INAL=0 INDTMF=1;
                               info INCC=0 INAL=0 INDTMF=1;
                               initialise_soft_key_line
                                 sk1=6 sk2=4 sk3=5 sk4=f6 sk5=h8 sk6=hf3;
                               iskl
                                 sk1=6 sk2=4 sk3=5 sk4=f6 sk5=h8 sk6=hf3;
                               input_control 24 4;
                               input_control 2  3 lrci=c dy=1 an=1
                                 page=i;
                               ictl c3 5;
                               input_control 31;
                               ictl c1;
                               input_format4"EnterSSN :***-***-***";
                               ifmt 3 "Primary" "Secondary" rl=1 wi=1;
}
function func2 {
                               load_default_soft_key_tuple
                                 sk1=2 sk2=2 skl=f4 sk3=4 sk6=hf23;
                               ldskt sk1=2 sk2=2 skl=f4 sk3=4 sk6=hf23;
                               line_control page=c 2;
                               line_control page=i 23;
                               line_control c2;
                               lctl 23;
                               lctl c1;
                               Load_soft_key_table 2 test1;
                               Load_soft_key_table 2 test2;
                               ldsk 2 test3;
                               Load_virtual_display wi=0 lrci=i 1
                                  page=i ss=1
                                  hi=n1,b10,r23,g31,b40
                                  sk1=6 sk2=4 sk3=5 sk4=f6 sk5=h8 sk6=hf3
                                  skg=6 skl=31
                                  "Hello" "from IBM";
                               load_virtual_display "Line 2";
                               load_virtual_display "Line 3" "sec col";
                               load_virtual_display "Line 4" "boo";
                               Load_virtual_display 7 "Line 5" "bye";
                               Load_virtual_display 7 "Line 5" && "bye";
                               Load_virtual_display 7 "Line 5" || "bye";
                               lvd "abcdefghijklmnopqr";
                               lvd 7 "Line 5" "bye";
                               Move_data_down 4;
                               Move_data_down 4 32;
                               mvdn 6;
                               move_data_up 5;
                               move_data_up 5 23;
                               mvup 5;
                               switch_to_data;
                               swd;
                               Switch_to_peripheral 23;
                               swp 2;
                               Timed_switch_to_voice 23 int=1;
                               tswv 23 int=1;
                               Switch_to_alternate_character_set 7;
                               swalt 3;
                               query_for_configuration;
                               qcfg;
                               query_for_cpe_id;
                               qcid;
 }
// Show parameter substitution
function func3 green red pink blue {
                               load_virtual_display "green" "pink";
                               ifmt 3 "red" "blue" rl=1 wi=1;
                               lvd "You have 5 in your account";
}